Hey guyz, I am using koin in my Kotlin Multiplatform project.
Now there is an android extension function
getKoin().get()
that I am able to access at my app level, but I am not able to access it in androidMain of my shared module, I am only able to access the compose variation of this function. Even though all of the dependencies are added in the shared module gradle.
a
arnaud.giuliani
11/10/2023, 1:31 PM
Do you want to resolve an instance directly?
k
Khanzada Kashif
11/13/2023, 6:03 AM
@arnaud.giuliani yep.... In a function.
a
arnaud.giuliani
11/15/2023, 6:04 PM
you need to get Koin from somewhere then. From default context you can do
KoinPlatform.getKoin()
k
Khanzada Kashif
11/16/2023, 8:34 AM
I was able to do it by moving it into a class that implements