Proguard keep interface method variable names

偶尔善良 提交于 2019-12-19 07:58:21

问题


I'm trying to prevent proguard from obfuscating interface method variable names. My proguard.pro has the following configurations but still the method variables appear as a, b etc.

-keep public class * { public *; }

-keepclassmembers class * { public *; }

-keepattributes Exceptions,InnerClasses,Signature -keepparameternames -keep public interface com.test.listener.MyListener { *; }


回答1:


-keep interface com.yourpackage.**{*;} is what you need. It will keep all your interface's name and methods.



来源:https://stackoverflow.com/questions/28162823/proguard-keep-interface-method-variable-names

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!