Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.26 KB | None | 0 0
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in E:\adt-bundle-windows-x86_64-20140702\sdk/tools/proguard/proguard-android.txt
  4. # You can edit the include path and order by changing the proguardFiles
  5. # directive in build.gradle.
  6. #
  7. # For more details, see
  8. # http://developer.android.com/guide/developing/tools/proguard.html
  9.  
  10. # Add any project specific keep options here:
  11.  
  12. # If your project uses WebView with JS, uncomment the following
  13. # and specify the fully qualified class name to the JavaScript interface
  14. # class:
  15. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  16. # public *;
  17. #}
  18. -keepattributes *Annotation*
  19. -keepattributes Signature
  20.  
  21. -keep class android.support.** { *; }
  22. -keep class com.google.** { *; }
  23. -keep class com.readystatesoftware.** { *; }
  24. -keep class okio.** { *; }
  25. -keep class com.soundcloud.android.** { *; }
  26.  
  27. ######################## Crashlytics 1.+ ############################
  28. -keep class com.crashlytics.** { *; }
  29. -keep class com.crashlytics.android.**
  30. -keepattributes SourceFile,LineNumberTable
  31. -keep public class * extends java.lang.Exception
  32. #####################################################################
  33.  
  34. ####################### Retrofit ###############################
  35. -dontwarn rx.**
  36.  
  37. -dontwarn okio.**
  38.  
  39. -dontwarn com.squareup.okhttp.**
  40. -keep class com.squareup.okhttp.** { *; }
  41. -keep interface com.squareup.okhttp.** { *; }
  42.  
  43. -dontwarn retrofit.**
  44. -dontwarn retrofit.appengine.UrlFetchClient
  45. -keep class retrofit.** { *; }
  46. -keepclasseswithmembers class * {
  47. @retrofit.http.* <methods>;
  48. }
  49. -keepattributes Exceptions
  50. -keepattributes Signature
  51. ###########################################################################
  52.  
  53. ############################### GSON 2.2.4 specific rules #################
  54.  
  55. # Gson uses generic type information stored in a class file when working with fields. Proguard
  56. # removes such information by default, so configure it to keep all of it.
  57. -keepattributes Signature
  58.  
  59. # For using GSON @Expose annotation
  60. -keepattributes *Annotation*
  61.  
  62. -keepattributes EnclosingMethod
  63.  
  64. # Gson specific classes
  65. -keep class sun.misc.Unsafe { *; }
  66. -keep class com.google.gson.stream.** { *; }
  67. ########################################################################
  68.  
  69. #################### Sqlite ##################################
  70. -keep class android.database.sqlite.** { *; }
  71. ##############################################################
  72.  
  73. ############################ Square Otto specific rules ################
  74. -keepclassmembers class ** {
  75. @com.squareup.otto.Subscribe public *;
  76. @com.squareup.otto.Produce public *;
  77. }
  78. #######################################################################
  79.  
  80.  
  81. ###################### ViewPagerIndicator ##########################
  82. -keep class com.viewpagerindicator.** {
  83. *;
  84. }
  85. #####################################################################
  86.  
  87. ###################### QRCode ##########################
  88. -keep class com.google.zxing.qrcode.** {
  89. *;
  90. }
  91. -keep class net.glxn.qrgen.android.** {
  92. *;
  93. }
  94. #####################################################################
  95.  
  96. ###################### universalimageloader ##########################
  97. -keep class com.nostra13.universalimageloader.** {*;}
  98. ######################################################################
  99.  
  100. ##################### io.fabric.sdk ##########################
  101. -keep class io.fabric.sdk.android.** {*;}
  102. #####################################################################
  103.  
  104. ##################### io.fabric.sdk ##########################
  105. -keep class me.zhanghai.android.materialprogressbar.** {*;}
  106. #####################################################################
  107.  
  108. ################ Google Play Services 4.3.23 specific rules #############
  109. -keep class * extends java.util.ListResourceBundle {
  110. protected Object[][] getContents();
  111. }
  112.  
  113. -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
  114. public static final *** NULL;
  115. }
  116.  
  117. -keepnames @com.google.android.gms.common.annotation.KeepName class *
  118. -keepclassmembernames class * {
  119. @com.google.android.gms.common.annotation.KeepName *;
  120. }
  121.  
  122. -keepnames class * implements android.os.Parcelable {
  123. public static final ** CREATOR;
  124. }
  125. ############################################################################
  126.  
  127. ###################### ormlite #########################
  128. # OrmLite uses reflection
  129. -keep class com.j256.**
  130. -keepclassmembers class com.j256.** { *; }
  131. -keep enum com.j256.**
  132. -keepclassmembers enum com.j256.** { *; }
  133. -keep interface com.j256.**
  134. -keepclassmembers interface com.j256.** { *; }
  135. -keepclassmembers class * {
  136. public <init>(android.content.Context);
  137. }
  138.  
  139. -keepclassmembers class classpath.** {
  140. public *;
  141. }
  142.  
  143. # Keep the helper class and its constructor
  144. -keep class * extends com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper
  145. -keepclassmembers class * extends com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper {
  146. public <init>(android.content.Context);
  147. }
  148.  
  149. # Keep the annotations
  150. -keepattributes *Annotation*
  151.  
  152. # Keep all model classes that are used by OrmLite
  153. # Also keep their field names and the constructor
  154. -keep @com.j256.ormlite.table.DatabaseTable class * {
  155. @com.j256.ormlite.field.DatabaseField <fields>;
  156. @com.j256.ormlite.field.ForeignCollectionField <fields>;
  157. }
  158. -keepattributes Signature
  159. ############################################################################
  160.  
  161. #-keep class vn.dsvn.app.models.** { *; }
  162.  
  163. -keepclassmembers class **.R$* {
  164. public static <fields>;
  165. }
  166.  
  167. -keep class vn.dsvn.sale.app.models.manager.** {*;}
  168. -keep class vn.dsvn.sale.app.models.dao.** {*;}
  169. -keep class vn.dsvn.sale.app.models.entities.** {*;}
  170. -keep class vn.dsvn.sale.app.service.response.** {*;}
  171. -keep class vn.dsvn.sale.app.service.request.** {*;}
  172.  
  173. #-keep public class * extends android.support.v4.app.Fragment
  174.  
  175. -dontwarn com.viewpagerindicator.**
  176. -dontwarn java.nio.file.Files
  177. -dontwarn java.nio.file.Path
  178. -dontwarn java.nio.file.OpenOption
  179. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  180. -dontwarn java.lang.invoke.MethodHandles
  181. -dontwarn java.lang.invoke.MethodHandle
  182. -dontwarn java.lang.reflect.Method
  183. -dontwarn java.lang.invoke.MethodHandles$Lookup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement