david.pacheco
02/06/2018, 5:13 PMNo provider found for bind<PersistenceService>() with ? { ? }
In the list of registered bindings I can see
bind<PersistenceService>() with scopedSingleton(androidContextScope) { Context -> PersistenceService }
This is how I defined the binding
bind<PersistenceService>() with scopedSingleton(androidContextScope) {
ctx: Context -> PersistenceService(ctx.getSharedPreferences("KodeinTest", Context.MODE_PRIVATE)) }
This is referenced in
bind<GreetPresenter>() with scopedSingleton(androidActivityScope) { GreetPresenter(it as GreeterView, instance(), instance()) }
where one of the instance()
in the GreetPresenter
constructor is of type PersistenceService