Skip to content

Commit

Permalink
added support to iosSimulator64Arm platform (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: Alberto Caliman <[email protected]>
  • Loading branch information
SuperCaliMan and Alberto Caliman authored May 26, 2023
1 parent 76e0e93 commit 1120560
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
26 changes: 23 additions & 3 deletions geojson/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ kotlin {
}
mingwX64("mingw")
macosX64("macos")
ios("ios")
iosArm64()
iosX64()
iosSimulatorArm64()

sourceSets {
all {
Expand Down Expand Up @@ -60,13 +62,11 @@ kotlin {

val nativeMain by getting {
getByName("macosMain").dependsOn(this)
getByName("iosMain").dependsOn(this)
getByName("mingwMain").dependsOn(this)
}

val nativeTest by getting {
getByName("macosTest").dependsOn(this)
getByName("iosTest").dependsOn(this)
getByName("mingwTest").dependsOn(this)
}

Expand All @@ -91,6 +91,26 @@ kotlin {
dependsOn(commonBench)
dependsOn(nativeMain)
}

val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
dependsOn(nativeMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}

val iosX64Test by getting
val iosArm64Test by getting
val iosSimulatorArm64Test by getting
val iosTest by creating {
dependsOn(nativeTest)
iosX64Test.dependsOn(this)
iosArm64Test.dependsOn(this)
iosSimulatorArm64Test.dependsOn(this)
}
}
}

Expand Down
24 changes: 21 additions & 3 deletions turf/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ kotlin {
linuxX64("native")
mingwX64("mingw")
macosX64("macos")
ios("ios")
iosArm64()
iosX64()
iosSimulatorArm64()

sourceSets["commonMain"].dependencies {
api(project(":geojson"))
Expand Down Expand Up @@ -53,13 +55,29 @@ kotlin {
sourceSets {
val nativeMain by getting {}
getByName("macosMain").dependsOn(nativeMain)
getByName("iosMain").dependsOn(nativeMain)
getByName("mingwMain").dependsOn(nativeMain)
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
dependsOn(nativeMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}

val nativeTest by getting {}
getByName("macosTest").dependsOn(nativeTest)
getByName("iosTest").dependsOn(nativeTest)
getByName("mingwTest").dependsOn(nativeTest)
val iosX64Test by getting
val iosArm64Test by getting
val iosSimulatorArm64Test by getting
val iosTest by creating {
dependsOn(nativeTest)
iosX64Test.dependsOn(this)
iosArm64Test.dependsOn(this)
iosSimulatorArm64Test.dependsOn(this)
}

all {
with(languageSettings) {
Expand Down

0 comments on commit 1120560

Please sign in to comment.