RTAkland
09/12/2026, 10:20 PMkotlin {
applyDefaultHierarchyTemplate {
common {
group("native") {
withMingwX64()
group("posix") {
withLinuxX64()
withLinuxArm64()
withApple()
}
}
}
}
}
It created a new sourceSet named posix, posix contains linux64, linuxArm64 & apple
utikeev
09/14/2026, 10:34 AMnative there is already a predefined group of platforms, and it's possible to add new groups of platforms via aliases.
So, in your example the lib can be defined with the following `module.yaml`:
product:
type: kmp/lib
platforms: [ mingwX64, iosArm64, iosSimulatorArm64, linuxX64, linuxArm64, macosArm64 ]
aliases:
- posix: [ iosArm64, iosSimulatorArm64, linuxX64, linuxArm64, macosArm64 ]
This would allow using @posix qualifier in source folder names, settings, depedendencies, etc.
It's a bit verbose at the moment, I have to agree, we would probably investigate possible solutions in the scope of KTC-5491.