android - What is the difference between -keep and -keepclassmembers in ProGuard? -


i read through http://proguard.sourceforge.net/index.html#manual/usage.html cannot differences.

i tested 2 different options , decompiled outcome. both seems produce same result.

-keep class * implements android.os.parcelable {     *; } 

-keepclassmembers class * implements android.os.parcelable {     *; } 

the first (-keep) keep classes , class members implement android.os.parcelable from being removed or renamed.

the latter (-keepclassmembers) keep class members only of classes implement android.os.parcelable from being removed or renamed.


Comments

Popular posts from this blog

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -