This is exactly what you need to do what is described in the video. You always need to initilized Koin for every platform that you are working for anyway, and you can give yourself a possibility to inject platform based components directly from your native platform project that way. For Android this happens in Application class and you should basically extend your existing Koin setup in those areas:
fun 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.