7

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

Pedro Oliveira
  • 20,442
  • 8
  • 55
  • 82
Jani
  • 1,400
  • 17
  • 36

2 Answers2

1

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

Kingfisher Phuoc
  • 8,052
  • 9
  • 46
  • 86
0
    -keep public interface com.yourpackqge.yourapp.**{*;}

This works for me