Advertisement
jasperlow

Untitled

Dec 16th, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. #-optimizationpasses 5
  2. -dontusemixedcaseclassnames
  3. -dontskipnonpubliclibraryclasses
  4. -dontpreverify
  5. -verbose
  6. -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  7. -ignorewarnings
  8.  
  9.  
  10. #Keep classes that are referenced on the AndroidManifest
  11. -keep public class * extends android.app.Activity
  12. -keep public class * extends android.app.Application
  13. -keep public class * extends android.app.Service
  14. -keep public class * extends android.content.BroadcastReceiver
  15. -keep public class * extends android.content.ContentProvider
  16. -keep public class * extends android.app.backup.BackupAgentHelper
  17. -keep public class * extends android.preference.Preference
  18. -keep public class com.android.vending.licensing.ILicensingService
  19.  
  20. -keep class net.sourceforge.zbar.** {*;}
  21. -keep class com.joanzapata.pdfview.** {*;}
  22. -keep class org.vudroid.** {*;}
  23. -keep class com.google.zxing.** {*;}
  24.  
  25. -keepclasseswithmembernames class * {
  26. native <methods>;
  27. }
  28.  
  29. -keepclassmembers class * implements android.os.Parcelable {
  30. public static final android.os.Parcelable$Creator *;
  31. }
  32.  
  33. #To maintain custom components names that are used on layouts XML:
  34. -keep public class * extends android.view.View {
  35. public <init>(android.content.Context);
  36. public <init>(android.content.Context, android.util.AttributeSet);
  37. public <init>(android.content.Context, android.util.AttributeSet, int);
  38. public void set*(...);
  39. }
  40.  
  41. # get rid of all the logging
  42. -assumenosideeffects class android.util.Log {
  43. public static int v(...);
  44. public static int d(...);
  45. public static int w(...);
  46. public static int i(...);
  47. }
  48. -assumenosideeffects class roboguice.util.Ln {
  49. public static int v(...);
  50. public static int d(...);
  51. public static int w(...);
  52. public static int i(...);
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement