Nikolai
11/12/2018, 5:51 AMprivate val client = io.ktor.client.HttpClient() {
install(JsonFeature) {
serializer = io.ktor.client.features.json.defaultSerializer()
}
expectSuccess = false
}
And during asseble compileKotlinIos fails with : error: unresolved reference: JsonFeature. Do I need to add additional dependency in iOS module, or this feature is not for multiplatform?
P.S. I tried to search something like : io.ktor:ktor-client-ios-json but no luck.gildor
11/12/2018, 5:57 AMNikolai
11/12/2018, 5:58 AMkpgalligan
11/12/2018, 6:13 AMgildor
11/12/2018, 6:14 AMTobi
11/12/2018, 9:29 AMktor
and kotlinx.serialization
.
Maybe that helps:
https://github.com/novoda/spikes/tree/master/multiplatform-httpNikky
11/12/2018, 9:33 AMNikolai
11/12/2018, 10:18 AMimplementation "io.ktor:ktor-client-ios:$ktor_version"
implementation "io.ktor:ktor-client-core-ios:$ktor_version"
?Tobi
11/12/2018, 10:26 AMNikolai
11/12/2018, 10:41 AMclasspath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
to buildscript section in whole project build.gradle I got error :
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.gradle.plugin.KotlinGradleSubplugin