hello all! I was looking at the change log of ktor...
# ktor
c
hello all! I was looking at the change log of ktor 2.0.0-beta1, and I’ve noticed that there’s XML support for the client: • https://github.com/ktorio/ktor/commit/0acc7080d40b1978c62e39be20470ae971417bde If I’m not mistaken, the library to import should be this one, right?
Copy code
implementation("io.ktor:ktor-serialization-kotlinx-xml:2.0.0-beta-1")
However, it seems that I’m unable to use it at the moment - no classes found - at Multiplatform level (Kotlin 1.6.10). Is there something that I might be missing?
b
i am getting the same error on KMM
got it working with
Copy code
val commonMain by getting {
  dependencies {
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
                implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
  }
  
}
a
Currently, the
ktor-serialization-kotlinx-xml
is supported under JVM only.
c
Thank you @Aleksei Tirman [JB] ! Do you know when it will be available for native, for instance? 🙂
a
@e5l