Skip to content

Commit 602b2a0

Browse files
committed
Refactor Kotlin targets code in build script
1 parent 27edd48 commit 602b2a0

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

library/build.gradle.kts

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ plugins {
77
alias(libs.plugins.compose.multiplatform)
88
alias(libs.plugins.compose.compiler)
99
alias(libs.plugins.android.library)
10-
alias(libs.plugins.dokka)
1110
alias(libs.plugins.maven.publish)
11+
alias(libs.plugins.dokka)
1212
}
1313

1414
group = "ir.mahozad.multiplatform"
@@ -17,27 +17,12 @@ version = "2.1.0-rc"
1717
kotlin {
1818
androidTarget { publishLibraryVariants("release") }
1919
jvm(name = "desktop") // Windows, Linux, macOS (with Java runtime)
20-
js(compiler = IR) { // Kotlin/JS drawing to a canvas
21-
nodejs()
22-
browser()
23-
binaries.executable()
24-
}
20+
js(IR) { browser() } // Kotlin/JS drawing to a canvas
2521
@OptIn(ExperimentalWasmDsl::class)
26-
wasmJs { // Kotlin/Wasm drawing to a canvas
27-
nodejs()
28-
browser()
29-
binaries.executable()
30-
}
31-
listOf(
32-
iosX64(),
33-
iosArm64(),
34-
iosSimulatorArm64()
35-
).forEach { iosTarget ->
36-
iosTarget.binaries.framework {
37-
baseName = "library"
38-
isStatic = true
39-
}
40-
}
22+
wasmJs { browser() } // Kotlin/Wasm drawing to a canvas
23+
iosX64()
24+
iosArm64()
25+
iosSimulatorArm64()
4126

4227
sourceSets {
4328
commonMain.dependencies {

0 commit comments

Comments
 (0)