Hey folks :wave: We are getting a very odd issue. ...
# multiplatform
p
Hey folks 👋 We are getting a very odd issue. We have a kmp project with android, desktop, ios and wasm. We also have something in our gradle that allows us to enable and disable targets to avoid compilation time (this would be a nice feature request btw) Anywho, when we have desktop and android, ksp doesn't generate code for kotlins.serialisation or Koin. However, if we have either of those enabled, they work ok. And, once compiled, if we have both android and desktop enabled together again, it works fine. Only has issues after a clean. Has anyone experienced something like this before?
s
Sounds like your custom logic is disabling the ksp tasks entirely. That's why the issue shows up only after clean builds. Would it be possible to share the compilation avoidance logic?
p
I'm asking how much I can share. That said, we mainly have gradle properties that we use to apply the required targets, ksp is enabled elsewhere and not dependent on what targets are enabled
It's something like this...
enabledPlatforms
is a list of platforms loaded from our
local.properties