Skip to content

Commit

Permalink
Support KMP for ios
Browse files Browse the repository at this point in the history
  • Loading branch information
fornewid committed Jun 6, 2024
1 parent 902c812 commit 85db74e
Show file tree
Hide file tree
Showing 16 changed files with 590 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest
timeout-minutes: 30

steps:
Expand Down Expand Up @@ -46,11 +46,14 @@ jobs:
- name: Check lint
run: ./gradlew lintDebug --stacktrace

- name: Build samples
run: |
./gradlew :sample:android:assemble \
:sample:desktop:assemble \
:sample:shared:assemble \
- name: Build android app
run: ./gradlew :sample:android:assemble

- name: Build desktop app
run: ./gradlew :sample:desktop:assemble

- name: Build iOS app
run: xcodebuild -project sample/iosApp/iosApp.xcodeproj -scheme iosApp -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest'

- name: Clean secrets
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ lint/outputs/
lint/tmp/
# lint/reports/

.kotlin/sessions/
.kotlin/
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class KotlinMultiplatformConventionPlugin : Plugin<Project> {

jvm()

iosX64()
iosArm64()
iosSimulatorArm64()

configureKotlin()
}
}
Expand Down
3 changes: 3 additions & 0 deletions sample/iosApp/Configuration/Config.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TEAM_ID=
BUNDLE_ID=soup.compose.material.motion.sample.Sample
APP_NAME=Sample
Loading

0 comments on commit 85db74e

Please sign in to comment.