Advertisement
Guest User

Progaurd rule

a guest
Jun 20th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. -keep class org.apache.http.** { *; }
  2. -dontwarn org.apache.http.**
  3. -dontwarn **
  4.  
  5. # Retrofit
  6. -dontwarn retrofit2.**
  7. -dontwarn org.codehaus.mojo.**
  8. -keep class retrofit2.** { *; }
  9. -keepattributes Signature
  10. -keepattributes Exceptions
  11. -keepattributes *Annotation*
  12.  
  13. -keepattributes RuntimeVisibleAnnotations
  14. -keepattributes RuntimeInvisibleAnnotations
  15. -keepattributes RuntimeVisibleParameterAnnotations
  16. -keepattributes RuntimeInvisibleParameterAnnotations
  17.  
  18. -keepattributes EnclosingMethod
  19.  
  20. -keepclasseswithmembers class * {
  21. @retrofit2.* <methods>;
  22. }
  23.  
  24. -keepclasseswithmembers interface * {
  25. @retrofit2.* <methods>;
  26. }
  27.  
  28. -keepattributes Signature
  29. -keepattributes *Annotation*
  30. -keep class okhttp3.** { *; }
  31. -keep interface okhttp3.** { *; }
  32. -dontwarn okhttp3.**
  33. -dontnote okhttp3.**
  34.  
  35. # Okio
  36. -keep class sun.misc.Unsafe { *; }
  37. -dontwarn java.nio.file.*
  38. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  39.  
  40. -keep class sun.misc.Unsafe { *; }
  41. -keep class com.google.gson.stream.** { *; }
  42.  
  43. -keep class butterknife.** { *; }
  44. -dontwarn butterknife.internal.**
  45. -keep class **$$ViewBinder { *; }
  46.  
  47. -keepclasseswithmembernames class * {
  48. @butterknife.* <fields>;
  49. }
  50.  
  51. -keepclasseswithmembernames class * {
  52. @butterknife.* <methods>;
  53. }
  54.  
  55. -assumenosideeffects class android.util.Log {
  56. public static boolean isLoggable(java.lang.String, int);
  57. public static int v(...);
  58. public static int i(...);
  59. public static int w(...);
  60. public static int d(...);
  61. public static int e(...);
  62. }
  63.  
  64. -keep public class com.google.android.gms.* { public *; }
  65. -dontwarn com.google.android.gms.**
  66. -keep public class com.google.maps.* { *; }
  67. -dontwarn com.google.maps.**
  68.  
  69. -optimizations !class/unboxing/enum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement