我有以下代码。
public class MyClass {
public void method1(Integer marks) {
private String method3(String name){
public interface interface1 {
void method4(Integer ID);
void method5(Integer rate, boolean status);
我曾使用过progaurd-rules.pro
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
-keepparameternames
-keep public class *
-keepclassmembers public class *{
public *;
-keep public interface packageName.MyClass$interface1 { *; }
混淆的代码如下。
public class MyClass {
public void method1(Integer marks) {
private String a(String var1){
public interface interface1 {
void method4(Integer var1);
void method5(Integer var1, boolean var2);
I want the interface methods variables (ID, rate & status) not to obfuscate. i.e as below
public interface interface1 {
void method4(Integer ID);
void method5(Integer rate, boolean status);
这怎么可能呢?