forked from panpf/sketch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proguard-rules.pro
61 lines (52 loc) · 2.27 KB
/
proguard-rules.pro
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/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:
# 不混淆SearchView,因为发现混淆的时候会把SearchView的构造函数给弄丢了,导致无法实例化
-keep class android.support.v7.widget.SearchView { *; }
# 不混淆所有的枚举类,防止使用枚举类的名字来匹配时出问题
-keep enum * {*;}
##---------------Begin: proguard configuration for Gson ----------
-keepattributes Signature
-keep class sun.misc.Unsafe { *; }
-keep class com.google.gson.** { *;}
-dontwarn com.google.gson.**
-keepattributes Exceptions, Signature, InnerClasses
##---------------End: proguard configuration for Gson ----------
-keep public class com.tencent.bugly.**{*;}
##---------------EventBus
-keepattributes *Annotation*
-keepclassmembers class ** {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
-dontwarn butterknife.*
# Only required if you use AsyncExecutor
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
<init>(java.lang.Throwable);
}
##---------------Begain: Retrofit
-dontwarn okio.**
-dontwarn javax.annotation.**
-dontwarn java.lang.invoke.**
-dontwarn org.codehaus.mojo.**
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-dontnote retrofit2.Platform
# Platform used when running on Java 8 VMs. Will not be used at runtime.
-dontwarn retrofit2.Platform$Java8
# Retain generic type information for use by reflection by converters and adapters.
-keepattributes Signature
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
##---------------End: Retrofit
##---------------Begain: FFmpegMediaMetadataRetriever
-keep public class wseemann.media.**{*;}
##---------------End: FFmpegMediaMetadataRetriever