Good morning everyone! I'm trying to find the righ...
# compose
p
Good morning everyone! I'm trying to find the right channel to ask my question (as far as I am a newcomer) , so, please, let me leave a link to it just here. Any feedback is appreciated. Thank you. https://kotlinlang.slack.com/archives/C013BA8EQSE/p1726801164267419
m
so this is KMP + Compose Multiplatform app? the issue is that
ksp
doesn’t work the same in KMP module as in Android module
👍 1
in KMP modules, this is how you should do it:
Copy code
// top level block inside KMP module build.gradle.kts
dependencies {
    add("kspAndroid", "dependency here")
    add("kspIosX64", "dependency here")
    add("kspIosArm64", "dependency here")
    add("kspIosSimulatorArm64", "dependency here")
}
p
Yes, it is.
Well, I thought that was exactly what I did. Maybe I've chosen the wrong place for it. I guess I need to double-check my configuration.
m
Copy code
ksp("com.google.dagger:dagger-compiler:2.51.1")
is different than
Copy code
add("kspAndroid", "com.google.dagger:dagger-compiler:2.51.1")
p
Thanks for your replies, It will take some time to try your advice out. So I will be able to come back with a coherent feedback some time later. Thanks!