keep only function names when obfuscation for prog

2019-06-21 19:51发布

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

标签: java proguard
1条回答
Melony?
2楼-- · 2019-06-21 20:41

You can use -keepclassmembers or -keepclassmembernames.

Cfr. ProGuard manual > Usage > Overview of Keep Options

查看更多
登录 后发表回答