Hi, i want to ask about kotlin-parcelize. I get "P...
# android
a
Hi, i want to ask about kotlin-parcelize. I get "Property would not be serialized into a Parcel" warning on property that is not declared in primary constructor after removing KAE. I find in the docs that all serialized properties should be declared in primary constructor. But the warning didnt exist when im using KAE. Is there any behavior change in new plugin? Is it safe to migrate? This is my class
Copy code
@Parcelize
class SomeParcelableClass(
    var foo: String
) : Parcelable {

    @Transient
    var bar: String? = null // warning here after removing KAE
}
d
According to doc, if you want to make “bar” as a part of write to parcel its difficult to deserialize. if you only want to make it part of parcelable ,you already added transient annotation which is enough.