Skip to content

Commit 15b25a0

Browse files
author
a.murzagalin
committed
add ios targets
1 parent 472b4c2 commit 15b25a0

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

build.gradle.kts

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,37 @@ repositories {
2828

2929
kotlin {
3030

31-
jvm {
32-
compilations.all {
33-
kotlinOptions.jvmTarget = "1.8"
34-
}
35-
testRuns["test"].executionTask.configure {
36-
useJUnit()
31+
targets {
32+
jvm {
33+
compilations.all {
34+
kotlinOptions.jvmTarget = "1.8"
35+
}
36+
testRuns["test"].executionTask.configure {
37+
useJUnit()
38+
}
3739
}
38-
}
39-
js(LEGACY) {
40-
browser {
41-
commonWebpackConfig {
42-
cssSupport.enabled = true
40+
js(LEGACY) {
41+
browser {
42+
commonWebpackConfig {
43+
cssSupport.enabled = true
44+
}
4345
}
46+
nodejs()
4447
}
48+
49+
iosX64()
50+
iosArm64()
51+
iosArm32()
52+
iosSimulatorArm64()
53+
watchosArm32()
54+
watchosArm64()
55+
watchosX86()
56+
watchosX64()
57+
watchosSimulatorArm64()
58+
tvosArm64()
59+
tvosX64()
60+
tvosSimulatorArm64()
4561
}
46-
iosX64()
47-
iosArm64()
48-
iosSimulatorArm64()
4962

5063
val hostOs = System.getProperty("os.name")
5164
val isMingwX64 = hostOs.startsWith("Windows")
@@ -70,5 +83,7 @@ kotlin {
7083
val jsTest by getting
7184
val nativeMain by getting
7285
val nativeTest by getting
86+
//val iosMain by getting
87+
//val iosSimulatorArm64Main by getting
7388
}
7489
}

0 commit comments

Comments
 (0)