Vedran
03/07/2024, 12:30 PMplugins {
kotlin("jvm")
id("org.jetbrains.compose")
kotlin("plugin.serialization") version "1.9.20"
id ("com.google.devtools.ksp") version "1.9.22-1.0.17"
}
and also inside dependencies:
// KOIN
implementation(platform("io.insert-koin:koin-bom:3.5.4-RC1"))
implementation("io.insert-koin:koin-core")
implementation("io.insert-koin:koin-compose")
implementation(platform("io.insert-koin:koin-annotations-bom:1.3.1"))
implementation("io.insert-koin:koin-annotations")
implementation("io.insert-koin:koin-ksp-compiler")
and :
ksp {
arg("KOIN_CONFIG_CHECK","true")
}
Im able to use annotations and create modules but I'm not able to startKoin:
import org.koin.ksp.generated.module
this import is not existing (unresolved reference)
and also when I try to access my module inside startCoin: MyModyle().module
.module does not existJacob Ras
03/07/2024, 11:18 PM@ComponentScan
annotation? Are the things annotated with @Single
/ @Factory
in the same module & package? In what source set are they?
But the most important one might be this: How does your ksp configuration look? In the code above I don't see anything like add("ksp...
. See https://medium.com/@jacobras/using-ksp-with-kotlin-multiplatform-a-quick-overview-6b858df77b5f for some info about the syntax.Vedran
03/08/2024, 12:39 AMadd("ksp", "io.insert-koin:koin-ksp-compiler:1.3.1")
then @ComponentScan
, I have my module in root folder.
In most of examples I saw just adding @ComponentScan
above module is enough...
My generated module always has error:
a dot before:
public val .PulsefireModule.module : org.koin.core.module.Module get() = _PulsefireModule
removing this dot works...
Or if I just use default modulearnaud.giuliani
03/08/2024, 8:06 AM