Is kotlin.serialization compatible with compose? I get this: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during code generation
v
Vitaliy Zarubin
05/24/2021, 5:07 PM
I don't think it has anything to do with compose. I use compose and serialization in one project without problem.
👍 1
c
Ciprian Grigor
05/24/2021, 5:22 PM
yeah my mistake is a problem with kotlinx.parcelize when using @IgnoredOnParcel
Ciprian Grigor
05/24/2021, 5:24 PM
Copy code
@Parcelize
@Serializable
data class Contact (
val firstName: String = "",
val lastName: String = "",
) : Parcelable {
@IgnoredOnParcel
val fullName = firstName.capitalize(Locale.getDefault()) + " " + lastName.capitalize(Locale.getDefault())
}