Store only function names when obfuscated for proguard

I use proguard for obfuscation. How can I only store function names during obfuscation. class names should be confusing, but function names.

if i use

-keep class * {
     void somefunction();
}

and it saves the function of some function, but does not change the class names.

But I want to change class names, but somefunction

+5
source share
1 answer

You can use -keepclassmembersor -keepclassmembernames.

CFR. ProGuard Handbook> Usage> Overview of Save Options

+8
source

All Articles