贷款超市新仓库

proguard-rules.pro 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  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. 复制代码到剪切板
  94. -dontshrink
  95. -dontoptimize
  96. -dontwarn com.google.android.maps.**
  97. -dontwarn android.webkit.WebView
  98. -dontwarn com.umeng.**
  99. -dontwarn com.tencent.weibo.sdk.**
  100. -dontwarn com.facebook.**
  101. -keep public class javax.**
  102. -keep public class android.webkit.**
  103. -dontwarn android.support.v4.**
  104. # This is a configuration file for ProGuard.
  105. # http://proguard.sourceforge.net/index.html#manual/usage.html
  106. -dontusemixedcaseclassnames
  107. -dontskipnonpubliclibraryclasses
  108. -verbose
  109. # Optimization is turned off by default. Dex does not like code run
  110. # through the ProGuard optimize and preverify steps (and performs some
  111. # of these optimizations on its own).
  112. -dontoptimize
  113. -dontpreverify
  114. # Note that if you want to enable optimization, you cannot just
  115. # include optimization flags in your own project configuration file;
  116. # instead you will need to point to the
  117. # "proguard-android-optimize.txt" file instead of this one from your
  118. # project.properties file.
  119. -keepattributes *Annotation*
  120. -keep public class com.google.vending.licensing.ILicensingService
  121. -keep public class com.android.vending.licensing.ILicensingService
  122. # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
  123. -keepclasseswithmembernames class * {
  124. native <methods>;
  125. }
  126. # keep setters in Views so that animations can still work.
  127. # see http://proguard.sourceforge.net/manual/examples.html#beans
  128. -keepclassmembers public class * extends android.view.View {
  129. void set*(***);
  130. *** get*();
  131. }
  132. # We want to keep methods in Activity that could be used in the XML attribute onClick
  133. -keepclassmembers class * extends android.app.Activity {
  134. public void *(android.view.View);
  135. }
  136. # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
  137. -keepclassmembers enum * {
  138. public static **[] values();
  139. public static ** valueOf(java.lang.String);
  140. }
  141. -keep class * implements android.os.Parcelable {
  142. public static final android.os.Parcelable$Creator *;
  143. public static android.os.Parcelable$Creator *;
  144. }
  145. -keepclassmembers class **.R$* {
  146. public static <fields>;
  147. }
  148. # The support library contains references to newer money versions.
  149. # Don't warn about those in case this app is linking against an older
  150. # money version. We know about them, and they are safe.
  151. #-libraryjars libs/android-support-v4.jar
  152. -dontwarn android.support.**
  153. -keep class android.support.** {*;}
  154. -keep class org.jsoup.** {*;}
  155. -keep interface org.jsoup.** {*;}
  156. -dontwarn butterknife.internal.**
  157. -keep class **$$ViewInjector { *;}
  158. -keepnames class * {@butterknife.InjectView *;}
  159. -keep class com.activeandroid.** { *; }
  160. -dontwarn com.ikoding.app.biz.dataobject.**
  161. -keep public class com.ikoding.app.biz.dataobject.** { *;}
  162. -keepattributes *Annotation*
  163. -keepclassmembers class ** {
  164. public void onEvent*(**);
  165. }
  166. -keepclassmembers enum * {
  167. public static **[] values();
  168. public static ** valueOf(java.lang.String);
  169. }
  170. -keepclassmembers @interface * {
  171. public ** value();
  172. }
  173. # Remove log codes
  174. -assumenosideeffects public class android.util.Log {
  175. public static int d(java.lang.String, java.lang.String);
  176. public static int i(java.lang.String, java.lang.String);
  177. public static int e(java.lang.String, java.lang.String);
  178. public static int w(java.lang.String, java.lang.String);
  179. public static int v(java.lang.String, java.lang.String);
  180. public static int println(int, java.lang.String, java.lang.String);
  181. }
  182. -dontwarn com.android.volley.jar.**
  183. -keep class android.os.SystemProperties {*;}
  184. -keep class com.android.letvmanager.**{*;}
  185. -keep class com.android.volley.**{*;}
  186. -keep class com.letv.**{*;}
  187. -keep class com.media.**{*;}
  188. -keep class com.baidu.** { *; }
  189. -keep class vi.com.gdi.bgl.android.**{*;}
  190. #for gson
  191. -keep class com.google.**{*;}
  192. -keepclassmembers class * implements java.io.Serializable {
  193. static final long serialVersionUID;
  194. private static final java.io.ObjectStreamField[] serialPersistentFields;
  195. private void writeObject(java.io.ObjectOutputStream);
  196. private void readObject(java.io.ObjectInputStream);
  197. java.lang.Object writeReplace();
  198. java.lang.Object readResolve();
  199. }
  200. ##---------------Begin: proguard configuration for Gson ----------
  201. # Gson uses generic type information stored in a class file when working with fields. Proguard
  202. # removes such information by default, so configure it to keep all of it.
  203. -keepattributes Signature
  204. # Gson specific classes
  205. -keep class sun.misc.Unsafe {*;}
  206. #-keep class com.google.gson.stream.** { *; }
  207. # Application classes that will be serialized/deserialized over Gson
  208. -keep class * extends com.asm.base.android.util.volley.api.BaseItem {*;} ##这里需要改成解析到哪个 javabean
  209. ##---------------End: proguard configuration for Gson ----------
  210. -keepclasseswithmembers class com.facebook.** {*;}
  211. -keepclasseswithmembers class com.squareup.** {*;}
  212. -keep public class smileflowpig.platform.moneyplatfrom.R$*{
  213. public static final int *;
  214. }
  215. -keep class com.amap.** {*;}
  216. -keep class com.aps.** {*;}
  217. -keep class com.autonavi.amap.** {*;}
  218. -keepclassmembers class ** {
  219. public void onEvent*(**);
  220. }
  221. -keep class com.alipay.** {*;}
  222. -keep class com.ta.utdid2.** {*;}
  223. -keep class com.ut.device.** {*;}
  224. -keep class org.json.alipay.** {*;}
  225. -keep class com.tencent.mm.** {*;}
  226. -dontshrink
  227. -dontoptimize
  228. -dontwarn com.google.android.maps.**
  229. -dontwarn android.webkit.WebView
  230. -dontwarn com.umeng.**
  231. -dontwarn com.tencent.weibo.sdk.**
  232. -dontwarn com.facebook.**
  233. -keep enum com.facebook.**
  234. -keepattributes Exceptions,InnerClasses,Signature
  235. -keepattributes *Annotation*
  236. -keepattributes SourceFile,LineNumberTable
  237. -keep public interface com.facebook.**
  238. -keep public interface com.tencent.**
  239. -keep public interface com.umeng.socialize.**
  240. -keep public interface com.umeng.socialize.sensor.**
  241. -keep public interface com.umeng.scrshot.**
  242. -keep public class com.umeng.socialize.* {*;}
  243. -keep public class javax.**
  244. -keep public class android.webkit.**
  245. -keep class com.facebook.**
  246. -keep class com.umeng.scrshot.**
  247. -keep public class com.tencent.** {*;}
  248. -keep class com.umeng.socialize.sensor.**
  249. -keep class com.tencent.mm.sdk.modelmsg.WXMediaMessage {*;}
  250. -keep class com.tencent.mm.sdk.modelmsg.** implements com.tencent.mm.sdk.modelmsg.WXMediaMessage$IMediaObject {*;}
  251. -keep class im.yixin.sdk.api.YXMessage {*;}
  252. -keep class im.yixin.sdk.api.** implements im.yixin.sdk.api.YXMessage$YXMessageData{*;}
  253. -keep class org.vudroid.**{*;}
  254. -keep class com.joanzapata.pdfview.**{*;}
  255. -keep class com.lecloud.**{*;}
  256. -keep class com.letv.**{*;}
  257. -keep class com.avdmg.**{*;}
  258. -keep class com.letvcloud.**{*;}
  259. -keep class com.lidroid.**{*;}
  260. -keep class cn.mmachina.**{*;}
  261. -keep class cn.com.iresearch.**{*;}
  262. -keep class com.umeng.** {*;}
  263. -keep class u.upd.** {*;}
  264. -keep class khandroid.ext.apache.http.** {*;}
  265. -keep class org.apache.http.entity.mime.** {*;}
  266. -keep class uk.co.senab.photoview.** {*;}
  267. -keep class com.h6ah4i.android.widget.** {*;}
  268. -keep class com.bruce.pickerview.** {*;}
  269. -keep class com.google.gson.stream.** { *; }
  270. -keepclassmembers enum * {
  271. public static **[] values();
  272. public static ** valueOf(java.lang.String);
  273. }
  274. -keepclassmembers class * {
  275. public <init>(org.json.JSONObject);
  276. }
  277. -keep class smileflowpig.platform.moneyplatfrom.MiPushReceiver {*;}
  278. -keep class smileflowpig.platform.factory.** { *; }
  279. -keep public class * implements com.bumptech.glide.module.GlideModule
  280. -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  281. **[] $VALUES;
  282. public *;
  283. }
  284. -keepattributes *Annotation*
  285. -keepclassmembers class ** {
  286. @org.greenrobot.eventbus.Subscribe <methods>;
  287. }
  288. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  289. # Only required if you use AsyncExecutor
  290. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  291. <init>(java.lang.Throwable);
  292. }
  293. -keepclassmembers class smileflowpig.platform.moneyplatfrom.web.WebActivity$AndroidtoJs {
  294. <methods>;
  295. }
  296. #不混淆org.apache.http.legacy.jar
  297. -dontwarn android.net.compatibility.**
  298. -dontwarn android.net.http.**
  299. -dontwarn com.android.internal.http.multipart.**
  300. -dontwarn org.apache.commons.**
  301. -dontwarn org.apache.http.**
  302. -keep class android.net.compatibility.**{*;}
  303. -keep class android.net.http.**{*;}
  304. -keep class com.android.internal.http.multipart.**{*;}
  305. -keep class org.apache.commons.**{*;}
  306. -keep class org.apache.http.**{*;}
  307. #友盟统计
  308. -keepclassmembers class * {
  309. public <init> (org.json.JSONObject);
  310. }
  311. #推送
  312. -dontwarn com.vivo.push.**
  313. -keep class com.vivo.push.**{*; }
  314. -keep class com.vivo.vms.**{*; }
  315. -keep class com.smileflowpig.money.push.reciver.PushMessageReceiverImpl{*;}
  316. #这里com.xiaomi.mipushdemo.DemoMessageRreceiver改成app中定义的完整类名
  317. -keep class com.smileflowpig.money.push.reciver.MiPushReciver{*;}
  318. #可以防止一个误报的 warning 导致无法成功编译,如果编译使用的 Android 版本是 23。
  319. -dontwarn com.xiaomi.push.**
  320. -ignorewarning
  321. -keepattributes *Annotation*
  322. -keepattributes Exceptions
  323. -keepattributes InnerClasses
  324. -keepattributes Signature
  325. -keepattributes SourceFile,LineNumberTable
  326. -keep class com.hianalytics.android.**{*;}
  327. -keep class com.huawei.updatesdk.**{*;}
  328. -keep class com.huawei.hms.**{*;}
  329. -keep class com.huawei.android.hms.agent.**{*;}
  330. -keep class com.huawei.gamebox.plugin.gameservice.**{*;}