Realtime Database serializer clashing with kotlin-parcelize plugin #5868
Unanswered
VincenzoLiguori96
asked this question in
Q&A
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
When using the
@Parcelize
annotation in Kotlin data classes, an integer field named "stability" gets posted to Firebase Realtime Database during serialization when using the class type. For example, setting the value of an instance of this class:using:
will serialize three fields to the realtime database: id, description, and stability. I suspect that the "stability" field is somehow related to
Parcelize
.I'm aware of Firebase SDK annotations like
@IgnoreExtraProperties
and@Exclude
, but they don't seem suitable for this case (@IgnoreExtraProperties
doesn't exclude the "stability" field, and@Exclude
would need to be used on each individual field which isn't feasible for code we don't own).Do you have any suggestions on how to exclude this field from serialization?
Beta Was this translation helpful? Give feedback.
All reactions