You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build the project to Dagger2 make their implementation
Create a attribute of AppComponent in App class
In the method onCreate, pass the generated implementation to that attribute
Video 02
Create ActivityScope annotation
Mark it with @Scope annotation and set the retention policy to RUNTIME
Create MainActivityComponent interface and extend this with AndroidInjector
Mark it with @ActivityScope and with @Subcomponent
Create an inner abstract class called Builder
Annotate with @Subcomponent.Builder
Extend AndroidInjector.Builder
Create an abstract class called ActivityBindingModule
Annotate with @Module
Add the sub component MainActivityComponent to it
Create an abstract provider called provideMainActivityInjector(MainActivityComponent.Builder)
that return an AndroidInjector.Factory<? extends Activity>
Annotate with @Binds, @IntoMap and @ActivityKey(MainActivity.class)