Do I need to 'keep' Parcelable in proguard rules while obfuscating

Viewed 6918

My Project has few classes that extends Parcelable. Do I need to 'keep' them in proguard rules while obfuscating.

What is the general practice for parcelables?

2 Answers

If you are using Kotlin @Parcelize with proguard you can add this to proguard-rules.pro:

-keep @kotlinx.android.parcel.Parcelize public class *
Related