Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce0203 committed Aug 19, 2023
1 parent ddab1bf commit 482d72d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion client/src/commonMain/kotlin/network/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ suspend fun websocket(): WebSocketSession = client().webSocketSession(currentUrl
interface URLProvider { val url: String }
interface ClientEngineFactory { fun getEngine(): HttpClientEngineFactory<HttpClientEngineConfig> }

val converter = KotlinxWebsocketSerializationConverter(ProtoBuf)

suspend inline fun <reified T> sendHttp(path: String, body: T, auth: Boolean = true) =
client().post("$currentUrl/$path") {
Expand Down
2 changes: 1 addition & 1 deletion shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ korge {

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
jvmTarget = "1.8"
}
}

Expand Down
1 change: 1 addition & 0 deletions shared/src/commonMain/kotlin/network/PacketController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import kotlinx.serialization.protobuf.ProtoBuf
import kotlinx.uuid.UUID

val serialFormat = ProtoBuf
val converter = KotlinxWebsocketSerializationConverter(ProtoBuf)

interface PacketController<T : Any> {
val typeInfo: TypeInfo
Expand Down

0 comments on commit 482d72d

Please sign in to comment.