Skip to content

Commit a2aa9ab

Browse files
committed
update gradle
move to toml set okio as api
1 parent c830e1e commit a2aa9ab

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

KtorKMPFileCaching/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ kotlin {
7474
implementation(libs.kotlin.serialization)
7575
implementation(libs.kotlin.coroutines)
7676
implementation(libs.ktor.client.core)
77-
implementation(libs.okio)
77+
api(libs.okio)
7878
}
7979
val jsNodeMain by getting {
8080
dependencies {
@@ -87,16 +87,16 @@ kotlin {
8787
}
8888
}
8989
wasmJsMain.dependencies {
90-
implementation("org.jetbrains.kotlinx:kotlinx-browser:0.3")
91-
implementation(libs.okio.fakefilesystem)
90+
implementation(libs.kotlinx.browser)
91+
api(libs.okio.fakefilesystem)
9292
}
9393
commonTest.dependencies {
9494
implementation(libs.kotlin.test)
9595
implementation(libs.okio.fakefilesystem)
9696
implementation(libs.ktor.client.mock)
9797
implementation(libs.kotlin.coroutines.test)
9898
implementation(libs.ktor.client.logging)
99-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1")
99+
implementation(libs.kotlinx.datetime)
100100
}
101101
androidNativeTest.dependencies {
102102
}

gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ktor = "3.0.2"
77
okio = "3.9.1" # https://square.github.io/okio/changelog/
88
slf4jAndroid="1.7.36"
99
slf4jJvm="2.0.13"
10+
kotlinx-browser="0.3"
11+
kotlinx-datetime="0.6.1"
1012

1113
[libraries]
1214
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
@@ -21,6 +23,8 @@ okio-fakefilesystem = { module = "com.squareup.okio:okio-fakefilesystem", versio
2123
okio-nodefilesystem = { module = "com.squareup.okio:okio-nodefilesystem", version.ref = "okio" }
2224
slf4j-android = { module = "org.slf4j:slf4j-android", version.ref = "slf4jAndroid" }
2325
slf4j-jvm = { module = "org.slf4j:slf4j-api", version.ref = "slf4jJvm" }
26+
kotlinx-browser = { module = "org.jetbrains.kotlinx:kotlinx-browser", version.ref = "kotlinx-browser" }
27+
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinx-datetime" }
2428

2529
[plugins]
2630
androidLibrary = { id = "com.android.library", version.ref = "agp" }

0 commit comments

Comments
 (0)