Thread
#serialization
    Shan

    Shan

    2 years ago
    Hello. I'm trying to set up my Multiplatform project with Ktor and Kotlinx.Serialization. I see for Native code there is an artifact for each specific Native target, and also just a "native" one. Just wondering which one I should be using for my targets-- if I have to use each specific one or if I can just use the "native" artifact?
    b

    basher

    2 years ago
    For serialization:
    org.jetbrains.kotlinx:kotlinx-serialization-runtime-native
    is the one you want for mpp. adding that to your common dependencies should be all you need. it's confusingly named, but that's the artifact that has the gradle module metadata associated with it
    Shan

    Shan

    2 years ago
    Ah, thank you! Yes the names are a bit confusing.