Keeping a method with single boolean parameter

时间:2019-03-06 11:37:35

标签: android proguard

I have one method

public class XYZ {
    public void foo(boolean isAvailable) {

    }
}

I am using Proguard to obfuscate, Please let me know how can I keep the method foo with it's boolean parameter.

1 个答案:

答案 0 :(得分:2)

您可以这样做

exercism submit C:\Users\srag\Exercism\python\hello-world\hello_world.py

-keepparameternames -keep class com.abc.XYZ { public void foo(boolean); } 不会混淆方法参数