Skip to content

Commit c469772

Browse files
authored
Add iOS targets via sourceset symlinks (#64)
1 parent 3aeb088 commit c469772

28 files changed

Lines changed: 28 additions & 13 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,8 @@ jobs:
3636
${{ runner.os }}-build-
3737
${{ runner.os }}-
3838
39-
- name: Compile (macOS)
40-
if: runner.os == 'macOS'
41-
run: ./gradlew $GRADLE_ARGS compileKotlinMacosX64
42-
43-
- name: Test (macOS)
44-
if: runner.os == 'macOS'
45-
run: ./gradlew $GRADLE_ARGS macosX64Test
46-
47-
- name: Assemble (Linux)
48-
if: runner.os == 'Linux'
39+
- name: Assemble
4940
run: ./gradlew $GRADLE_ARGS assemble
5041

51-
- name: Check (Linux)
52-
if: runner.os == 'Linux'
42+
- name: Check
5343
run: ./gradlew $GRADLE_ARGS check

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
![badge][badge-android]
2+
![badge][badge-ios]
23
![badge][badge-js]
34
![badge][badge-mac]
45

@@ -217,6 +218,8 @@ kotlin {
217218
android()
218219
js().browser() // and/or js().node()
219220
macosX64()
221+
iosX64()
222+
iosArm64()
220223

221224
sourceSets {
222225
val commonMain by getting {

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77

88
plugins {
9-
kotlin("multiplatform") version "1.4.10" apply false
9+
kotlin("multiplatform") version "1.4.20" apply false
1010
id("com.android.library") version "4.0.2" apply false
1111
id("org.jmailen.kotlinter") version "3.2.0" apply false
1212
id("com.vanniktech.maven.publish") version "0.13.0" apply false

core/build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ kotlin {
1515
android {
1616
publishAllLibraryVariants()
1717
}
18+
iosX64()
19+
iosArm64()
1820
macosX64()
1921

2022
sourceSets {
@@ -46,6 +48,20 @@ kotlin {
4648
}
4749
}
4850

51+
val iosX64Main by getting {
52+
dependencies {
53+
api(coroutines("core", version = "1.4.2-native-mt!!"))
54+
implementation(stately("isolate-iosx64"))
55+
}
56+
}
57+
58+
val iosArm64Main by getting {
59+
dependencies {
60+
api(coroutines("core", version = "1.4.2-native-mt!!"))
61+
implementation(stately("isolate-iosarm64"))
62+
}
63+
}
64+
4965
all {
5066
languageSettings.enableLanguageFeature("InlineClasses")
5167
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)