added installation
This commit is contained in:
parent
125b66e237
commit
292c0cdeee
@ -33,6 +33,8 @@ dependencies {
|
||||
|
||||
api "io.ktor:ktor-client:$ktor_version"
|
||||
api "io.ktor:ktor-client-websockets:$ktor_version"
|
||||
api "io.ktor:ktor-client-json-jvm:$ktor_version"
|
||||
api "io.ktor:ktor-client-serialization-jvm:$ktor_version"
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
|
@ -0,0 +1,11 @@
|
||||
package com.insanusmokrassar.postssystem.core.client
|
||||
|
||||
import io.ktor.client.HttpClientConfig
|
||||
import io.ktor.client.features.json.JsonFeature
|
||||
import io.ktor.client.features.json.serializer.KotlinxSerializer
|
||||
|
||||
fun HttpClientConfig<*>.installPostsCore() {
|
||||
install(JsonFeature) {
|
||||
serializer = KotlinxSerializer()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user