贷款超市新仓库

proguard-rules.pro 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in C:\Users\Administrator\AppData\Local\Android\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. # Add any project specific keep options here:
  10. # If your project uses WebView with JS, uncomment the following
  11. # and specify the fully qualified class name to the JavaScript interface
  12. # class:
  13. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  14. # public *;
  15. #}
  16. # Uncomment this to preserve the line number information for
  17. # debugging stack traces.
  18. #-keepattributes SourceFile,LineNumberTable
  19. # If you keep the line number information, uncomment this to
  20. # hide the original source file name.
  21. #-renamesourcefileattribute SourceFile
  22. -dontwarn android.os.**
  23. -dontwarn com.android.internal.**
  24. -keep class cn.fraudmetrix.sdk.**{*;}
  25. -dontskipnonpubliclibraryclassmembers
  26. -optimizations !code/simplification/arithmetic
  27. -allowaccessmodification
  28. -keepattributes *Annotation*
  29. -keepattributes EnclosingMethod
  30. # 混淆时不使用重载机制,正式发版时可以去掉此行以提高混淆强度
  31. -useuniqueclassmembernames
  32. -dontwarn com.squareup.**
  33. -dontwarn okio.**
  34. -dontwarn com.sina.weibo.sdk.**
  35. -dontwarn retrofit2.**
  36. -keep class retrofit2.** { *; }
  37. -keepattributes Signature
  38. -keepattributes Exceptions
  39. -keep class com.sina.weibo.sdk.** { *;}
  40. -dontwarn org.springframework.**
  41. -keep class org.springframework.** { *;}
  42. -keep class com.renn.rennsdk.**{*;}
  43. -keep class com.tencent.open.TDialog$*
  44. -keep class com.tencent.open.TDialog$* {*;}
  45. -keep class com.tencent.open.PKDialog
  46. -keep class com.tencent.open.PKDialog {*;}
  47. -keep class com.tencent.open.PKDialog$*
  48. -keep class com.tencent.open.PKDialog$* {*;}
  49. -keep class com.tencent.mm.sdk.openapi.WXMediaMessage {*;}
  50. -keep class com.tencent.mm.sdk.openapi.** implements com.tencent.mm.sdk.openapi.WXMediaMessage$IMediaObject {*;}
  51. -dontwarn com.tendcloud.tenddata.**
  52. -keep class com.tendcloud.tenddata.** {*;}
  53. #-libraryjars libs/weibosdk.jar
  54. #-libraryjars libs/weibosdkcore.jar
  55. -ignorewarnings
  56. #360登录
  57. -dontwarn com.qihoo.**
  58. -keep class cn.pp.** {*;}
  59. -keep class com.yeepay.** {*;}
  60. -keep class com.alipay.** {*;}
  61. -keep class com.qihoo.** {*;}
  62. -keep class com.qihoo360.** {*;}
  63. -keep class com.qihoopp.** {*;}
  64. -dontwarn org.apache.http.conn.ssl.SSLSocketFactory
  65. # 保持哪些类不被混淆:四大组件,应用类,配置类等等
  66. -keep public class * extends android.app.Activity
  67. -keep public class * extends android.app.Application
  68. -keep public class * extends android.app.Service
  69. -keep public class * extends android.content.BroadcastReceiver
  70. -keep public class * extends android.content.ContentProvider
  71. -keep public class * extends android.app.backup.BackupAgentHelper
  72. -keep public class * extends android.preference.Preference
  73. -keep public class com.android.vending.licensing.ILicensingService
  74. #for umeng begin
  75. -keepclassmembers class * {
  76. public <init>(org.json.JSONObject);
  77. }
  78. -keepclassmembers enum * {
  79. public static **[] values();
  80. public static ** valueOf(java.lang.String);
  81. }
  82. #for umeng end
  83. #for dm begin
  84. -dontwarn cn.dm.**
  85. -keep class cn.dm.** {*;}
  86. -keep class cn.dm.android.ui.interaction.** {*;}
  87. -keepattributes *Annotation*
  88. #for dm end
  89. -dontwarn com.xiaomi.**
  90. -keep class com.xiaomi.**{*;}
  91. -keep class org.apache.thrift.**{*;}
  92. -dontwarn org.apache.thrift.**
  93. # This is a configuration file for ProGuard.
  94. # http://proguard.sourceforge.net/index.html#manual/usage.html
  95. -dontusemixedcaseclassnames
  96. -dontskipnonpubliclibraryclasses
  97. -verbose
  98. # Optimization is turned off by default. Dex does not like code run
  99. # through the ProGuard optimize and preverify steps (and performs some
  100. # of these optimizations on its own).
  101. -dontoptimize
  102. -dontpreverify
  103. # Note that if you want to enable optimization, you cannot just
  104. # include optimization flags in your own project configuration file;
  105. # instead you will need to point to the
  106. # "proguard-android-optimize.txt" file instead of this one from your
  107. # project.properties file.
  108. -keepattributes *Annotation*
  109. -keep public class com.google.vending.licensing.ILicensingService
  110. -keep public class com.android.vending.licensing.ILicensingService
  111. # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
  112. -keepclasseswithmembernames class * {
  113. native <methods>;
  114. }
  115. # keep setters in Views so that animations can still work.
  116. # see http://proguard.sourceforge.net/manual/examples.html#beans
  117. -keepclassmembers public class * extends android.view.View {
  118. void set*(***);
  119. *** get*();
  120. }
  121. # We want to keep methods in Activity that could be used in the XML attribute onClick
  122. -keepclassmembers class * extends android.app.Activity {
  123. public void *(android.view.View);
  124. }
  125. # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
  126. -keepclassmembers enum * {
  127. public static **[] values();
  128. public static ** valueOf(java.lang.String);
  129. }
  130. -keep class * implements android.os.Parcelable {
  131. public static final android.os.Parcelable$Creator *;
  132. public static android.os.Parcelable$Creator *;
  133. }
  134. -keepclassmembers class **.R$* {
  135. public static <fields>;
  136. }
  137. # The support library contains references to newer platform versions.
  138. # Don't warn about those in case this app is linking against an older
  139. # platform version. We know about them, and they are safe.
  140. #-libraryjars libs/android-support-v4.jar
  141. -dontwarn android.support.**
  142. -keep class android.support.** {*;}
  143. -keep class org.jsoup.** {*;}
  144. -keep interface org.jsoup.** {*;}
  145. -dontwarn butterknife.internal.**
  146. -keep class **$$ViewInjector { *;}
  147. -keepnames class * {@butterknife.InjectView *;}
  148. -keep class com.activeandroid.** { *; }
  149. -dontwarn com.ikoding.app.biz.dataobject.**
  150. -keep public class com.ikoding.app.biz.dataobject.** { *;}
  151. -keepattributes *Annotation*
  152. -keepclassmembers class ** {
  153. public void onEvent*(**);
  154. }
  155. -keepclassmembers enum * {
  156. public static **[] values();
  157. public static ** valueOf(java.lang.String);
  158. }
  159. -keepclassmembers @interface * {
  160. public ** value();
  161. }
  162. # Remove log codes
  163. -assumenosideeffects public class android.util.Log {
  164. public static int d(java.lang.String, java.lang.String);
  165. public static int i(java.lang.String, java.lang.String);
  166. public static int e(java.lang.String, java.lang.String);
  167. public static int w(java.lang.String, java.lang.String);
  168. public static int v(java.lang.String, java.lang.String);
  169. public static int println(int, java.lang.String, java.lang.String);
  170. }
  171. -dontwarn com.android.volley.jar.**
  172. -keep class android.os.SystemProperties {*;}
  173. -keep class com.android.letvmanager.**{*;}
  174. -keep class com.android.volley.**{*;}
  175. -keep class com.letv.**{*;}
  176. -keep class com.media.**{*;}
  177. -keep class com.baidu.** { *; }
  178. -keep class vi.com.gdi.bgl.android.**{*;}
  179. #for gson
  180. -keep class com.google.**{*;}
  181. -keepclassmembers class * implements java.io.Serializable {
  182. static final long serialVersionUID;
  183. private static final java.io.ObjectStreamField[] serialPersistentFields;
  184. private void writeObject(java.io.ObjectOutputStream);
  185. private void readObject(java.io.ObjectInputStream);
  186. java.lang.Object writeReplace();
  187. java.lang.Object readResolve();
  188. }
  189. ##---------------Begin: proguard configuration for Gson ----------
  190. # Gson uses generic type information stored in a class file when working with fields. Proguard
  191. # removes such information by default, so configure it to keep all of it.
  192. -keepattributes Signature
  193. # Gson specific classes
  194. -keep class sun.misc.Unsafe {*;}
  195. #-keep class com.google.gson.stream.** { *; }
  196. # Application classes that will be serialized/deserialized over Gson
  197. -keep class * extends com.asm.base.android.util.volley.api.BaseItem {*;} ##这里需要改成解析到哪个 javabean
  198. ##---------------End: proguard configuration for Gson ----------
  199. -keepclasseswithmembers class com.facebook.** {*;}
  200. -keepclasseswithmembers class com.squareup.** {*;}
  201. -keep public class money.kuxuan.platform.moneyplatfrom.R$*{
  202. public static final int *;
  203. }
  204. -keep class com.amap.** {*;}
  205. -keep class com.aps.** {*;}
  206. -keep class com.autonavi.amap.** {*;}
  207. -keepclassmembers class ** {
  208. public void onEvent*(**);
  209. }
  210. -keep class com.alipay.** {*;}
  211. -keep class com.ta.utdid2.** {*;}
  212. -keep class com.ut.device.** {*;}
  213. -keep class org.json.alipay.** {*;}
  214. -keep class com.tencent.mm.** {*;}
  215. -dontshrink
  216. -dontoptimize
  217. -dontwarn com.google.android.maps.**
  218. -dontwarn android.webkit.WebView
  219. -dontwarn com.umeng.**
  220. -dontwarn com.tencent.weibo.sdk.**
  221. -dontwarn com.facebook.**
  222. -keep enum com.facebook.**
  223. -keepattributes Exceptions,InnerClasses,Signature
  224. -keepattributes *Annotation*
  225. -keepattributes SourceFile,LineNumberTable
  226. -keep public interface com.facebook.**
  227. -keep public interface com.tencent.**
  228. -keep public interface com.umeng.socialize.**
  229. -keep public interface com.umeng.socialize.sensor.**
  230. -keep public interface com.umeng.scrshot.**
  231. -keep public class com.umeng.socialize.* {*;}
  232. -keep public class javax.**
  233. -keep public class android.webkit.**
  234. -keep class com.facebook.**
  235. -keep class com.umeng.scrshot.**
  236. -keep public class com.tencent.** {*;}
  237. -keep class com.umeng.socialize.sensor.**
  238. -keep class com.tencent.mm.sdk.modelmsg.WXMediaMessage {*;}
  239. -keep class com.tencent.mm.sdk.modelmsg.** implements com.tencent.mm.sdk.modelmsg.WXMediaMessage$IMediaObject {*;}
  240. -keep class im.yixin.sdk.api.YXMessage {*;}
  241. -keep class im.yixin.sdk.api.** implements im.yixin.sdk.api.YXMessage$YXMessageData{*;}
  242. -keep class org.vudroid.**{*;}
  243. -keep class com.joanzapata.pdfview.**{*;}
  244. -keep class com.lecloud.**{*;}
  245. -keep class com.letv.**{*;}
  246. -keep class com.avdmg.**{*;}
  247. -keep class com.letvcloud.**{*;}
  248. -keep class com.lidroid.**{*;}
  249. -keep class cn.mmachina.**{*;}
  250. -keep class cn.com.iresearch.**{*;}
  251. -keep class com.umeng.** {*;}
  252. -keep class u.upd.** {*;}
  253. -keep class khandroid.ext.apache.http.** {*;}
  254. -keep class org.apache.http.entity.mime.** {*;}
  255. -keep class uk.co.senab.photoview.** {*;}
  256. -keep class com.h6ah4i.android.widget.** {*;}
  257. -keep class com.bruce.pickerview.** {*;}
  258. -keep class com.google.gson.stream.** { *; }
  259. -keepclassmembers enum * {
  260. public static **[] values();
  261. public static ** valueOf(java.lang.String);
  262. }
  263. -keepclassmembers class * {
  264. public <init>(org.json.JSONObject);
  265. }
  266. -keep class money.kuxuan.platform.moneyplatfrom.MiPushReceiver {*;}
  267. -keep class money.kuxuan.platform.factory.** { *; }
  268. -keep public class * implements com.bumptech.glide.module.GlideModule
  269. -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  270. **[] $VALUES;
  271. public *;
  272. }
  273. -keepattributes *Annotation*
  274. -keepclassmembers class ** {
  275. @org.greenrobot.eventbus.Subscribe <methods>;
  276. }
  277. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  278. # Only required if you use AsyncExecutor
  279. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  280. <init>(java.lang.Throwable);
  281. }
  282. -keepclassmembers class money.kuxuan.platform.moneyplatfrom.web.WebActivity$AndroidtoJs {
  283. <methods>;
  284. }
  285. #不混淆org.apache.http.legacy.jar
  286. -dontwarn android.net.compatibility.**
  287. -dontwarn android.net.http.**
  288. -dontwarn com.android.internal.http.multipart.**
  289. -dontwarn org.apache.commons.**
  290. -dontwarn org.apache.http.**
  291. -keep class android.net.compatibility.**{*;}
  292. -keep class android.net.http.**{*;}
  293. -keep class com.android.internal.http.multipart.**{*;}
  294. -keep class org.apache.commons.**{*;}
  295. -keep class org.apache.http.**{*;}