android / codelab-android-dagger

Apache License 2.0
183 stars 157 forks source link

Dagger doesn't support injection in private fields, but in course it does #37

Closed denbondd closed 4 years ago

denbondd commented 4 years ago

In eight lesson (https://codelabs.developers.google.com/codelabs/android-dagger/#7) when we inject userManager and MainViewModel, these fields are private, but dagger doesn't support injection in private fields so I made them public

denbondd commented 4 years ago

I've just found out that we will fix this in several paragraphs))