I am adding Dagger2 to my Android app following the instructions from the white papers . I used to use Dagger and Dagger2, it seems that Google has updated the Android version using the following quote:
The classes in dagger.android offer one approach to simplify this pattern.
...
Then make your application an implementation of HasDispatchingActivityInjector and @Inject DispatchingAndroidInjector to return from the activityInjector () method:
It looks awesome, but I canโt find the dagger.android
package anywhere and find nothing when I look at the repository, HasDispatchingActivityInjector
doesn't show any hits on Google at all. Where are these classes described in the docs?
I can find all the other Dagger2 classes in order (Module, etc.) so that the libraries are there.
My dagger dependencies on build.gradle
:
compile 'com.google.dagger:dagger:2.9' compile 'com.google.dagger:dagger-android:2.9' annotationProcessor 'com.google.dagger:dagger-compiler:2.9'
source share