TEXT   57

proguard-android

Guest on 19th May 2022 03:31:55 PM

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

Raw Paste


Login or Register to edit or fork this paste. It's free.