Julian Ostarek
04/21/2023, 3:17 PM@Module
annotated classes) but that didn't make things accessible from the common iOS source set. Code in thread below.dependencies {
add("kspCommonMainMetadata", libs.koin.kspCompiler)
add("kspAndroid", libs.koin.kspCompiler)
add("kspIosX64", libs.koin.kspCompiler)
add("kspIosArm64", libs.koin.kspCompiler)
}
IosModule
is @Module
)
fun iosStartKoin() {
val iosModule = module {
includes(IosModule().module)
}
sharedStartKoin(platformModule = iosModule)
}
> Task :shared:compileIosMainKotlinMetadata FAILED
e: file://[...]/shared/src/iosMain/kotlin/[...]/IosModule.kt:100:30 Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val SharedModule.module: Module defined in org.koin.ksp.generated
public val BackendModule.module: Module defined in org.koin.ksp.generated
The listed extensions are ones that stem from @Module
classes defined in commonMain.