Damien O'Reilly
04/20/2019, 2:18 PMdagger.android.AndroidInjector.Builder
is deprecated. https://google.github.io/dagger/api/latest/dagger/android/AndroidInjector.Builder.html Prefer AndroidInjector.Factory now that components can have factories instead of builders
Has anyone tried this yet? I am struggling to find an example of this.tseisel
04/20/2019, 2:59 PM@Component.Builder abstract class Builder : AndroidInjector.Builder<AppComponent>()
by @Component.Factory interface Factory : AndroidInjector.Factory<AppComponent>
and everything worked the same.
You should also change DaggerAppComponent.builder().create(this)
to DaggerAppComponent.factory().create(this)
in MainApplication
.Damien O'Reilly
04/20/2019, 3:12 PMDaggerAppComponent.factory()
part