Skip to content

Commit

Permalink
Add kotlinx-browser dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgonmic committed Nov 21, 2024
1 parent b77127d commit 268f43b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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" }

0 comments on commit 268f43b

Please sign in to comment.