Skip to content

Commit a7793a8

Browse files
committed
chore: add kotlinx-browser for wasmjs
1 parent 0d09dc2 commit a7793a8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

gradle/build-logic/src/main/kotlin/common/MultiPlatformExtns.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ fun KotlinMultiplatformExtension.wasmJsTarget() {
222222
sourceSets {
223223
wasmJsMain {
224224
dependencies {
225+
// kotlinx-browser is only supported for WasmJs.
226+
api(libs.kotlinx.browser)
225227
api(libs.ktor.client.js)
226228
// api(npm("@js-joda/timezone", libs.versions.npm.jsjoda.tz.get()))
227229
}

gradle/libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ kotlinx-rpc = "0.1.0"
3030
kotlinx-collections-immutable = "0.3.7"
3131
kotlinx-lincheck = "2.32"
3232
kotlinx-html = "0.11.0"
33+
kotlinx-browser = "0.1"
3334
kotlinx-benchmark = "0.4.11"
3435
kotlinx-metadata = "0.9.0"
3536
kotlinx-reflect-lite = "1.1.0"
@@ -67,7 +68,7 @@ jte = "3.1.12"
6768
jimfs = "1.3.0"
6869
sshj = "0.38.0"
6970
pty4j = "0.12.35"
70-
junit = "5.11.0-M2"
71+
junit = "5.11.0-RC1"
7172
koin = "3.5.6"
7273
kotest = "5.9.0"
7374
mockk = "1.13.12"
@@ -273,6 +274,7 @@ kotlinx-lincheck = { module = "org.jetbrains.kotlinx:linchec
273274
kotlinx-reflect-lite = { module = "org.jetbrains.kotlinx:kotlinx.reflect.lite" , version.ref = "kotlinx-reflect-lite"}
274275
kotlinx-collections-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable" , version.ref = "kotlinx-collections-immutable"}
275276
kotlinx-html = { module = "org.jetbrains.kotlinx:kotlinx-html" , version.ref = "kotlinx-html"}
277+
kotlinx-browser = { module = "org.jetbrains.kotlinx:kotlinx-browser" , version.ref = "kotlinx-browser"}
276278
kotlinx-bench-runtime = { module = "org.jetbrains.kotlinx:kotlinx-benchmark-runtime" , version.ref = "kotlinx-benchmark"}
277279
kotlin-ksp-api = { module = "com.google.devtools.ksp:symbol-processing-api" , version.ref = "kotlin-ksp"}
278280
kotlin-redacted-annotations = { module = "dev.zacsweers.redacted:redacted-compiler-plugin-annotations" , version.ref = "kotlin-redacted"}

0 commit comments

Comments
 (0)