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?
No, the default android rules include this:
-keepclassmembers class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator CREATOR;
}
These default rules will be applied if you leave the default generated gradle definition in place:
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With