尽管“保持名字”,proguard并没有停止混淆方法名称
我有以下设置来保持类和类方法名称。 它适用于类,因此com.seleniumtests.**
包和子包中的com.seleniumtests.**
不会被混淆。
但是,尽管我选择了Keep names - .class method names
复选框,但com.seleniumtests.**
类中的方法仍然是模糊的。
我错过了任何配置吗?
Keep names - .class method names
的复选框是不相关的。 它保留了.class
结构中使用的类的名称,例如MyClass.class
。 这很少需要。
屏幕截图不显示您已定义的自定义规则,但配置应包含
-keep class com.seleniumtests.** { ; }
您可以在“ Process
选项卡或已保存的配置文件中对此进行validation。