How to get current KoinApplication instance?

815 views Asked by At

I'm using loadKoinModules to load modules in a multi-module project with Koin and Jetpack Startup library.

I'm trying this way, but it's an internal function

getKoin().createEagerInstances()

I have seen that KoinApplication has the createEagerInstances method as public, but I couldn't find a way to get the current KoinApplication instance!

Thanks.

1

There are 1 answers

0
Riajul On

Fixed by using getKoin().loadModules(modules, true)