Skip to content

Commit

Permalink
Add support for wasmJs in okio-fakefilesystem.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Dec 13, 2023
1 parent 84122dc commit 74505c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ androidx-test-runner = { module = "androidx.test:runner", version = "1.5.2" }
binaryCompatibilityValidator = { module = "org.jetbrains.kotlinx.binary-compatibility-validator:org.jetbrains.kotlinx.binary-compatibility-validator.gradle.plugin", version = "0.13.2" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit" }
kotlin-time = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version = "0.4.1" }
kotlin-time = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version = "0.5.0" }
jmh-gradle-plugin = { module = "me.champeau.jmh:jmh-gradle-plugin", version = "0.7.2" }
jmh-core = { module = "org.openjdk.jmh:jmh-core", version.ref = "jmh" }
jmh-generator = { module = "org.openjdk.jmh:jmh-generator-annprocess", version.ref = "jmh" }
Expand Down
9 changes: 8 additions & 1 deletion okio-fakefilesystem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,19 @@ kotlin {
configureOrCreateNativePlatforms()
}
sourceSets {
commonMain {
val commonMain by getting {
dependencies {
api(libs.kotlin.time)
api(projects.okio)
}
}
val commonTest by getting
if (kmpWasmEnabled) {
// Add support for wasmWasi when https://github.com/Kotlin/kotlinx-datetime/issues/324 is resolved.
configureOrCreateWasmPlatform(wasi = false)
createSourceSet("wasmMain", parent = commonMain, children = listOf("wasmJs"))
createSourceSet("wasmTest", parent = commonTest, children = listOf("wasmJs"))
}
}
}

Expand Down

0 comments on commit 74505c5

Please sign in to comment.