![]() ![]() I felt that the best way of checking it was to apply it to the same class hierarchy as in the previous article: class KSerializerSealedClass Object : Object2 : class DataClass(val data: String) : KSerializerSealedClass() Implementation Libraries.kotlinxSerializationRuntime Id '' version '1.3.50'Īpply plugin: BuildPlugins.kotlinxSerialization ":kotlinx-serialization-runtime:$"Ĭlasspath BuildPlugins.kotlinGradlePluginĬlasspath BuildPlugins.kotlinSerializationPlugin Let’s start by setting up our project to use rialization: const val kotlinVersion = "1.3.50"Ĭonst val kotlinGradlePlugin = ":kotlin-gradle-plugin:$kotlinVersion"Ĭonst val kotlinSerializationPlugin = ":kotlin-serialization:$kotlinVersion"Ĭonst val detekt = "io."Ĭonst val ktlint = ""Ĭonst val versions = ""Ĭonst val kotlinxSerialization = "kotlinx-serialization"Ĭonst val kotlinxSerializationRuntime = "0.13.0"Ĭonst val kotlinStdLib = ":kotlin-stdlib-jdk8:$kotlinVersion" At the time of writing (November 2019) I do not realistically see it hitting full release in the immediate future. One thing worth mentioning is that it is still very much a work in progress It is still experimental and, as we shall see, is far from complete. As the name suggests, rialization is an equivalent to Java serialisation and there is much to like.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |