is there a way to generate KMP sources into hierar...
# ksp
z
is there a way to generate KMP sources into hierarchical parent source sets? For example, this pattern is quite common on iOS
Copy code
listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach {
  it.binaries.framework { baseName = "shared" }
}
But the result is any KSP generated code is duplicated for each type to their own source set even if just
iosMain
once would suffice
👀 2
I guess maybe what I'm asking for is a
kspIos
here
Looks like maybe this issue is what I'm looking for https://github.com/google/ksp/issues/1974
would maybe a more intermediate step just be to allow users to explicitly define which source sets they want KSP to generate for as a subset of the available targets from the kotlin project extension?
e
Trying to avoid something like https://github.com/evant/kotlin-inject/pull/370?