|
81 | 81 | public static final android.os.Parcelable$Creator *; |
82 | 82 | } |
83 | 83 |
|
| 84 | + |
84 | 85 | #不混淆Serializable接口的子类中指定的某些成员变量和方法 |
85 | 86 | -keepclassmembers class * implements java.io.Serializable { |
86 | 87 | static final long serialVersionUID; |
87 | 88 | private static final java.io.ObjectStreamField[] serialPersistentFields; |
| 89 | + !static !transient <fields>; |
88 | 90 | private void writeObject(java.io.ObjectOutputStream); |
89 | 91 | private void readObject(java.io.ObjectInputStream); |
90 | 92 | java.lang.Object writeReplace(); |
91 | 93 | java.lang.Object readResolve(); |
92 | 94 | } |
93 | 95 |
|
94 | | -# 不混淆R类里及其所有内部static类中的所有static变量字段 |
95 | | --keep public class com.guiying.androidmodulepattern.R$*{ |
96 | | - public static final int *; |
97 | | -} |
98 | | - |
99 | 96 |
|
100 | 97 | -keepclassmembers class * { |
101 | 98 | public <init> (org.json.JSONObject); |
102 | 99 | } |
103 | 100 |
|
| 101 | + |
| 102 | +# 不混淆R类里及其所有内部static类中的所有static变量字段,$是用来分割内嵌类与其母体的标志 |
| 103 | +-keep public class **.R$*{ |
| 104 | + public static final int *; |
| 105 | +} |
| 106 | + |
104 | 107 | #---------------------------------webview------------------------------------ |
105 | 108 | -keepclassmembers class fqcn.of.javascript.interface.for.webview { |
106 | 109 | public *; |
|
116 | 119 | -keep class com.guiying.girls.data.bean.** {*;} |
117 | 120 |
|
118 | 121 | #---------------------------------第三方库及jar包------------------------------- |
| 122 | + |
119 | 123 | #litepal数据库不能被混淆 |
120 | 124 | -keep class org.litepal.** {*;} |
121 | 125 | -keep class * extends org.litepal.crud.DataSupport {*;} |
|
128 | 132 | } |
129 | 133 |
|
130 | 134 |
|
| 135 | +#PersistentCookieJar |
| 136 | +-dontwarn com.franmontiel.persistentcookiejar.** |
| 137 | +-keep class com.franmontiel.persistentcookiejar.** |
| 138 | + |
| 139 | + |
131 | 140 | #activityrouter |
132 | 141 | -keep class com.github.mzule.activityrouter.router.** { *; } |
133 | 142 |
|
134 | 143 | #友盟统计 |
135 | 144 | -keep class com.umeng.analytics.** {*;} |
136 | 145 | -dontwarn com.umeng.analytics.** |
| 146 | +#友盟推送 |
| 147 | +-dontwarn com.taobao.** |
| 148 | +-dontwarn anet.channel.** |
| 149 | +-dontwarn anetwork.channel.** |
| 150 | +-dontwarn org.android.** |
| 151 | +-dontwarn org.apache.thrift.** |
| 152 | +-dontwarn com.xiaomi.** |
| 153 | +-dontwarn com.huawei.** |
| 154 | +-keep class com.taobao.** {*;} |
| 155 | +-keep class org.android.** {*;} |
| 156 | +-keep class anet.channel.** {*;} |
| 157 | +-keep class com.umeng.** {*;} |
| 158 | +-keep class com.xiaomi.** {*;} |
| 159 | +-keep class com.huawei.** {*;} |
| 160 | +-keep class org.apache.thrift.** {*;} |
| 161 | +-keep class com.alibaba.sdk.android.**{*;} |
| 162 | +-keep class com.ut.**{*;} |
| 163 | +-keep class com.ta.**{*;} |
137 | 164 |
|
138 | 165 |
|
139 | 166 | #换肤框架的混淆文件 |
140 | 167 | -keep class solid.ren.skinlibrary.** {*;} |
141 | 168 | -dontwarn solid.ren.skinlibrary.** |
142 | 169 |
|
| 170 | + |
143 | 171 | #高德相关混淆文件 |
144 | 172 | #3D 地图 |
145 | 173 | -keep class com.amap.api.** {*;} |
|
233 | 261 | #retrofit |
234 | 262 | -dontwarn retrofit.** |
235 | 263 | -keep class retrofit.** { *; } |
236 | | --keepattributes Signature |
237 | | --keepattributes Exceptions |
238 | 264 | -dontwarn okio.** |
239 | 265 |
|
240 | 266 |
|
|
0 commit comments