google-developer-training / basic-android-kotlin-compose-training-mars-photos

Solution code for Android Basics in Kotlin course
https://developer.android.com/courses/android-basics-kotlin/course?gclid=CjwKCAjw4c-ZBhAEEiwAZ105RTyT-iaLHzrhMBUXdMhO230ZDwOwxxI2x4RgK8DwBxK8t1h0wmU_QxoCi4YQAvD_BwE
Apache License 2.0
66 stars 54 forks source link

Add Repository #98

Open Theiplusminus opened 8 months ago

Theiplusminus commented 8 months ago

URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-add-repository?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-add-repository#9

Specify the language of the codelab if it is not English:

In which task and step of the codelab can this issue be found?

Describe the problem In the NOTE section , there is a spelling mistake in the name of the viewModel class , it's " MarsViewlModel.getMarsPhotos()" but it should be " MarsViewModel.getMarsPhotos()". Below is the whole NOTE section as given in the codelab -

"Note: You do not need to directly call MarsViewlModel.getMarsPhotos() to trigger a call to MarsPhotosRepository.getMarsPhotos(). MarsViewModel.getMarsPhotos() is called when the ViewModel is initialized."

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions Android Studio version: API version of the emulator:

Additional information Include screenshots if they would be useful in clarifying the problem.

Theiplusminus commented 8 months ago

Click the link -> Go to [2:) Add repository and Manual Dependency Injection] -> Go to [10:) Write a ViewModel Test] -> Scroll down to the "NOTE" section highlighted with blue background