Jonny
08/12/2020, 5:51 PM@Singleton
@Component(
dependencies = [AppComponent::class],
modules = [
ViewModelModule::class,
FragmentModule::class
]
)
interface StartupComponent : AndroidInjector<BaseApplication> {
fun inject(activity: MainActivity)
}
But I have nowhere to initialize this component from.
This is the error that I get: No injector factory bound for Class<ferm.jonny.startup.presentation.fragments.ExtendedSplashScreenFragment>
Christopher Elías
08/12/2020, 9:18 PMdagger-android
but here is my approach for that hope it can help you. In this approach my activities and fragments extends from DaggerFragment and DaggerAppCompactActivity. But it's basically adding the AndroidInjectors.inject(this) automatically.Jonny
08/13/2020, 8:40 PMChristopher Elías
08/13/2020, 9:07 PM