implement support of wasm/js for browser

This commit is contained in:
nullsanya
2025-04-03 21:22:55 +10:00
parent 8ae983971a
commit 54576d8dec
28 changed files with 811 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ kotlin {
}
}
}
wasmJs {
browser()
nodejs()
}
androidTarget {
publishAllLibraryVariants()
compilations.all {
@@ -91,6 +95,11 @@ kotlin {
implementation kotlin('test-js')
}
}
wasmJsTest {
dependencies {
implementation kotlin('test-wasm-js')
}
}
nativeMain.dependsOn commonMain
linuxX64Main.dependsOn nativeMain
mingwX64Main.dependsOn nativeMain

View File

@@ -27,6 +27,10 @@ kotlin {
}
}
}
wasmJs {
browser()
nodejs()
}
androidTarget {
publishAllLibraryVariants()
compilations.all {
@@ -71,6 +75,11 @@ kotlin {
implementation kotlin('test-js')
}
}
wasmJsTest {
dependencies {
implementation kotlin('test-wasm-js')
}
}
nativeMain.dependsOn commonMain
linuxX64Main.dependsOn nativeMain
mingwX64Main.dependsOn nativeMain

View File

@@ -27,6 +27,10 @@ kotlin {
}
}
}
wasmJs {
browser()
nodejs()
}
linuxX64()
mingwX64()
@@ -55,6 +59,11 @@ kotlin {
implementation kotlin('test-js')
}
}
wasmJsTest {
dependencies {
implementation kotlin('test-wasm-js')
}
}
nativeMain.dependsOn commonMain
linuxX64Main.dependsOn nativeMain

View File

@@ -27,6 +27,10 @@ kotlin {
}
}
}
wasmJs {
browser()
nodejs()
}
androidTarget {
publishAllLibraryVariants()
compilations.all {
@@ -72,6 +76,11 @@ kotlin {
implementation kotlin('test-js')
}
}
wasmJsTest {
dependencies {
implementation kotlin('test-wasm-js')
}
}
androidUnitTest {
dependencies {
implementation kotlin('test-junit')