Struggling a bit with Ktor on iOS with json serial...
# ktor
c
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
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
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
Ok thanks for the replies