proguard-android.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # This is a configuration file for ProGuard.
  2. # http://proguard.sourceforge.net/index.html#manual/usage.html
  3. -dontusemixedcaseclassnames
  4. -dontskipnonpubliclibraryclasses
  5. -verbose
  6. # Optimization is turned off by default. Dex does not like code run
  7. # through the ProGuard optimize and preverify steps (and performs some
  8. # of these optimizations on its own).
  9. -dontoptimize
  10. -dontpreverify
  11. # Note that if you want to enable optimization, you cannot just
  12. # include optimization flags in your own project configuration file;
  13. # instead you will need to point to the
  14. # "proguard-android-optimize.txt" file instead of this one from your
  15. # project.properties file.
  16. -keepattributes *Annotation*
  17. -keep public class com.google.vending.licensing.ILicensingService
  18. -keep public class com.android.vending.licensing.ILicensingService
  19. # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
  20. -keepclasseswithmembernames class * {
  21. native <methods>;
  22. }
  23. # keep setters in Views so that animations can still work.
  24. # see http://proguard.sourceforge.net/manual/examples.html#beans
  25. -keepclassmembers public class * extends android.view.View {
  26. void set*(***);
  27. *** get*();
  28. }
  29. # We want to keep methods in Activity that could be used in the XML attribute onClick
  30. -keepclassmembers class * extends android.app.Activity {
  31. public void *(android.view.View);
  32. }
  33. # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
  34. -keepclassmembers enum * {
  35. public static **[] values();
  36. public static ** valueOf(java.lang.String);
  37. }
  38. -keep class * implements android.os.Parcelable {
  39. public static final android.os.Parcelable$Creator *;
  40. }
  41. -keepclassmembers class **.R$* {
  42. public static <fields>;
  43. }
  44. # The support library contains references to newer platform versions.
  45. # Don't warn about those in case this app is linking against an older
  46. # platform version. We know about them, and they are safe.
  47. -dontwarn android.support.**