0

I want to keep a method from obfuscating and rename.

package test.app.my;

class my {
    public  void done() {

    }
}
Hadi Akbarzadeh
  • 750
  • 10
  • 18

1 Answers1

4

During build, obfuscation is handled by the build step that invokes Proguard, so to keep a method you add to your Proguard configuration file:

-keep class test.app.my {
    void done();
}

The configuration syntax supports wildcards and is quite powerful - take a look at some examples from the Proguard manual.

Theo Lassonder
  • 1,019
  • 9
  • 16