Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

keep only function names when obfuscation for proguard

Tags:

java

proguard

I use proguard for obfuscation. How can I keep only function names while obfuscation. class names must be obfuscated but function names.

if I use,

-keep class * {
     void somefunction();
}

and it keeps function of somefunction, but it doesnt change classes names.

But, I want to change classes names but somefunction

like image 464
Adem Avatar asked Aug 14 '12 17:08

Adem


1 Answers

You can use -keepclassmembers or -keepclassmembernames.

Cfr. ProGuard manual > Usage > Overview of Keep Options

like image 84
Eric Lafortune Avatar answered Nov 14 '22 08:11

Eric Lafortune