Skip to content

Commit

Permalink
Enable more native targets (#141)
Browse files Browse the repository at this point in the history
The main motivation for this is pushing
charleskorn/kaml#232 further. I'd like this
library to be truly multiplatform, and work with all targets supported
by Kotlin.

---------

Co-authored-by: Adam <[email protected]>
  • Loading branch information
krzema12 and aSemy authored Mar 29, 2024
1 parent 564002c commit 4a4380a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ plugins {


kotlin {
applyDefaultHierarchyTemplate()

targets.configureEach {
compilations.configureEach {
kotlinOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ plugins {
}

kotlin {
linuxX64()

mingwX64()

// According to https://kotlinlang.org/docs/native-target-support.html
// Tier 1
macosX64()
macosArm64()
iosSimulatorArm64()
iosX64()

// More specialised targets are disabled for now, since I anticipate low demand.
// They can be re-enabled, if there is demand for them.
// https://kotlinlang.org/docs/multiplatform-share-on-platforms.html#use-target-shortcuts
//ios() // iosArm64, iosX64
//watchos() // watchosArm32, watchosArm64, watchosX64
//tvos() // tvosArm64, tvosX64
// Tier 2
linuxX64()
linuxArm64()
watchosSimulatorArm64()
watchosX64()
watchosArm32()
watchosArm64()
tvosSimulatorArm64()
tvosX64()
tvosArm64()
iosArm64()

//iosSimulatorArm64()
//tvosSimulatorArm64()
//watchosSimulatorArm64()
// Tier 3
mingwX64()
}

0 comments on commit 4a4380a

Please sign in to comment.