Skip to content

Commit

Permalink
#29 moved all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
anton6tak committed Jun 30, 2021
1 parent 162839e commit 627d7e8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,50 @@ kotlin {
publishLibraryVariants("release", "debug")
}
ios()
macosX64("macOS")
tvos()
watchos()
jvm()
js(BOTH) {
nodejs()
browser()
}
linux()
windows()
wasm32()

sourceSets {
all {
languageSettings.apply {
useExperimentalAnnotation("kotlin.RequiresOptIn")
}
}

val commonMain by getting

val notAndroidMain by creating {
dependsOn(commonMain)
}

val intermediateSourceSets = listOf(commonMain, notAndroidMain)
matching { sourceSet ->
!sourceSet.name.startsWith("android") && sourceSet !in intermediateSourceSets
}.all {
dependsOn(notAndroidMain)
}
}
}

fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.linux() {
linuxArm64()
linuxArm32Hfp()
linuxMips32()
linuxMipsel32()
linuxX64()
}

fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.windows() {
mingwX64()
mingwX86()
}

48 changes: 0 additions & 48 deletions parcelize/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,3 @@ plugins {

group = "dev.icerock.moko"
version = libs.versions.mokoParcelizeVersion.get()

kotlin {
macosX64("macOS")
tvos()
watchos()
jvm()
js(BOTH) {
nodejs()
browser()
}
linux()
windows()
wasm32()

sourceSets {
all {
languageSettings.apply {
useExperimentalAnnotation("kotlin.RequiresOptIn")
}
}

val commonMain by getting

val notAndroidMain by creating {
dependsOn(commonMain)
}

val intermediateSourceSets = listOf(commonMain, notAndroidMain)
matching { sourceSet ->
!sourceSet.name.startsWith("android") && sourceSet !in intermediateSourceSets
}.all {
dependsOn(notAndroidMain)
}
}
}

fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.linux() {
linuxArm64()
linuxArm32Hfp()
linuxMips32()
linuxMipsel32()
linuxX64()
}

fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.windows() {
mingwX64()
mingwX86()
}

0 comments on commit 627d7e8

Please sign in to comment.