android / codelab-android-dagger

Apache License 2.0
183 stars 157 forks source link

SharedPreferencesStorage is the class that depends on Context, not Storage #45

Open petrosvoivontas-cp opened 3 years ago

petrosvoivontas-cp commented 3 years ago

Near the end of chapter 7 in the Dagger codelab, there is a sentence that reads:

Storage has a dependency on Context but since we're providing it when we create the graph, Storage has all its dependencies covered".

Storage should be replaced with SharedPreferencesStorage in that sentence

https://developer.android.com/codelabs/android-dagger#6