https://kotlinlang.org logo
#ktor
Title
# ktor
c

Christian Jensen

09/24/2020, 5:28 PM
Struggling a bit with Ktor on iOS with json serialization. I am following the KaMPKit sample, and the only ios dependency is
implementation("io.ktor:ktor-client-ios:$ktorVersion")
. Isn't there any ios dependecies for
io.ktor:ktor-client-serialization
and
io.ktor:ktor-client-json
for Ktor version 1.4.0?
j

John O'Reilly

09/24/2020, 5:30 PM
with new "hierarchical project structure" in 1.4 those are not needed any more https://kotlinlang.org/docs/reference/migrating-multiplatform-project-to-14.html
r

russhwolf

09/24/2020, 5:50 PM
It’s actually just gradle metadata. You already didn’t need ios-specific dependencies previously if you used
-native
dependencies in common, but it wasn’t documented. The relevant change here was that Jetbrains renamed their metadata dependencies to use
lib
instead of
lib-native
naming style, matching what the KMP plugin had been doing by default for other libraries for the better part of two years.
c

Christian Jensen

09/24/2020, 6:09 PM
Ok thanks for the replies
2 Views