Skip to content

Commit 8ae1175

Browse files
authored
Add all the supported Kotlin/Native targets that we can (#261)
Only the Android NDK targets and the WatchOS for ARM 64 are not supported, as we depend on the serialization library, which also doesn't support them.
1 parent b438d8f commit 8ae1175

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

core/build.gradle.kts

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,41 @@ kotlin {
3737
explicitApi()
3838

3939
infra {
40+
// Tiers are in accordance with <https://kotlinlang.org/docs/native-target-support.html>
41+
// Tier 1
4042
target("linuxX64")
43+
// Tier 2
44+
target("linuxArm64")
45+
// Tier 3
4146
target("mingwX64")
42-
47+
// the following targets are not supported by kotlinx.serialization:
48+
/*
49+
target("androidNativeArm32")
50+
target("androidNativeArm64")
51+
target("androidNativeX86")
52+
target("androidNativeX64")
53+
*/
54+
// Darwin targets are listed separately
4355
common("darwin") {
56+
// Tier 1
4457
target("macosX64")
4558
target("macosArm64")
46-
target("iosX64")
47-
target("iosArm64")
48-
target("iosArm32")
4959
target("iosSimulatorArm64")
60+
target("iosX64")
61+
// Tier 2
62+
target("watchosSimulatorArm64")
63+
target("watchosX64")
5064
target("watchosArm32")
5165
target("watchosArm64")
52-
target("watchosX86")
53-
target("watchosX64")
54-
target("watchosSimulatorArm64")
55-
target("tvosArm64")
56-
target("tvosX64")
5766
target("tvosSimulatorArm64")
67+
target("tvosX64")
68+
target("tvosArm64")
69+
target("iosArm64")
70+
// Tier 3
71+
// target("watchosDeviceArm64") // not supported by kotlinx.serialization
72+
// Deprecated for removal
73+
target("iosArm32")
74+
target("watchosX86")
5875
}
5976
}
6077

0 commit comments

Comments
 (0)