pda/zhuike/proguard-rules.pro

295 lines
9.8 KiB
Prolog
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\Android\sdk/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 *;
}
#ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-optimizationpasses 5
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>Сд
-dontusemixedcaseclassnames
#<EFBFBD><EFBFBD>ȥ<EFBFBD><EFBFBD><EFBFBD>Էǹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD>
-dontskipnonpubliclibraryclasses
#<EFBFBD>Ż<EFBFBD> <20><><EFBFBD>Ż<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
# -dontoptimize
#ԤУ<EFBFBD><EFBFBD>
-dontpreverify
#<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>Ƿ<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD>־
-verbose
# <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD><EFBFBD>
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
#<23><><EFBFBD><EFBFBD>ע<EFBFBD><D7A2>
-keepattributes *Annotation*
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Щ<EFBFBD><EFBFBD><E0B2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keep public class * extends android.app.Fragment
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-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 com.android.vending.licensing.ILicensingService
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v4<76><34><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keep public class * extends android.support.v4.app.Fragment
#<23><><EFBFBD>Ծ<EFBFBD><D4BE><EFBFBD>
-ignorewarning
##<23><>¼<EFBFBD><C2BC><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>־<EFBFBD><D6BE><EFBFBD><EFBFBD>,gradle buildʱ<64>ڱ<EFBFBD><DAB1><EFBFBD>Ŀ<EFBFBD><C4BF>Ŀ¼<C4BF><C2BC><EFBFBD>##
#apk <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> class <20><><EFBFBD>ڲ<EFBFBD><DAB2>
-dump proguard/class_files.txt
<><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ա
-printseeds proguard/seeds.txt
#<23>г<EFBFBD><D0B3><EFBFBD> apk <20><>ɾ<EFBFBD><C9BE><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>
-printusage proguard/unused.txt
#<23><><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD>ӳ<EFBFBD><D3B3>
-printmapping proguard/mapping.txt
########<23><>¼<EFBFBD><C2BC><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>־<EFBFBD><D6BE><EFBFBD>ݣ<EFBFBD>gradle buildʱ <20>ڱ<EFBFBD><DAB1><EFBFBD>Ŀ<EFBFBD><C4BF>Ŀ¼<C4BF><C2BC><EFBFBD>-end######
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v4<76><34><EFBFBD><EFBFBD>v7<76><37>
-dontwarn android.support.**
-keep class com.google.** { *; }
-keep class android.support.v4.**
-dontwarn android.support.v4.**
-keep class android.support.v7.**
-dontwarn android.support.v7.**
####<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD>Ŀ<EFBFBD>IJ<EFBFBD><C4B2>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD>õĵ<C3B5><C4B5><EFBFBD><EFBFBD><EFBFBD>jar<61><72>library-end####
-keep class com.blankj.** { *;}
-keep class utilcode.** { *;}
-keep class com.caysn.** { *;}
#<23><><EFBFBD><EFBFBD> native <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keepclasseswithmembernames class * {
native <methods>;
}
#<23><><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><E0B2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
#<23><><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><E0B2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-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);
public void set*(...);
}
#<23><><EFBFBD><EFBFBD> Parcelable <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
#<23><><EFBFBD><EFBFBD> Serializable <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keepnames class * implements java.io.Serializable
#<23><><EFBFBD><EFBFBD> Serializable <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>enum <20><>Ҳ<EFBFBD><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
!static !transient <fields>;
!private <fields>;
!private <methods>;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
#<23><><EFBFBD><EFBFBD>ö<EFBFBD><C3B6> enum <20><EFBFBD><E0B2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers class * {
public void *ButtonClicked(android.view.View);
}
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><D4B4>
-keepclassmembers class **.R$* {
public static <fields>;
}
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>
#-keepattributes Signature
#<23>Ƴ<EFBFBD>Log<6F><67><EFBFBD>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD>־<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EBA3AC><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>logʹ<67>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>ֹlog<6F><67>ӡ<EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD>ʹ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ʵ<EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>BuildConfig.DEBUG<55>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#-assumenosideeffects class android.util.Log {
# public static *** v(...);
# public static *** i(...);
# public static *** d(...);
# public static *** w(...);
# public static *** e(...);
#}
#############################################################################################
######################## <20><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8> ##################################
#############################################################################################
####################### <20><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3>Ļ<EFBFBD><C4BB><EFBFBD>ѡ<EFBFBD><D1A1> ###################################
#gson
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD>Gson<6F><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD><D0BE>ܳɹ<DCB3><C9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȼ<EFBFBD><EFBFBD><E1B1A8>
-keepattributes Signature
# Gson specific classes
-keep class sun.misc.Unsafe { *; }
# Application classes that will be serialized/deserialized over Gson
-keep class com.google.gson.** { *; }
-keep class com.google.gson.stream.** { *; }
-keep class com.google.**{*;}
#butterknife
-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }
-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}
-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}
######<23><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>Module<6C><65><EFBFBD><EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD><EFBFBD>app<70><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
# <20><><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD>Gson֮<6E><D6AE>Ĺ<EFBFBD><C4B9><EFBFBD>Ҫʹ<D2AA><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>JavaBean<61>༴ʵ<E0BCB4><CAB5><EFBFBD><EFBFBD><E0B2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keep class com.novelbook.android.bean.** { *; }
-keep class com.novelbook.android.db.** { *; }
#####<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD>Ŀ<EFBFBD>IJ<EFBFBD><C4B2>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD>õĵ<C3B5><C4B5><EFBFBD><EFBFBD><EFBFBD>jar<61><72>library#######
#<23><><EFBFBD><EFBFBD>ڵ<EFBFBD>ǰ<EFBFBD><C7B0>application module<6C><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>library module<6C><65>ʹ<EFBFBD><CAB9><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ⣬<C4BF><E2A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ʽ<EFBFBD><CABD>ӹ<EFBFBD><D3B9><EFBFBD>
#-libraryjars xxx
#<23><><EFBFBD><EFBFBD>˷<EFBFBD><CBB7><EFBFBD><EFBFBD>п<EFBFBD><D0BF><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬһ<CDAC><D2BB>jar<61><72>α<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>һ<EFBFBD><D2BB>ֻ<EFBFBD><D6BB>Ҫ<EFBFBD><D2AA>Ӻ<EFBFBD><D3BA>Ծ<EFBFBD><D4BE><EFBFBD>ͱ<EFBFBD><CDB1><EFBFBD>ijЩclass<73><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#<23><>libaray<61><79><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD><EFBFBD>˿<EFBFBD>Դ<EFBFBD><D4B4>Ŀ,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> keep <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>module<6C><65>build.gradle<6C><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>minifyEnabled=false
# banner
-keep class com.youth.banner** { *; }
-keep interface com.youth.banner.** { *; }
-dontwarn com.youth.banner.**
#LitePal
-keep class org.litepal.** { *; }
-keep class * extends org.litepal.crud.DataSupport { *; }
#pagerslidingtabstrip
-keep class com.astuetz.** { *; }
-keep class com.blankj.** { *; }
-keep class com.sun.** { *; }
#UMENG
-keep class com.umeng.** {*;}
-keepclassmembers class * {
public <init> (org.json.JSONObject);
}
#okhttp3
-dontwarn okio.**
-keepattributes Signature
-keepattributes *Annotation*
-keep class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
-dontwarn okhttp3.**
-dontwarn com.squareup.okhttp3.**
-keep class com.squareup.okhttp3.** { *;}
-dontwarn okhttp3.logging.**
-keep class okhttp3.internal.**{*;}
# -keep class com.novelbook.android.netapi.**{*;}
# Retrofit
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {
@retrofit2.http.* <methods>;
}
# RxJava RxAndroid
-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;
}
#glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
**[] $VALUES;
public *;
}
# <20><><EFBFBD>ڴ<EFBFBD><DAB4>лص<D0BB><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>onXXEvent<6E><74>**On*Listener<EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-keepclassmembers class * {
void *(**On*Event);
void *(**On*Listener);
}
-assumenosideeffects class android.util.Log {
public static boolean isLoggable(java.lang.String,int);
public static int v(...);
public static int i(...);
public static int w(...);
public static int d(...);
public static int e(...);
}
# 嵌入广点通sdk时必须添加
-keep class com.qq.e.** {
public protected *;
}
#穿山甲广告
-keep class com.bytedance.sdk.openadsdk.** { *; }
-keep class com.androidquery.callback.** {*;}
-keep public interface com.bytedance.sdk.openadsdk.downloadnew.** {*;}
-keep class com.ss.sys.ces.* {*;}
#GOOGLE MOBAD
#-keep com.google.android.gms.ads.** { *; }