-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
456 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
##ARecyclerView:v1.1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#com.wang.avi:library:1.0.2 | ||
|
||
-keep class com.wang.avi.** { *; } | ||
-keep class com.wang.avi.indicators.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#butterknife 8.4.0 | ||
-keep class butterknife.** { *; } | ||
-dontwarn butterknife.internal.** | ||
-keep class **$$ViewBinder { *; } | ||
|
||
-keepclasseswithmembernames class * { | ||
@butterknife.* <fields>; | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
@butterknife.* <methods>; | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#constraint-layout:1.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
-dontwarn android.support.design.** | ||
-keep class android.support.design.** { *; } | ||
-keep interface android.support.design.** { *; } | ||
|
||
|
||
-dontwarn android.support.design.internal.** | ||
-keep class android.support.design.internal.** { *; } | ||
-keep interface android.support.design.internal.** { *; } | ||
|
||
|
||
-dontwarn android.support.design.widget.** | ||
-keep class android.support.design.widget.** { *; } | ||
-keep interface android.support.design.widget.** { *; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## EventBus3 specific rules ## | ||
# http://greenrobot.org/eventbus/documentation/proguard/ | ||
|
||
-keepattributes *Annotation* | ||
-keepclassmembers class ** { | ||
@org.greenrobot.eventbus.Subscribe <methods>; | ||
} | ||
-keep enum org.greenrobot.eventbus.ThreadMode { *; } | ||
|
||
# Only required if you use AsyncExecutor | ||
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { | ||
<init>(java.lang.Throwable); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#eventbus:3.0.0 | ||
## EventBus3 specific rules ## | ||
# http://greenrobot.org/eventbus/documentation/proguard/ | ||
|
||
-keepattributes *Annotation* | ||
-keepclassmembers class ** { | ||
@org.greenrobot.eventbus.Subscribe <methods>; | ||
} | ||
-keep enum org.greenrobot.eventbus.ThreadMode { *; } | ||
|
||
# Only required if you use AsyncExecutor | ||
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { | ||
<init>(java.lang.Throwable); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Glide3.7 specific rules # | ||
# https://github.com/bumptech/glide/wiki/Configuration#keeping-a-glidemodule | ||
|
||
|
||
-keep public class * implements com.bumptech.glide.module.GlideModule | ||
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** { | ||
**[] $VALUES; | ||
public *; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
##com.google.code.gson:gson:2.6.2 | ||
|
||
## GSON 2.6.2 specific rules ## | ||
|
||
# Gson uses generic type information stored in a class file when working with fields. Proguard | ||
# removes such information by default, so configure it to keep all of it. | ||
-keepattributes Signature | ||
|
||
# For using GSON @Expose annotation | ||
-keepattributes *Annotation* | ||
|
||
-keepattributes EnclosingMethod | ||
|
||
# Gson specific classes | ||
-keep class sun.misc.Unsafe { *; } | ||
-keep class com.google.gson.stream.** { *; } | ||
|
||
|
||
# Application classes that will be serialized/deserialized over Gson | ||
#-keep class com.google.gson.examples.android.model.** { *; } | ||
#这是google官方的proguard的文档,请注意倒数第二行,class 后方到**签名的 | ||
#这一段包名应该是你所有的java bean 定义的目录(所以自己在写代码时,应该把java bean 单独放在一个包中) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
## Proguard normal ## | ||
|
||
# ============================== 基本不用动区域 ============================== | ||
|
||
# ------------------------------- 基本指令区 ------------------------------- | ||
|
||
# 代码混淆的压缩比例(0-7) , 默认为5 , 一般不需要改 | ||
-optimizationpasses 5 | ||
|
||
# 混淆后类名都小写 (windows最后加上 , 因为windows大小写敏感) | ||
-dontusemixedcaseclassnames | ||
|
||
# 指定不去忽略非公共的库的类(即混淆第三方, 第三方库可能自己混淆了 , 可在后面配置某些第三方库不混淆) | ||
# 默认跳过,有些情况下编写的代码与类库中的类在同一个包下,并且持有包中内容的引用,此时就需要加入此条声明 | ||
-dontskipnonpubliclibraryclasses | ||
|
||
# 指定不去忽略非公共的库的类的成员 | ||
-dontskipnonpubliclibraryclassmembers | ||
|
||
# 不做预检验,preverify是proguard的四个步骤之一 | ||
# Android不需要preverify,去掉这一步可以加快混淆速度 | ||
-dontpreverify | ||
|
||
# 有了verbose这句话,混淆后就会生成映射文件 | ||
# 包含有类名->混淆后类名的映射关系 | ||
# 然后使用printmapping指定映射文件的名称 | ||
-verbose | ||
-printmapping proguardMapping.txt | ||
|
||
# 指定混淆时采用的算法,后面的参数是一个过滤器 | ||
# 这个过滤器是谷歌推荐的算法,一般不改变 | ||
-optimizations !code/simplification/cast,!field/*,!class/merging/* | ||
|
||
# 保护代码中的Annotation不被混淆 | ||
# 这在JSON实体映射时非常重要,比如fastJson | ||
-keepattributes *Annotation*,InnerClasses | ||
|
||
-keep public class com.google.vending.licensing.ILicensingService | ||
-keep public class com.android.vending.licensing.ILicensingService | ||
|
||
# 避免混淆泛型 | ||
# 这在JSON实体映射时非常重要,比如fastJson | ||
-keepattributes Signature | ||
|
||
#抛出异常时保留源文件和代码行号 | ||
-keepattributes SourceFile,LineNumberTable | ||
# ------------------------------- 基本指令区 ------------------------------- | ||
|
||
# ------------------------------- 默认保留区 ------------------------------- | ||
|
||
# 保留四大组件 | ||
-keep public class * extends android.app.Activity | ||
# 保留就保证layout中定义的onClick方法不影响 | ||
# We want to keep methods in Activity that could be used in the XML attribute onClick | ||
-keepclassmembers class * extends android.app.Activity{ | ||
public void *(android.view.View); | ||
} | ||
-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.Application | ||
|
||
-keep public class * extends android.app.backup.BackupAgentHelper | ||
-keep public class * extends android.preference.Preference | ||
|
||
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native | ||
# 保留类名和native成员方法 | ||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
# 枚举类不能被混淆 | ||
# # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations | ||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
# 保留自定义控件(继承自View)的setter、getter和构造方法 | ||
# keep setters in Views so that animations can still work. | ||
# see http://proguard.sourceforge.net/manual/examples.html#beans | ||
-keep public class * extends android.view.View{ | ||
public <init>(android.content.Context); | ||
public <init>(android.content.Context, android.util.AttributeSet); | ||
public <init>(android.content.Context, android.util.AttributeSet, int); | ||
*** get*(); | ||
void set*(***); | ||
} | ||
|
||
# 保留Parcelable序列化的类不能被混淆 | ||
#-keep class * implements android.os.Parcelable { | ||
# public static final android.os.Parcelable$Creator *; | ||
#} | ||
# 官方 | ||
-keepclassmembers class * implements android.os.Parcelable { | ||
public static final android.os.Parcelable$Creator CREATOR; | ||
} | ||
|
||
# 所有实现了 Serializable 接口的类及其成员都不进行混淆 | ||
-keepnames class * implements java.io.Serializable | ||
-keepclassmembers class * implements java.io.Serializable { | ||
static final long serialVersionUID; | ||
private static final java.io.ObjectStreamField[] serialPersistentFields; | ||
!static !transient <fields>; | ||
private void writeObject(java.io.ObjectOutputStream); | ||
private void readObject(java.io.ObjectInputStream); | ||
java.lang.Object writeReplace(); | ||
java.lang.Object readResolve(); | ||
} | ||
|
||
# 对R文件下的所有类及其方法 , 都不能被混淆 | ||
#-keep class **.R$* { | ||
# *; | ||
#} | ||
# 官方 | ||
-keepclassmembers class **.R$* { | ||
public static <fields>; | ||
} | ||
|
||
# The support library contains references to newer platform versions. | ||
# Don't warn about those in case this app is linking against an older | ||
# platform version. We know about them, and they are safe. | ||
-dontwarn android.support.** | ||
|
||
# Understand the @Keep support annotation. | ||
-keep class android.support.annotation.Keep | ||
|
||
-keep @android.support.annotation.Keep class * {*;} | ||
|
||
-keepclasseswithmembers class * { | ||
@android.support.annotation.Keep <methods>; | ||
} | ||
|
||
-keepclasseswithmembers class * { | ||
@android.support.annotation.Keep <fields>; | ||
} | ||
|
||
-keepclasseswithmembers class * { | ||
@android.support.annotation.Keep <init>(...); | ||
} | ||
|
||
# ------------------------------- 默认保留区 end------------------------------- | ||
|
||
#------------------------------- 以上内容基本是SDK目录下的proguard-android-optimize.txt内容 ------------------------------- # | ||
|
||
# ------------------------------- webview相关 ------------------------------- | ||
|
||
-dontwarn android.webkit** | ||
|
||
# WebView(可选) | ||
-keepclassmembers class * extends android.webkit.WebView { | ||
public *; | ||
} | ||
|
||
# WebView的复杂操作 | ||
-keepclassmembers class * extends android.webkit.WebViewClient { | ||
public void *(android.webkit.WebView,java.lang.String,android.graphics.Bitmap); | ||
public boolean *(android.webkit.WebView,java.lang.String); | ||
} | ||
-keepclassmembers class * extends android.webkit.WebChromeClient { | ||
public void *(android.webkit.WebView,java.lang.String); | ||
} | ||
|
||
# 与JS交互 | ||
-keepattributes SetJavaScriptEnabled | ||
-keepattributes JavascriptInterface | ||
|
||
# 保留与JS交互接口 , API17+ | ||
-keepclassmembers class * { | ||
@android.webkit.JavascriptInterface <methods>; | ||
} | ||
|
||
# ------------------------------- webview相关 end ------------------------------- | ||
|
||
-dontwarn org.apache.** | ||
-dontwarn org.codehaus.** | ||
-dontwarn java.nio.** | ||
-dontwarn java.lang.invoke.** | ||
-dontwarn rx.** | ||
-dontwarn okhttp3.** | ||
-dontwarn okio.** | ||
|
||
# ============================== 基本不动区域 end ============================== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#constraint-layout:1.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#com.squareup.okhttp3:okhttp V3.4.2 | ||
|
||
-keepattributes Signature | ||
-keepattributes *Annotation* | ||
-keep class okhttp3.** { *; } | ||
-keep interface okhttp3.** { *; } | ||
-dontwarn okhttp3.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
##picasso 2.5.2 | ||
## Square Picasso specific rules ## | ||
## https://square.github.io/picasso/ ## | ||
|
||
-dontwarn com.squareup.okhttp.** |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#retrofit2.adapter.rxjava | ||
|
||
-keep class retrofit2.adapter.rxjava.** { *; } | ||
-keep interface retrofit2.adapter.rxjava.** { *; } | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#retrofit-converters-gson | ||
-keep class retrofit2.converter.gson.** { *; } | ||
-keep interface retrofit2.converter.gson.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Retrofit 2.X | ||
## https://square.github.io/retrofit/ ## | ||
|
||
-dontwarn retrofit2.** | ||
-keep class retrofit2.** { *; } | ||
-keepattributes Signature | ||
-keepattributes Exceptions | ||
|
||
# Platform used when running on Java 8 VMs. Will not be used at runtime. | ||
-dontwarn retrofit2.Platform$Java8 | ||
|
||
-keepclasseswithmembers class * { | ||
@retrofit2.http.* <methods>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#io.reactivex:rxandroid:1.2.1 | ||
|
||
-keep class rx.android.** { *; } | ||
-keep interface rx.android.** { *; } | ||
|
||
-keep class rx.android.plugins.** { *; } | ||
-keep interface rx.android.plugins.** { *; } | ||
|
||
-keep class rx.android.schedulers.** { *; } | ||
-keep interface rx.android.schedulers.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#io.reactivex:rxjava:1.1.6 | ||
|
||
-dontwarn sun.misc.** | ||
|
||
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { | ||
long producerIndex; | ||
long consumerIndex; | ||
} | ||
|
||
-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; | ||
} | ||
|
||
-dontnote rx.internal.util.PlatformDependent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#com.trello:rxlifecycle | ||
|
||
|
||
-keep class com.trello.rxlifecycle.android.** { *; } | ||
-keep interface com.trello.rxlifecycle.android.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-keep class com.trello.rxlifecycle.components.** { *; } | ||
-keep interface com.trello.rxlifecycle.components.** { *; } | ||
|
||
|
||
-keep class com.trello.rxlifecycle.components.support.** { *; } | ||
-keep interface com.trello.rxlifecycle.components.support.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#com.trello:rxlifecycle | ||
|
||
|
||
-keep class com.trello.rxlifecycle.** { *; } | ||
-keep interface com.trello.rxlifecycle.** { *; } | ||
|
||
|
||
-keep class com.trello.rxlifecycle.internal.** { *; } | ||
-keep interface com.trello.rxlifecycle.internal.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#rxpermissions com.tbruyelle.rxpermissions:rxpermissions:0.9.1 | ||
|
||
-keep class com.tbruyelle.rxpermissions.** { *; } | ||
-keep interface com.tbruyelle.rxpermissions.** { *; } |
Oops, something went wrong.