Skip to content

Commit

Permalink
Merge pull request #20 from mori-atsushi/ios-simulator
Browse files Browse the repository at this point in the history
Add iOS simulator support
  • Loading branch information
mori-atsushi authored May 6, 2023
2 parents b9dc0c2 + 652ec5f commit bc681fc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

- name: Run local tests
run: |
./gradlew uikitX64Test
./gradlew uikitX64Test uikitSimArm64Test
- name: Upload test reports
if: always()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("com.moriatsushi.insetsx:insetsx:0.1.0-alpha03")
implementation("com.moriatsushi.insetsx:insetsx:0.1.0-alpha04")
}
}
}
Expand Down
24 changes: 9 additions & 15 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,12 @@ plugins {

kotlin {
android()
iosX64("uikitX64") {
binaries {
executable {
entryPoint = "main"
freeCompilerArgs += listOf(
"-linker-option", "-framework", "-linker-option", "Metal",
"-linker-option", "-framework", "-linker-option", "CoreText",
"-linker-option", "-framework", "-linker-option", "CoreGraphics",
"-Xverify-compiler=false", // Workaround for https://youtrack.jetbrains.com/issue/KT-53561
)
}
}
}
iosArm64("uikitArm64") {
binaries {
listOf(
iosX64("uikitX64"),
iosArm64("uikitArm64"),
iosSimulatorArm64("uikitSimArm64")
).forEach {
it.binaries {
executable {
entryPoint = "main"
freeCompilerArgs += listOf(
Expand Down Expand Up @@ -65,6 +56,9 @@ kotlin {
val uikitArm64Main by getting {
dependsOn(uikitMain)
}
val uikitSimArm64Main by getting {
dependsOn(uikitMain)
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ org.jetbrains.compose.experimental.uikit.enabled=true
SONATYPE_HOST=S01
RELEASE_SIGNING_ENABLED=true
GROUP=com.moriatsushi.insetsx
VERSION_NAME=0.1.0-alpha03
VERSION_NAME=0.1.0-alpha04

POM_NAME=InsetsX
POM_DESCRIPTION=WindowInsets utility for compose multiplatform
Expand Down
4 changes: 4 additions & 0 deletions insetsx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ kotlin {
listOf(
iosX64("uikitX64"),
iosArm64("uikitArm64"),
iosSimulatorArm64("uikitSimArm64")
).forEach {
it.binaries.framework {
baseName = "insetsx"
Expand Down Expand Up @@ -45,6 +46,9 @@ kotlin {
val uikitArm64Main by getting {
dependsOn(uikitMain)
}
val uikitSimArm64Main by getting {
dependsOn(uikitMain)
}
val uikitTest by creating {
dependsOn(commonMain)
}
Expand Down

0 comments on commit bc681fc

Please sign in to comment.