Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proguard keep interface method variable names

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 { *; }

like image 399
Jani Avatar asked Jan 27 '15 03:01

Jani


1 Answers

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

like image 98
Kingfisher Phuoc Avatar answered Oct 21 '22 07:10

Kingfisher Phuoc