proguard-android.txt 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. -keep public class * extends android.app.Application
  20. -keep public class * extends android.app.Service
  21. -keep public class * extends android.content.BroadcastReceiver
  22. -keep public class * extends android.content.ContentProvider
  23. -keep public class * extends android.app.backup.BackupAgentHelper
  24. -keep public class * extends android.preference.Preference
  25. # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
  26. -keepclasseswithmembernames class * {
  27. native <methods>;
  28. }
  29. # keep setters in Views so that animations can still work.
  30. # see http://proguard.sourceforge.net/manual/examples.html#beans
  31. -keepclassmembers public class * extends android.view.View {
  32. void set*(***);
  33. *** get*();
  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. # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
  40. -keepclassmembers enum * {
  41. public static **[] values();
  42. public static ** valueOf(java.lang.String);
  43. }
  44. -keep class * implements android.os.Parcelable {
  45. public static final android.os.Parcelable$Creator *;
  46. }
  47. -keepclassmembers class **.R$* {
  48. public static <fields>;
  49. }
  50. -libraryjars libs/android-support-v4.jar
  51. -dontwarn android.support.v4.**
  52. -keep class android.support.v4.** { *; }
  53. -libraryjars /libs/zxing2.1.jar
  54. -dontwarn com.google.zxing.**
  55. -keep class com.google.zxing.** { *;}
  56. -libraryjars /libs/commons-codec-1.5.jar
  57. -dontwarn org.apache.commons.codec.binary.**
  58. -keep class org.apache.commons.codec.binary.** { *;}
  59. -libraryjars libs/httpmime-4.0.jar
  60. -dontwarn org.apache.http.**
  61. -keep class org.apache.http.** { *;}
  62. # The support library contains references to newer platform versions.
  63. # Don't warn about those in case this app is linking against an older
  64. # platform version. We know about them, and they are safe.
  65. -dontwarn android.support.**