Does anyone have advice for keeping names of the methods and attributes of the my one static class?
Method and attribute names can be preserved for any class by using a -keep
rule like so:
-keepclassmembernames
class_specification
For example:
-keepclassmembernames class com.example.MySensitiveClass {*;}
I recommend using the ProGuard Playground to experiment with -keep options. It will show you the output before you build, so you can safe time and effort constructing fine-tuned configurations!
1 Like