Skip to content

Commit 89b4497

Browse files
committed
chore: ktor 3.2.0 update
1 parent 7878daa commit 89b4497

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

backend/native/src/nativeMain/kotlin/Main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fun main(args: Array<String>): Unit = runBlocking {
3232
.stdout(Stdio.Inherit)
3333
.stderr(Stdio.Inherit)
3434

35-
val exit = runCatching { ps.spawn { it.waitForAsync(2.seconds) ?: -1 } }
35+
val exit = runCatching { ps.useSpawn { it.waitForAsync(2.seconds) ?: -1 } }
3636
println("Process exited: ${exit.getOrElse { -1 }}")
3737

3838
println("Reflection Simple name ${this::class.simpleName}")

gradle/libs.versions.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ kotlinx-dataframe = "1.0.0-Beta2"
4747
kotlinx-kandy = "0.8.0"
4848
kotlin-statistics = "0.4.0-RC1"
4949
gradle-kotlin-dsl = "6.1.2"
50-
exoquery-plugin = "2.1.20-1.3.3.PL"
51-
exoquery-sql = "1.3.3.PL-1.3.3"
50+
exoquery-plugin = "2.1.20-1.3.4.PL"
51+
exoquery-sql = "1.3.4.PL-1.3.4"
5252
exposed = "1.0.0-beta-2"
5353
postgresql = "42.7.7"
5454
embedded-postgres = "2.1.0"
@@ -58,13 +58,13 @@ kopy = "0.15.0+2.1.20"
5858
poko = "0.18.7"
5959
mappie = "2.1.21-1.3.0"
6060
akkurate = "0.11.0"
61-
kaml = "0.81.0"
61+
kaml = "0.82.0"
6262
snakeyaml-engine-kmp = "3.1.1"
6363
konsist = "0.17.3"
6464
decoroutinator = "2.5.4"
6565
spring-boot = "3.5.0"
6666
spring-depmgmt = "1.1.7"
67-
ktor = "3.1.3"
67+
ktor = "3.2.0"
6868
ktor-cohort = "2.7.2"
6969
fusionauth-http = "0.4.0-RC.4"
7070
otel = "1.51.0"
@@ -74,7 +74,7 @@ otel-instr-alpha = "2.16.0-alpha"
7474
otel-semconv = "1.34.0"
7575
otel-contrib = "1.46.0-alpha"
7676
otel-kotlin = "0.1.1"
77-
okio = "3.12.0"
77+
okio = "3.13.0"
7878
sslcontext-kickstart = "9.1.0"
7979
ksp-auto-service = "1.2.0"
8080
zip-prefixer = "0.3.1"
@@ -94,7 +94,7 @@ pty4j = "0.13.8"
9494
oshi = "6.8.2"
9595
junit = "5.13.1"
9696
koin = "4.1.0"
97-
koin-annotations = "2.0.1-RC1"
97+
koin-annotations = "2.1.0"
9898
metro = "0.4.0-2.2.0-RC2-alpha07"
9999
kotest = "6.0.0.M4"
100100
mockk = "1.14.2"
@@ -209,7 +209,7 @@ jetbrains-compose-icons = "1.7.3"
209209
kobweb = "0.22.0"
210210
detekt = "1.23.8"
211211
detekt-compose-rules = "0.4.22"
212-
compose-hotreload = "1.0.0-alpha10"
212+
compose-hotreload = "1.0.0-alpha11"
213213
compose-icons = "1.1.1"
214214
compose-routing = "0.4.0"
215215
kottie = "2.0.1"
@@ -233,7 +233,7 @@ nmcp = "0.1.5"
233233
nexus-publish = "2.0.0"
234234
vanniktech-publish = "0.32.0"
235235
gradle-publish = "1.3.1"
236-
shadow = "9.0.0-beta15"
236+
shadow = "9.0.0-beta16"
237237
spotless = "7.0.4"
238238
semver-plugin = "0.8.0"
239239
gratatouille = "0.0.10"

shared/src/commonMain/kotlin/dev/suresh/http/MediaApiClient.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import io.github.oshai.kotlinlogging.KotlinLogging
44
import io.ktor.client.call.*
55
import io.ktor.client.plugins.*
66
import io.ktor.client.plugins.resources.*
7-
import io.ktor.http.HttpMethod
87
import io.ktor.http.content.*
98
import io.ktor.resources.*
109
import kotlinx.serialization.Serializable
@@ -61,12 +60,7 @@ data class MediaApiClient(
6160

6261
suspend fun images() = client.get(ImgRes()).body<List<Image>>()
6362

64-
suspend fun videos() = suspend{
65-
val s = client.prepareRequest(ImgRes()) {
66-
this.method = HttpMethod.Get
67-
}
68-
client.get(VideoRes()).body<List<Video>>()
69-
}
63+
suspend fun videos() = client.get(VideoRes()).body<List<Video>>()
7064

7165
suspend fun multiPart() {
7266
val multipart = client.post(MultiPartRes()).body<MultiPartData>()

0 commit comments

Comments
 (0)