From 268f43bb79c4215fde82fa2981e2f58d1ad186f3 Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Thu, 21 Nov 2024 19:28:38 +0100 Subject: [PATCH] Add kotlinx-browser dependency --- build.gradle.kts | 6 +++++- gradle/libs.versions.toml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2f5a7a0..f497370 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -46,7 +46,11 @@ kotlin { implementation(libs.kotlin.test) } } - val wasmJsMain by getting + val wasmJsMain by getting { + dependencies { + implementation(libs.kotlinx.browser) + } + } val wasmJsTest by getting } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c9863bd..f3723af 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,8 +1,10 @@ [versions] kotlin = "2.0.10" +kotlinx-browser = "0.3" [libraries] kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" } +kotlinx-browser = { module = "org.jetbrains.kotlinx:kotlinx-browser-wasm-js", version.ref = "kotlinx-browser" } [plugins] kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }