David Aleksanyan
10/23/2024, 12:02 AMBlaž Vantur
10/23/2024, 7:09 AMarnaud.giuliani
10/25/2024, 1:35 PMDavid Aleksanyan
10/26/2024, 7:09 AMBlaž Vantur
10/26/2024, 7:33 AMfun initKoin(targetModule: Module = module { })
in video is
fun initializeKoin(config: (KoinApplication.() -> Unit)? = null)
And then you just call in your application class this method like this:
initKoin(
targetModule = module {
single<Context> { this@MyApplication } // or androidContext(this@MyApplication)
}
)
or like he did in the video:
initializeKoin {
androidContext(this@MyApplication)
}
Ping me if something won’t work for you and we can take a look.