[K/N] Do not compile for deprecated targets and legacy MM

^KT-56533
^KT-58853
This commit is contained in:
Alexander Shabalin
2023-05-12 16:02:48 +02:00
committed by Space Team
parent d1ce55cbd2
commit aea8bac7d2
54 changed files with 128 additions and 2191 deletions
@@ -8,7 +8,7 @@ plugins {
val sdkName: String? = System.getenv("SDK_NAME")
enum class Target(val simulator: Boolean, val key: String) {
WATCHOS_X86(true, "watchos"), WATCHOS_ARM64(false, "watchos"),
WATCHOS_X64(true, "watchos"), WATCHOS_ARM64(false, "watchos"),
IOS_X64(true, "ios"), IOS_ARM64(false, "ios")
}
@@ -17,8 +17,8 @@ val target = sdkName.orEmpty().let {
it.startsWith("iphoneos") -> Target.IOS_ARM64
it.startsWith("iphonesimulator") -> Target.IOS_X64
it.startsWith("watchos") -> Target.WATCHOS_ARM64
it.startsWith("watchsimulator") -> Target.WATCHOS_X86
else -> Target.WATCHOS_X86
it.startsWith("watchsimulator") -> Target.WATCHOS_X64
else -> Target.WATCHOS_X64
}
}
@@ -44,7 +44,7 @@ kotlin {
watchosArm64("watchos")
} else {
// Simulator.
watchosX86("watchos")
watchosX64("watchos")
}
// Declare the output program.