Karan Sharma
11/23/2024, 2:10 AMval 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 androidDbModule
and iosDbModule
, which are platform specific ?Karan Sharma
11/23/2024, 2:14 AMKaran Sharma
11/23/2024, 4:00 AMexpect val sqlDriverModule: Module