Skip to content

Commit 652a307

Browse files
committed
feat: support wasm and jvm targets
1 parent e3adad9 commit 652a307

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

kotlin-json-patch/build.gradle.kts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
2+
13
plugins {
24
alias(libs.plugins.kotlinMultiplatform)
35
alias(libs.plugins.androidLibrary)
@@ -8,20 +10,22 @@ group = "io.github.reidsync"
810
version = "1.0.0"
911

1012
kotlin {
11-
jvm {
12-
//
13-
}
14-
js(IR) {
15-
//
16-
}
1713
androidTarget {
1814
compilations.all {
1915
compilerOptions.configure {
2016
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8)
2117
}
2218
}
19+
@OptIn(ExperimentalWasmDsl::class)
20+
wasmJs {
21+
browser()
22+
nodejs()
23+
}
24+
2325
publishLibraryVariants("release", "debug")
2426
}
27+
28+
jvm("desktop")
2529

2630
listOf(
2731
iosX64(),

0 commit comments

Comments
 (0)