faogustavo
06/21/2024, 6:02 PMfaogustavo
06/21/2024, 6:02 PMcomposeCompiler {
targetKotlinPlatforms.set(targetKotlinPlatforms.get() - KotlinPlatformType.js)
}
faogustavo
06/21/2024, 6:03 PMephemient
06/21/2024, 6:17 PMisApplicable
in https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-compose-compiler/src/common/kotlin/org/jetbrains/kotlin/compose/compiler/gradle/ComposeCompilerSubplugin.kt vs https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-serialization/src/common/kotlin/org/jetbrains/kotlinx/serialization/gradle/SerializationSubplugin.ktephemient
06/21/2024, 6:45 PMephemient
06/21/2024, 6:45 PMfaogustavo
06/21/2024, 6:49 PMephemient
06/21/2024, 6:50 PMfaogustavo
06/21/2024, 6:51 PMfaogustavo
06/21/2024, 6:55 PMApiJson.decodeFromString<T>(value)
instead of
ApiJson.decodeFromString(serializer, value)
the size impact is quite relevant (~80k)Bruno Medeiros
06/23/2024, 9:48 AM@Serializable
annotation with an expect
and type alias it to the real one on the source sets (I'm assuming platforms) you want the real serialization stuff to happen while creating a custom fake @Serializable
annotation on the source sets you don't want itBruno Medeiros
06/23/2024, 9:50 AMBruno Medeiros
06/23/2024, 9:51 AMfaogustavo
06/24/2024, 11:13 AMfaogustavo
06/24/2024, 11:14 AM