Skip to content

Commit

Permalink
➕ Add kotlinx-browser library on WASM target
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceglb committed Nov 6, 2024
1 parent e626638 commit 3391519
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions filekit-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ kotlin {
jvmTest.get().dependsOn(nonWebTest)
nativeMain.get().dependsOn(nonWebMain)
nativeTest.get().dependsOn(nonWebTest)

wasmJsMain.dependencies {
implementation(libs.kotlinx.browser)
}
}

@OptIn(ExperimentalKotlinGradlePluginApi::class)
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ kotlin.code.style=official
# Multiplatform
kotlin.mpp.stability.nowarn=true
kotlin.mpp.commonizerLogLevel=info
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
kotlin.native.ignoreDisabledTargets=true

# Compose
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ compose-plugin = "1.7.0"
dbus-java = "5.1.0"
jna = "5.15.0"
kotlin = "2.1.0-RC"
kotlinx-browser = "0.2"
kotlinx-coroutines = "1.9.0"
kotlinx-io = "0.5.4"
mavenPublishVanniktech = "0.30.0"
Expand All @@ -29,6 +30,7 @@ dbus-java-transport-native-unixsocket = { module = "com.github.hypfvieh:dbus-jav
jna = { module = "net.java.dev.jna:jna", version.ref = "jna" }
jna-platform = { module = "net.java.dev.jna:jna-platform", version.ref = "jna" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlinx-browser = { module = "org.jetbrains.kotlinx:kotlinx-browser", version.ref = "kotlinx-browser"}
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "kotlinx-coroutines" }
kotlinx-io = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version.ref = "kotlinx-io" }
Expand Down

0 comments on commit 3391519

Please sign in to comment.