I'm trying out 4.0.1-Beta1 the latest cutting edge version for Koin.
Please help me figure out how to provide platform specific dependencies in a compose multiplatform app.
• db module:
androidMain:
val androidDbModule = module { //.. Android specific SQL Driver }
iosMain:
val iosDbModule = module { // ios specific SQL Driver }
• Initialising koin like this in
commonMain
of the
composeApp
module:
KoinApplication(application = koinConfig) {
MyTheme {
MyNavHost()
}
}
koinConfig
provides the modules for commonMain of other modules.
Q: How to provide the