Ruben Quadros
01/20/2025, 3:34 AMdependencies {
add("kspCommonMainMetadata", libs.koin.ksp.compiler)
add("kspAndroid", libs.koin.ksp.compiler)
add("kspIosX64", libs.koin.ksp.compiler)
add("kspIosArm64", libs.koin.ksp.compiler)
add("kspIosSimulatorArm64", libs.koin.ksp.compiler)
}
But in the example on github:
// DO NOT add bellow dependencies
// add("kspAndroid", Deps.Koin.kspCompiler)
// add("kspIosX64", Deps.Koin.kspCompiler)
// add("kspIosArm64", Deps.Koin.kspCompiler)
// add("kspIosSimulatorArm64", Deps.Koin.kspCompiler)
Does the documentation need an update?arnaud.giuliani
01/21/2025, 10:04 AMRuben Quadros
01/24/2025, 7:17 AMarnaud.giuliani
01/24/2025, 8:01 AMRuben Quadros
01/26/2025, 2:18 PMdependencies {
add("kspCommonMainMetadata", libs.koin.ksp.compiler)
}
tasks.withType<KotlinCompilationTask<*>>().configureEach {
if (name != "kspCommonMainKotlinMetadata") {
dependsOn("kspCommonMainKotlinMetadata")
}
}
afterEvaluate {
tasks.filter {
it.name.contains("SourcesJar", true)
}.forEach {
it.dependsOn("kspCommonMainKotlinMetadata")
}
}
I had missed setting:
commonMain.configure { kotlin.srcDirs("build/generated/ksp/metadata/commonMain/kotlin") }
CommonModule().module
public val io_github_rubenquadros_timetowish_CommonModule : Module get() = module {
includes(io.github.rubenquadros.timetowish.core.di.TWCoreModule().module,io.github.rubenquadros.timetowish.shared.di.TWSharedModule().module)
}
public val io.github.rubenquadros.timetowish.CommonModule.module : org.koin.core.module.Module get() = io_github_rubenquadros_timetowish_CommonModule