Pedro Brost Pedro Brost - 7 months ago 15
Java Question

What does class members means? In -keepclassmembers Proguard

Hi I'm trying to use Proguard in my Libgdx Project, but i dont understand whats does class members means, when I use -keepclassmembers, because I also have -keep, for keep classes. I don't know if this is a java topic or proguard. Thanks and sorry for my bad english.

Answer

Class members are class fields and methods.

-keep public class * extends BaseClass

will keep classes and class members that extends BaseClass from being removed or renamed.

-keepclassmembers public class * extends BaseClass

will keep class members only of classes that extends BaseClass from being removed or renamed.

Comments