Skip to content

Commit

Permalink
Enable WASM targets where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd committed Dec 8, 2024
1 parent a5c4440 commit ba9e773
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion kotlinx-uuid-core/api/kotlinx-uuid-core.klib.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Klib ABI Dump
// Targets: [androidNativeArm32, androidNativeArm64, androidNativeX64, androidNativeX86, iosArm64, iosSimulatorArm64, iosX64, js, linuxArm64, linuxX64, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, watchosArm32, watchosArm64, watchosDeviceArm64, watchosSimulatorArm64, watchosX64]
// Targets: [androidNativeArm32, androidNativeArm64, androidNativeX64, androidNativeX86, iosArm64, iosSimulatorArm64, iosX64, js, linuxArm64, linuxX64, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, wasmJs, wasmWasi, watchosArm32, watchosArm64, watchosDeviceArm64, watchosSimulatorArm64, watchosX64]
// Alias: apple => [iosArm64, iosSimulatorArm64, iosX64, macosArm64, macosX64, tvosArm64, tvosSimulatorArm64, tvosX64, watchosArm32, watchosArm64, watchosDeviceArm64, watchosSimulatorArm64, watchosX64]
// Rendering settings:
// - Signature version: 2
Expand Down
7 changes: 7 additions & 0 deletions kotlinx-uuid-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ plugins {
}

kotlin {
wasmJs {
nodejs()
}
wasmWasi {
nodejs()
}

sourceSets {
commonMain {
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion kotlinx-uuid-datetime/api/kotlinx-uuid-datetime.klib.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Klib ABI Dump
// Targets: [androidNativeArm32, androidNativeArm64, androidNativeX64, androidNativeX86, iosArm64, iosSimulatorArm64, iosX64, js, linuxArm64, linuxX64, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, watchosArm32, watchosArm64, watchosDeviceArm64, watchosSimulatorArm64, watchosX64]
// Targets: [androidNativeArm32, androidNativeArm64, androidNativeX64, androidNativeX86, iosArm64, iosSimulatorArm64, iosX64, js, linuxArm64, linuxX64, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, wasmJs, watchosArm32, watchosArm64, watchosDeviceArm64, watchosSimulatorArm64, watchosX64]
// Rendering settings:
// - Signature version: 2
// - Show manifest properties: true
Expand Down
24 changes: 15 additions & 9 deletions kotlinx-uuid-datetime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ plugins {
id("kotlinMPP")
}

kotlin.sourceSets {
commonMain {
dependencies {
api(projects.kotlinxUuidCore)
api(libs.datetime)
}
kotlin{
wasmJs {
nodejs()
}
commonTest {
dependencies {
implementation(kotlin("test"))

sourceSets {
commonMain {
dependencies {
api(projects.kotlinxUuidCore)
api(libs.datetime)
}
}
commonTest {
dependencies {
implementation(kotlin("test"))
}
}
}
}

0 comments on commit ba9e773

Please sign in to comment.