Skip to content

Commit 627d7e8

Browse files
committed
#29 moved all targets
1 parent 162839e commit 627d7e8

2 files changed

Lines changed: 45 additions & 48 deletions

File tree

parcelize-build-logic/src/main/kotlin/multiplatform-library-convention.gradle.kts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,50 @@ kotlin {
1414
publishLibraryVariants("release", "debug")
1515
}
1616
ios()
17+
macosX64("macOS")
18+
tvos()
19+
watchos()
20+
jvm()
21+
js(BOTH) {
22+
nodejs()
23+
browser()
24+
}
25+
linux()
26+
windows()
27+
wasm32()
28+
29+
sourceSets {
30+
all {
31+
languageSettings.apply {
32+
useExperimentalAnnotation("kotlin.RequiresOptIn")
33+
}
34+
}
35+
36+
val commonMain by getting
37+
38+
val notAndroidMain by creating {
39+
dependsOn(commonMain)
40+
}
41+
42+
val intermediateSourceSets = listOf(commonMain, notAndroidMain)
43+
matching { sourceSet ->
44+
!sourceSet.name.startsWith("android") && sourceSet !in intermediateSourceSets
45+
}.all {
46+
dependsOn(notAndroidMain)
47+
}
48+
}
49+
}
50+
51+
fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.linux() {
52+
linuxArm64()
53+
linuxArm32Hfp()
54+
linuxMips32()
55+
linuxMipsel32()
56+
linuxX64()
57+
}
58+
59+
fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.windows() {
60+
mingwX64()
61+
mingwX86()
1762
}
1863

parcelize/build.gradle.kts

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,3 @@ plugins {
1111

1212
group = "dev.icerock.moko"
1313
version = libs.versions.mokoParcelizeVersion.get()
14-
15-
kotlin {
16-
macosX64("macOS")
17-
tvos()
18-
watchos()
19-
jvm()
20-
js(BOTH) {
21-
nodejs()
22-
browser()
23-
}
24-
linux()
25-
windows()
26-
wasm32()
27-
28-
sourceSets {
29-
all {
30-
languageSettings.apply {
31-
useExperimentalAnnotation("kotlin.RequiresOptIn")
32-
}
33-
}
34-
35-
val commonMain by getting
36-
37-
val notAndroidMain by creating {
38-
dependsOn(commonMain)
39-
}
40-
41-
val intermediateSourceSets = listOf(commonMain, notAndroidMain)
42-
matching { sourceSet ->
43-
!sourceSet.name.startsWith("android") && sourceSet !in intermediateSourceSets
44-
}.all {
45-
dependsOn(notAndroidMain)
46-
}
47-
}
48-
}
49-
50-
fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.linux() {
51-
linuxArm64()
52-
linuxArm32Hfp()
53-
linuxMips32()
54-
linuxMipsel32()
55-
linuxX64()
56-
}
57-
58-
fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.windows() {
59-
mingwX64()
60-
mingwX86()
61-
}

0 commit comments

Comments
 (0)