@@ -80,23 +80,38 @@ if (rootProject.ext.native_targets_enabled) {
8080 if (project. ext. ideaActive) {
8181 addNative(fromPreset(project. ext. ideaPreset, ' native' ))
8282 } else {
83+ // Support of all non-deprecated targets from official tier list: https://kotlinlang.org/docs/native-target-support.html
84+
85+ // Tier #1
8386 addTarget(presets. linuxX64)
84- addTarget(presets. iosArm64)
85- addTarget(presets. iosArm32)
86- addTarget(presets. iosX64)
8787 addTarget(presets. macosX64)
88- addTarget(presets. mingwX64)
89- addTarget(presets. tvosArm64)
90- addTarget(presets. tvosX64)
91- addTarget(presets. watchosArm32)
92- addTarget(presets. watchosArm64)
93- addTarget(presets. watchosX86)
94- addTarget(presets. watchosX64)
95-
88+ addTarget(presets. macosArm64)
9689 addTarget(presets. iosSimulatorArm64)
90+ addTarget(presets. iosX64)
91+
92+ // Tier #2
93+ addTarget(presets. linuxArm64)
9794 addTarget(presets. watchosSimulatorArm64)
95+ addTarget(presets. watchosX64)
96+ addTarget(presets. watchosArm32)
97+ addTarget(presets. watchosArm64)
9898 addTarget(presets. tvosSimulatorArm64)
99- addTarget(presets. macosArm64)
99+ addTarget(presets. tvosX64)
100+ addTarget(presets. tvosArm64)
101+ addTarget(presets. iosArm64)
102+
103+
104+ // Tier #3
105+ addTarget(presets. androidNativeArm32)
106+ addTarget(presets. androidNativeArm64)
107+ addTarget(presets. androidNativeX86)
108+ addTarget(presets. androidNativeX64)
109+ addTarget(presets. mingwX64)
110+ addTarget(presets. watchosDeviceArm64)
111+
112+ // Deprecated, remove after 1.9.0
113+ addTarget(presets. iosArm32)
114+ addTarget(presets. watchosX86)
100115 }
101116 }
102117
0 commit comments