https://kotlinlang.org logo
#serialization
Title
# serialization
t

thevery

10/03/2018, 3:59 PM
What is the current status of serialization+native+multiplatform? Is workaround for plugin path still required?
Right now it fails with
kotlin.NotImplementedError: An operation is not implemented: Intrinsic to be implemented in compiler
@sandwwraith could you help with this, please?
s

sandwwraith

10/04/2018, 11:04 AM
The error you’ve mentioned is thrown from
KClass.serializer()
method. It is indeed unavailable on Native due to the lack of reflection; as message says, we have a plan to intrinsify it. Right now you have to always explicitly pass a serializer, obtaining it from e.g. generated
.serializer()
function on Companion object of serializable class.
Workaround for plugin path shouldn’t be required from 1.3-RC2
t

thevery

10/04/2018, 3:36 PM
It works, thanks!