google-developer-training / basic-android-kotlin-compose-training-race-tracker

Apache License 2.0
31 stars 30 forks source link

Android Basics: Introduction to Coroutines in Android Studio - Carlifying parts 3,4, 6 and 7 #34

Open scharffc opened 3 months ago

scharffc commented 3 months ago

It should be mentioned in Parts 3,4 and 6 that the following import should be added to the classes RaceParticipant.kt, RaceTrackerApp.kt and RaceParticipantTest.kt.

import kotlinx.coroutines.*

delay, launch etc. appear with error otherwise.

In Part 7 focusing on testing, the build.grale.kts that needs to be updated is the one of the module. This could be clarified.

It should also be clarified which imports to do:

import org.junit.Test import org.junit.Assert.assertEquals

In part 7 focusing on testing, it is written: 6. Run the test to confirm that it passes. It would be good to write how to run the tests and have a screenshot for users new to JUnit.

image