proguard-rules.pro 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. # This is a configuration file for ProGuard.
  2. # http://proguard.sourceforge.net/index.html#manual/usage.html
  3. #
  4. # Starting with version 2.2 of the Android plugin for Gradle, these files are no longer used. Newer
  5. # versions are distributed with the plugin and unpacked at build time. Files in this directory are
  6. # no longer maintained.
  7. -dontusemixedcaseclassnames
  8. -dontskipnonpubliclibraryclasses
  9. -verbose
  10. # Optimization is turned off by default. Dex does not like code run
  11. # through the ProGuard optimize and preverify steps (and performs some
  12. # of these optimizations on its own).
  13. -dontoptimize
  14. -dontpreverify
  15. # Note that if you want to enable optimization, you cannot just
  16. # include optimization flags in your own project configuration file;
  17. # instead you will need to point to the
  18. # "proguard-android-optimize.txt" file instead of this one from your
  19. # project.properties file.
  20. -keepattributes *Annotation*
  21. -keep public class com.google.vending.licensing.ILicensingService
  22. -keep public class com.android.vending.licensing.ILicensingService
  23. # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
  24. -keepclasseswithmembernames class * {
  25. native <methods>;
  26. }
  27. # keep setters in Views so that animations can still work.
  28. # see http://proguard.sourceforge.net/manual/examples.html#beans
  29. -keepclassmembers public class * extends android.view.View {
  30. void set*(***);
  31. *** get*();
  32. }
  33. # We want to keep methods in Activity that could be used in the XML attribute onClick
  34. -keepclassmembers class * extends android.app.Activity {
  35. public void *(android.view.View);
  36. }
  37. # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
  38. -keepclassmembers enum * {
  39. public static **[] values();
  40. public static ** valueOf(java.lang.String);
  41. }
  42. -keepclassmembers class * implements android.os.Parcelable {
  43. public static final android.os.Parcelable$Creator CREATOR;
  44. }
  45. -keepclassmembers class **.R$* {
  46. public static <fields>;
  47. }
  48. # The support library contains references to newer platform versions.
  49. # Don't warn about those in case this app is linking against an older
  50. # platform version. We know about them, and they are safe.
  51. -dontwarn android.support.**
  52. # Understand the @Keep support annotation.
  53. -keep class android.support.annotation.Keep
  54. -keep @android.support.annotation.Keep class * {*;}
  55. -keepclasseswithmembers class * {
  56. @android.support.annotation.Keep <methods>;
  57. }
  58. -keepclasseswithmembers class * {
  59. @android.support.annotation.Keep <fields>;
  60. }
  61. -keepclasseswithmembers class * {
  62. @android.support.annotation.Keep <init>(...);
  63. }
  64. # webView处理
  65. -keepclassmembers class fqcn.of.javascript.interface.for.webview {
  66. public *;
  67. }
  68. # 抛出异常时保留代码行号
  69. -keepattributes SourceFile,LineNumberTable
  70. -keepattributes Exceptions,InnerClasses
  71. -keepattributes Signature
  72. # Gson
  73. -keep class com.google.gson.** { *; }
  74. # alipay
  75. -keep class com.alipay.** {*;}
  76. -keep class ta.utdid2.**{*;}
  77. -keep class ut.device.**{*;}
  78. -keep class org.json.alipay.**{*;}
  79. # 保留support下的所有类及其内部类
  80. -keep class android.support.** {*;}
  81. # 保留继承的
  82. -keep public class * extends android.support.v4.**
  83. #---------------------------------------金融魔方-----------------------------------------------
  84. #common
  85. -keepclassmembers class com.jrmf360.rylib.common.fragment.**{
  86. <methods>;
  87. }
  88. -keep class com.jrmf360.rylib.common.http.**{*;}
  89. -keep class com.jrmf360.rylib.common.model.**{*;}
  90. #-keep class com.jrmf360.rylib.common.util.**{*;}
  91. -keepclassmembers class com.jrmf360.rylib.common.util.CountUtil{
  92. <methods>;
  93. }
  94. -keepclassmembers class com.jrmf360.rylib.common.util.NetworkCacheUtil{*;}
  95. -keep class com.jrmf360.rylib.common.util.NetworkCacheUtil$*{*;}
  96. -keepclassmembers class com.jrmf360.rylib.common.util.MemoryCacheUtil{*;}
  97. -keep class com.jrmf360.rylib.common.util.MemoryCacheUtil$*{*;}
  98. -keep class com.jrmf360.rylib.common.util.LogUtil{*;}
  99. #-keepclassmembers class com.jrmf360.rylib.common.util.KeyboardUtil{*;}
  100. -keep class com.jrmf360.rylib.common.util.KeyboardUtil$* {*;}
  101. -keep class com.jrmf360.rylib.common.util.ToastUtil{*;}
  102. -keep class com.jrmf360.rylib.common.util.ToastUtil$* {*;}
  103. -keepclassmembers class com.jrmf360.rylib.common.util.RotateAnimationUtil{
  104. <methods>;
  105. }
  106. -keep class com.jrmf360.rylib.common.view.**{*;}
  107. -keepclassmembers class com.jrmf360.rylib.diaplay.**{
  108. <methods>;
  109. }
  110. -keepclassmembers class com.jrmf360.rylib.adapter.TradeDetailAdapter{
  111. <methods>;
  112. }
  113. -keep class com.jrmf360.rylib.modules.**{*;}
  114. #红包
  115. -keep class com.jrmf360.rylib.rp.extend.**{*;}
  116. -keep class com.jrmf360.rylib.rp.gridpwdview.**{*;}
  117. #新添加model混淆
  118. #-keep class com.jrmf360.rylib.rp.http.model.*{*;}
  119. -keepclassmembers class * extends com.jrmf360.rylib.common.model.BaseModel{*;}
  120. -keep class com.jrmf360.rylib.common.model.BaseModel{*;}
  121. -keep class com.jrmf360.rylib.rp.http.model.SendRpItemModel{*;}
  122. -keep class com.jrmf360.rylib.rp.http.model.RpInfoModel$* {*;}
  123. -keep class com.jrmf360.rylib.rp.http.RpHttpManager$*{*;}
  124. -keep class com.jrmf360.rylib.rp.ui.**{*;}
  125. -keep class com.jrmf360.rylib.rp.widget.**{*;}
  126. -keep class com.jrmf360.rylib.JrmfClient{*;}
  127. -keep class com.jrmf360.rylib.JrmfClient$* {
  128. *;
  129. }
  130. #钱包
  131. -keepclassmembers class com.jrmf360.rylib.wallet.fragment.*{
  132. <methods>;
  133. }
  134. #-keep class com.jrmf360.rylib.wallet.http.model{*;}
  135. -keepclassmembers class com.jrmf360.rylib.wallet.http.model.AccountModel{*;}
  136. -keepclassmembers class com.jrmf360.rylib.wallet.http.model.ProviceModel{*;}
  137. -keepclassmembers class com.jrmf360.rylib.wallet.http.model.City{*;}
  138. -keep class com.jrmf360.rylib.wallet.http.model.TradeItemDetail{*;}
  139. -keep class com.jrmf360.rylib.wallet.http.model.SendRpItemModel{*;}
  140. -keep class com.jrmf360.rylib.wallet.http.model.BankBranch$* {*;}
  141. -keep class com.jrmf360.rylib.wallet.http.WalletHttpManager$*{*;}
  142. -keep class com.jrmf360.rylib.wallet.ui.**{*;}
  143. -keep class com.jrmf360.rylib.wallet.webview.**{*;}
  144. -keep class com.jrmf360.rylib.wallet.widget.**{*;}
  145. -keep class com.jrmf360.rylib.wallet.JrmfWalletClient{*;}
  146. -keep class com.jrmf360.rylib.wallet.JrmfWalletClient$* {
  147. *;
  148. }
  149. -ignorewarnings