Skip to content

Commit 2a467e0

Browse files
authored
Support all official K/N targets (#275)
Fixes #122 Fixes #273
1 parent 38fef80 commit 2a467e0

File tree

2 files changed

+29
-12
lines changed

2 files changed

+29
-12
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,3 +432,5 @@ Since Kotlin/Native does not generally provide binary compatibility between vers
432432
you should use the same version of Kotlin compiler as was used to build AtomicFU.
433433
See [gradle.properties](gradle.properties) in AtomicFU project for its `kotlin_version`.
434434

435+
Available Kotlin/Native targets are based on non-deprecated official targets [Tier list](https://kotlinlang.org/docs/native-target-support.html)
436+
with the corresponding compatibility guarantees.

atomicfu/build.gradle

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)