I'm struggling seeing why I get this error: Presenter cannot be provided without an @Provides-annotated method.
I have even tried to just strip out everything and make it as simple as possible, but I still get the error. What am I doing wrong?
Component:
@Component(modules = [SplashScreenModule::class])
interface SplashScreenComponent {
fun presenter() : SplashScreenContract.Presenter
}
Module:
@Module
abstract class SplashScreenModule {
@Binds
@SplashScreenScope
abstract fun providesSplashScreenPresenter(presenter: SplashScreenPresenter) : SplashScreenContract.Presenter
}
Presenter:
class SplashScreenPresenter : SplashScreenContract.Presenter { ... }