proguard does not stop obfuscating method name des

2019-05-26 17:24发布

I have following set up for keeping class and class method names. It works well with classes hence classes in package and sub packages of com.seleniumtests.** are not obfuscated.

enter image description here

But despite I have selected Keep names - .class method names check box, methods in classes of package com.seleniumtests.** are still obfuscated.

Did I miss any configuration?

标签: java proguard
1条回答
何必那么认真
2楼-- · 2019-05-26 17:30

The checkbox for Keep names - .class method names is unrelated. It preserves the names of classes that are used in .class constructs, for instance MyClass.class. It is rarely required.

The screenshot doesn't show the custom rules that you have defined, but the configuration should contain

-keep class com.seleniumtests.** {
    <methods>;
}

You can verify this on the Process tab or in the saved configuration file.

查看更多
登录 后发表回答