nabeghe nabeghe - 1 year ago 79
Android Question

Keep a method from obfuscate in android

I want to keep a method from obfuscating and rename.


class my {
public void done() {


Answer Source

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 {
    void done();

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download