diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-01 00:34:15 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-01 00:34:15 +0100 |
commit | 61bcba7b0a3fe28fb523455d46eab1bd212c1d04 (patch) | |
tree | 4a52cdc8beb4ff5607619ac270e71e3c2a8969ba /sw-client | |
parent | Remove unnecessary Serializable on enums (diff) | |
download | seven-wonders-61bcba7b0a3fe28fb523455d46eab1bd212c1d04.tar.gz seven-wonders-61bcba7b0a3fe28fb523455d46eab1bd212c1d04.tar.bz2 seven-wonders-61bcba7b0a3fe28fb523455d46eab1bd212c1d04.zip |
Upgrade Krossbow to 1.1.5
Diffstat (limited to 'sw-client')
-rw-r--r-- | sw-client/build.gradle.kts | 4 | ||||
-rw-r--r-- | sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sw-client/build.gradle.kts b/sw-client/build.gradle.kts index 13546c72..421b58dd 100644 --- a/sw-client/build.gradle.kts +++ b/sw-client/build.gradle.kts @@ -11,8 +11,8 @@ kotlin { val commonMain by getting { dependencies { api(project(":sw-common-model")) - api("org.hildan.krossbow:krossbow-stomp-kxserialization:1.1.2") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.0.0") + api("org.hildan.krossbow:krossbow-stomp-kxserialization:1.1.5") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.0.1") } } val commonTest by getting { diff --git a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt index 5e627ecd..68026888 100644 --- a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt +++ b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt @@ -3,7 +3,6 @@ package org.luxons.sevenwonders.client import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.map -import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.builtins.serializer import org.hildan.krossbow.stomp.StompClient import org.hildan.krossbow.stomp.config.HeartBeat @@ -29,7 +28,6 @@ class SevenWondersClient { heartBeatTolerance = HeartBeatTolerance(0, 10000) // wide margin to account for heroku cold start } - @OptIn(ExperimentalSerializationApi::class) suspend fun connect(serverUrl: String): SevenWondersSession { val session = stompClient.connect("$serverUrl$SEVEN_WONDERS_WS_ENDPOINT").withJsonConversions() return SevenWondersSession(session) |