KiranKala / ReactiveScorecard

Scorecard Application
0 stars 0 forks source link

Application is not using DaggerAndroid features #1

Closed jmcaldera closed 6 years ago

jmcaldera commented 6 years ago

App is using dagger2, but not dagger android, ie: there's no application class that extends from DaggerApplication.

AppComponent should add AndroidInjectionModule or AndroidSupportInjectionModule as one of its modules. Also it should have an internal interface or abstract class annotated with @Component.Builder (refer to example links)

Injection into Activities or fragments should be done by calling AndroidInjection.inject(this) and not by creating the component instance by itself (this is handled by Application class).

Also add dagger-android-processor annotationProcessor

KiranKala commented 6 years ago