Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • app
  • proguard-rules.pro
Find file
Normal viewHistoryPermalink
proguard-rules.pro 9.85 KB
Newer Older
yu's avatar
init
e37b6764
 
yu committed 7 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\AndroidSDK/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
26 27 28 29

#----------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------

罗翻's avatar
订单列表调整
d96bf6c5
 
罗翻 committed 7 years ago
30 31
#-------------------------------------------基本不用动区域--------------------------------------------
#---------------------------------基本指令区----------------------------------
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
32 33 34 35 36 37 38 39
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-verbose
-printmapping proguardMapping.txt
-optimizations !code/simplification/cast,!field/*,!class/merging/*
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
40 41
-adaptclassstrings
-keepattributes InnerClasses, EnclosingMethod, Signature, *Annotation*,Exceptions
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
42
-keepattributes SourceFile,LineNumberTable
罗翻's avatar
订单列表调整
d96bf6c5
 
罗翻 committed 7 years ago
43
#----------------------------------------------------------------------------
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
44

罗翻's avatar
订单列表调整
d96bf6c5
 
罗翻 committed 7 years ago
45
#---------------------------------默认保留区---------------------------------
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
46
-keep public class * extends android.app.Activity
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
47
-keep public class * extends android.app.Application
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class * extends android.view.View
-keep public class com.android.vending.licensing.ILicensingService
-keep class android.support.** {*;}

-keepclasseswithmembernames class * {
    native <methods>;
}
-keepclassmembers class * extends android.app.Activity{
    public void *(android.view.View);
}
-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}
-keep public class * extends android.view.View{
    *** get*();
    void set*(***);
    public <init>(android.content.Context);
    public <init>(android.content.Context, android.util.AttributeSet);
    public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclasseswithmembers class * {
    public <init>(android.content.Context, android.util.AttributeSet);
    public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class * implements java.io.Serializable {
    static final long serialVersionUID;
    private static final java.io.ObjectStreamField[] serialPersistentFields;
    private void writeObject(java.io.ObjectOutputStream);
    private void readObject(java.io.ObjectInputStream);
    java.lang.Object writeReplace();
    java.lang.Object readResolve();
}
-keep class **.R$* {
 *;
}
-keepclassmembers class * {
    void *(**On*Event);
}
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
95

罗翻's avatar
订单列表调整
d96bf6c5
 
罗翻 committed 7 years ago
96
#----------------------------------------------------------------------------
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
97

罗翻's avatar
订单列表调整
d96bf6c5
 
罗翻 committed 7 years ago
98
#---------------------------------webview------------------------------------
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
99
-keepclassmembers class fqcn.of.javascript.interface.for.Webview {
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
100 101
   public *;
}
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
102
-keepclassmembers class * extends android.webkit.WebViewClient {
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
103 104 105
    public void *(android.webkit.WebView, java.lang.String, android.graphics.Bitmap);
    public boolean *(android.webkit.WebView, java.lang.String);
}
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
106 107
-keepclassmembers class * extends android.webkit.WebViewClient {
    public void *(android.webkit.WebView, jav.lang.String);
罗翻's avatar
订单路程修改
92a16416
 
罗翻 committed 7 years ago
108
}
罗翻's avatar
android 1.1.0
177b2e53
 
罗翻 committed 7 years ago
109 110 111
-keepclassmembers class * extends android.webkit.WebChromeClient{
       public void openFileChooser(...);
}
罗翻's avatar
订单列表调整
d96bf6c5
 
罗翻 committed 7 years ago
112

罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
113 114
#-------------------------------------------定制化区域----------------------------------------------
#---------------------------------1.实体类---------------------------------
罗翻's avatar
增加实体类混淆
8536a9d6
 
罗翻 committed 7 years ago
115 116 117 118
-keep public class * extends com.dayu.base.ui.presenter.BasePresenter
-keep class com.dayu.bigfish.api.protocol.** { *; }
-keep class com.dayu.base.api.protocol.** { *; }
-keep class com.dayu.message.data.protocol.** { *; }
罗翻's avatar
增加派单,抢单,预约审核
a6a3aed4
 
罗翻 committed 6 years ago
119
-keep class com.dayu.managercenter.data.** { *; }
罗翻's avatar
增加实体类混淆
8536a9d6
 
罗翻 committed 7 years ago
120
-keep class com.dayu.order.api.protocol.** { *; }
mReturn's avatar
整合评论
be9eb294
 
mReturn committed 5 years ago
121
-keep class com.dayu.learncenter.api.** { *; }
罗翻's avatar
搬家前最后一次提交
ab4e6f7d
 
罗翻 committed 7 years ago
122
-keep class com.dayu.order.sqlbean.** { *; }
罗翻's avatar
增加实体类混淆
8536a9d6
 
罗翻 committed 7 years ago
123 124
-keep class com.dayu.provider.event.** { *; }
-keep class com.dayu.usercenter.data.protocol.** { *; }
mReturn's avatar
share
0578d451
 
mReturn committed 5 years ago
125 126 127 128
-keep class com.dayu.usercenter.model.** { *; }
-keep class com.dayu.usercenter.event.** { *; }
-keep class com.bigfish.salecenter.model.** { *; }
-keep class com.bigfish.salecenter.event.** { *; }
mReturn's avatar
整合评论
be9eb294
 
mReturn committed 5 years ago
129
-keep class com.bigfish.learncenter.event.** { *; }
罗翻's avatar
修改progressUtil
4f8a33bd
 
罗翻 committed 7 years ago
130
-keep class com.dayu.event.** { *; }
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
131
#-------------------------------------------------------------------------
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
132

罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
133
#---------------------------------2.第三方包-------------------------------
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
134 135
#retrofit
-dontwarn okio.**
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
136
-dontwarn com.google.**
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
137
-dontwarn javax.annotation.**
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
138 139 140 141 142 143 144 145 146
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault
-dontwarn okio.**
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }
-dontwarn javax.inject.**
# OkHttp3
-dontwarn okhttp3.logging.**
-keep class okhttp3.internal.**{*;}
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
147 148 149
#############################################


罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
150
# RxJava RxAndroid
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
151 152
-dontwarn sun.misc.**
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
153 154
    long producerIndex;
    long consumerIndex;
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
155 156 157 158 159 160 161 162
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
    rx.internal.util.atomic.LinkedQueueNode producerNode;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
    rx.internal.util.atomic.LinkedQueueNode consumerNode;
}

罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
163 164 165 166 167 168 169 170 171 172 173 174 175 176
# Gson
-keep class com.google.gson.stream.** { *; }
-keepattributes EnclosingMethod


#PictureSelector 2.0
-keep class com.luck.picture.lib.** { *; }

-dontwarn com.yalantis.ucrop**
-keep class com.yalantis.ucrop** { *; }
-keep interface com.yalantis.ucrop** { *; }



罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
#glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.AppGlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  **[] $VALUES;
  public *;
}


#greendao
-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
public static java.lang.String TABLENAME;
}
-keep class **$Properties

# If you do not use SQLCipher:
-dontwarn org.greenrobot.greendao.database.**
# If you do not use Rx:
-dontwarn rx.**

#环信
-keep class com.hyphenate.** {*;}
罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
199 200
-keep class com.superrtc.** {*;}
-dontwarn  com.hyphenate.**
罗翻's avatar
android 框架改版
b46bcea8
 
罗翻 committed 7 years ago
201 202 203

#高德地图
-keep class com.amap.api.location.**{*;}
罗翻's avatar
去掉model
0acbf33c
 
罗翻 committed 7 years ago
204 205
-keep class com.amap.api.fence.**{*;}
-keep class com.autonavi.aps.amapapi.model.**{*;}
罗翻's avatar
增加查看结果
54740205
 
罗翻 committed 7 years ago
206 207 208 209
#2D地图
-keep class com.amap.api.maps2d.**{*;}
-keep class com.amap.api.mapcore2d.**{*;}
-dontwarn com.amap.api.**
罗翻's avatar
去掉model
0acbf33c
 
罗翻 committed 7 years ago
210

罗翻's avatar
去除所有basequikAdapter,用coreadapter...
8292e843
 
罗翻 committed 7 years ago
211

罗翻's avatar
去掉model
0acbf33c
 
罗翻 committed 7 years ago
212
#友盟
罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
213 214 215 216 217 218 219 220
-keepclassmembers class * {
   public <init> (org.json.JSONObject);
}

-keep public class com.dayu.bigfish.R$*{
public static final int *;
}

罗翻's avatar
部分类实现mvvm
c95edcb3
 
罗翻 committed 7 years ago
221 222 223 224 225 226 227 228
-keep class com.umeng.error.UMError{ public *; }

-keep class com.umeng.error.UMErrorCatch{public *; }

-keep class com.umeng.error.UMErrorDataManger{ public *; }

-keep class com.umeng.error.BatteryUtils{ public *; }

mReturn's avatar
工单优化&友盟share
374aaf3c
 
mReturn committed 5 years ago
229
#友盟push
mReturn's avatar
友盟推送&工单优化
8d476a37
 
mReturn committed 5 years ago
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
-dontwarn com.umeng.**
-dontwarn com.taobao.**
-dontwarn anet.channel.**
-dontwarn anetwork.channel.**
-dontwarn org.android.**
-dontwarn org.apache.thrift.**
-dontwarn com.xiaomi.**
-dontwarn com.huawei.**
-dontwarn com.meizu.**

-keepattributes *Annotation*

-keep class com.taobao.** {*;}
-keep class org.android.** {*;}
-keep class anet.channel.** {*;}
-keep class com.umeng.** {*;}
-keep class com.xiaomi.** {*;}
-keep class com.huawei.** {*;}
-keep class com.meizu.** {*;}
-keep class org.apache.thrift.** {*;}

-keep class com.alibaba.sdk.android.**{*;}
-keep class com.ut.**{*;}
-keep class com.ta.**{*;}

-keep public class **.R$*{
   public static final int *;
}
mReturn's avatar
工单优化&友盟share
374aaf3c
 
mReturn committed 5 years ago
258
-keep public class * extends android.app.Service
mReturn's avatar
友盟推送&工单优化
5fb96c68
 
mReturn committed 5 years ago
259 260 261 262
-dontwarn com.vivo.push.**
-keep class com.vivo.push.**{*; }
-keep class com.vivo.vms.**{*; }
-keep class xxx.xxx.xxx.PushMessageReceiverImpl{*;}
mReturn's avatar
工单优化&友盟share
374aaf3c
 
mReturn committed 5 years ago
263

mReturn's avatar
友盟推送&工单优化
8d476a37
 
mReturn committed 5 years ago
264 265


罗翻's avatar
将rxbus改为eventbus
493bfb94
 
罗翻 committed 7 years ago
266 267 268 269 270
#eventbus
-keepclassmembers class ** {
    @org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
271 272 273 274 275

##arouter
-keep public class com.alibaba.android.arouter.routes.**{*;}
-keep class * implements com.alibaba.android.arouter.facade.template.ISyringe{*;}

罗翻's avatar
增加ordercenter和loctionlib
ae60479a
 
罗翻 committed 7 years ago
276 277 278 279 280
# 如果使用了 byType 的方式获取 Service,需添加下面规则,保护接口
-keep interface * implements com.alibaba.android.arouter.facade.template.IProvider

# 如果使用了 单类注入,即不定义接口实现 IProvider,需添加下面规则,保护实现
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider
罗翻's avatar
混淆配置统一处理
e837d84c
 
罗翻 committed 7 years ago
281
-dontwarn com.alibaba.**
罗翻's avatar
增加PDF
6d863aa3
 
罗翻 committed 7 years ago
282

罗翻's avatar
增加接单语音播报,studio升级为3.1.0
30014362
 
罗翻 committed 6 years ago
283 284 285 286
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-ignorewarnings
罗翻's avatar
增加PDF
6d863aa3
 
罗翻 committed 7 years ago
287

罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
288 289 290 291 292
#---------------------------------3.与js互相调用的类------------------------

#---------------------------------4.反射相关的类和方法-----------------------


mReturn's avatar
fix
17ae5561
 
mReturn committed 5 years ago
293 294 295 296 297 298
#---------------------------------Jiaozivideo-----------------------
-keep public class cn.jzvd.JZMediaSystem {*; }
-keep public class cn.jzvd.demo.CustomMedia.CustomMedia {*; }
-keep public class cn.jzvd.demo.CustomMedia.JZMediaIjk {*; }
-keep public class cn.jzvd.demo.CustomMedia.JZMediaSystemAssertFolder {*; }

mReturn's avatar
收发货&大视频处理&视频录制
0f54a19c
 
mReturn committed 5 years ago
299 300 301

#ijkplayer
-keep class tv.danmaku.ijk.media.** {*;}
mReturn's avatar
fix
17ae5561
 
mReturn committed 5 years ago
302 303


罗翻's avatar
android 混淆
d1d8b925
 
罗翻 committed 7 years ago
304 305


罗翻's avatar
抽离出baselibrary,新建provider作为中间件
00356c56
 
罗翻 committed 7 years ago
306 307