forked from gurecn/yuyansdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proguard.cfg
81 lines (65 loc) · 2.06 KB
/
proguard.cfg
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
-optimizationpasses 5
#When not preverifing in a case-insensitive filing system, such as Windows. Because this tool unpacks your processed jars, you should then use:
-dontusemixedcaseclassnames
-ignorewarnings
#Specifies to write out some more information during processing. If the program terminates with an exception, this option will print out the entire stack trace, instead of just the exception message.
-verbose
-dontwarn org.apache.**
-dontwarn android.support.v4.**
-keep class assets.** {*;}
-keep class com.android.** {*;}
-keep class com.google.android.** {*;}
-keep class dalvik.** {*;}
-keep class java.** {*;}
-keep class javax.** {*;}
-keep class junit.** {*;}
-keep class org.** {*;}
#To repackage classes on a single package
-repackageclasses
#Uncomment if using annotations to keep them.
-keepattributes *Annotation*
#Maintain java native methods
-keepclasseswithmembernames class * {
native <methods>;
}
#Keep the R
-keepclassmembers class **.R$* {
public static <fields>;
}
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
#反射
-keep class *.R$ {*;}
-keepattributes InnerClasses
-ignorewarnings
-keepattributes Exceptions
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
# Kotlin相关, Rime采用注解方式实现
-keep class kotlin.** { *; }
-keep interface kotlin.** { *; }
-keep class kotlinx.** { *; }
-keep interface kotlinx.** { *; }
-keepclasseswithmembers class * {
@kotlin.Metadata *;
}
-keep class org.jetbrains.** { *; }
# 汉王手写
-keep class com.hanvon.inputmethod.library.Native { *; }