Skip to content

Commit

Permalink
Add kotlinx.browser dependency to WasmJs target
Browse files Browse the repository at this point in the history
  • Loading branch information
igoriakovlev committed Oct 15, 2024
1 parent 40408b6 commit 600d8bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ object Versions {
val junit = "5.10.1"
val logback = "1.2.11"
val puppeteer = "21.5.0"
val browser = "0.1"
}
5 changes: 5 additions & 0 deletions buildSrc/src/main/kotlin/WasmConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ fun Project.configureWasm() {

kotlin {
sourceSets {
val wasmJsMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-browser:${Versions.browser}")
}
}
val wasmJsTest by getting {
dependencies {
implementation(npm("puppeteer", Versions.puppeteer))
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ coroutines-version = "1.8.0"
atomicfu-version = "0.25.0"
serialization-version = "1.6.1" # Do not upgrade, 1.6.2 breaks maven publishing!
ktlint-version = "3.15.0"
kotlinx-browser-version = "0.1"

netty-version = "4.1.109.Final"
netty-tcnative-version = "2.0.62.Final"
Expand Down

0 comments on commit 600d8bd

Please sign in to comment.