[HOW-TO] Android Dagger (2.11/2.12/2.13) Butterknife (8.7/8.8) MVP (Part 1)
Vandolf Estrellado
82914

How would you add a module that adds network functionalities e.g.: Retrofit with dagger 2.11?

@Singleton
@Component(modules = {
AppModule.class,
NetworkModule.class
})
interface AppComponent {
void inject(App app);
}

also when i provide Retrofit and Inject it, the DaggerAppComponent suddenly doesn’t find its create() method and builder() shouldn’t be used i guess?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.