Skip to content

Commit

Permalink
Add kotlinx browser dependency to wasm js target
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Dec 29, 2024
1 parent 1174f5a commit 3713792
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions calf-io/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ kotlin {
sourceSets.androidMain.dependencies {
implementation(libs.documentfile)
}

sourceSets.wasmJsMain.dependencies {
implementation(libs.kotlinx.browser)
}
}
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ agp = "8.7.3"
kotlin = "2.1.0"
compose = "1.7.3"
kotlinx-datetime = "0.6.1"
kotlinx-browser = "0.3"
nexus-publish = "2.0.0"
documentfile = "1.0.1"
jna = "5.16.0"
Expand Down Expand Up @@ -51,6 +52,9 @@ documentfile = { module = "androidx.documentfile:documentfile", version.ref = "d
# Desktop
jna = { module = "net.java.dev.jna:jna", version.ref = "jna" }

# Wasm
kotlinx-browser = { module = "org.jetbrains.kotlinx:kotlinx-browser", version.ref = "kotlinx-browser" }

# For sample
navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "navigation-compose" }
compose-navigation = { module = "org.jetbrains.androidx.navigation:navigation-compose", version.ref = "compose-navigation" }
Expand Down

0 comments on commit 3713792

Please sign in to comment.