Skip to content

Commit

Permalink
Add target for iOS simulator.
Browse files Browse the repository at this point in the history
  • Loading branch information
xian committed Nov 4, 2024
1 parent f5311eb commit a886ffc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions kgl-ios/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repositories {
kotlin {
iosArm64()
iosX64()
iosSimulatorArm64()

sourceSets {
val commonMain by getting {
Expand All @@ -30,12 +31,14 @@ kotlin {

val iosArm64Main by getting { }
val iosX64Main by getting { }
val iosSimulatorArm64Main by getting { }

val nativeMain by sourceSets.creating {
dependsOn(commonMain)

iosArm64Main.dependsOn(this)
iosX64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}

all {
Expand Down
4 changes: 3 additions & 1 deletion kgl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ kotlin {
macosX64()
iosArm64()
iosX64()
iosSimulatorArm64()
}
explicitApi()

Expand Down Expand Up @@ -72,8 +73,9 @@ kotlin {
val macosArm64Main by getting { }
val iosArm64Main by getting { }
val iosX64Main by getting { }
val iosSimulatorArm64Main by getting { }

listOf(macosX64Main, iosArm64Main, iosX64Main, macosArm64Main)
listOf(macosX64Main, iosArm64Main, iosX64Main, macosArm64Main, iosSimulatorArm64Main)
} else {
listOf()
}
Expand Down

0 comments on commit a886ffc

Please sign in to comment.