What's the new dependency for kotlinx serializatio...
# announcements
n
What's the new dependency for kotlinx serialization for RC1? I see that coroutines has changed from kotlinx-coroutines-core-common and specific platforms to just kotlinx-coroutines-core, but implementation("org.jetbrains.kotlinxkotlinx serialization runtime1.0-M1-1.4.0-rc") doesn't seem to work...
j
1.0-M1-1.4.0-rc
is working here
n
I don't mean the version, I mean what did the artifact change to?
Copy code
kotlinx-serialization-runtime
Is resolved but doesn't have any common dependencies like KSerializer
then kotlinx-serialization-runtime-common (what previously worked) didn't have that version
I'm guessing that the artifact changed like how coroutines did, but I don't see what serialization changed to
j
What version are you updating from....fwiw I did update about a month or so ago that I believe required me to move away from using
KSerializer
...switching instead to likes of
MapSerializer
n
Right. Yeah I think I figured it out. The confusion is that it's not the same as kotlinx coroutines. kotlinx coroutines it's
Copy code
"org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutinesVersion"
which will automatically pull in for your platform, but it doesn't seem that serialization does the same thing.
Copy code
"org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$kotlinSerializationVersion"
works for js backend it seems.
so I think I'm unblocked. Previously it was: kotlinx-serialization-runtime-common then -js -jvm for your specific backend Now it's kotlinx-serialization-runtime-js, no need for 'common'
but again, it's weird because that's backwards from coroutines, which is 'core' and no need for backend