forked from ymm8505/jeesite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proguard.cfg
67 lines (54 loc) · 1.87 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
# ----------------------------------
# 通过指定数量的优化能执行
# -optimizationpasses n
# ----------------------------------
-optimizationpasses 3
# ----------------------------------
# 混淆时不会产生形形色色的类名
# -dontusemixedcaseclassnames
# ----------------------------------
-dontusemixedcaseclassnames
# ----------------------------------
# 指定不去忽略非公共的库类
# -dontskipnonpubliclibraryclasses
# ----------------------------------
#-dontskipnonpubliclibraryclasses
# ----------------------------------
# 不预校验
# -dontpreverify
# ----------------------------------
#-dontpreverify
# ----------------------------------
# 输出生成信息
# -verbose
# ----------------------------------
-verbose
#混淆时应用侵入式重载
-overloadaggressively
#优化时允许访问并修改有修饰符的类和类的成员
-allowaccessmodification
#确定统一的混淆类的成员名称来增加混淆
-useuniqueclassmembernames
-dontwarn
#这里添加你不需要混淆的类
-keep public class org.** {*;}
-keep public class sun.** {*;}
-keep public class com.thinkgem.jeesite.test.** {*;}
-keep public class com.thinkgem.jeesite.**.dao.** {*;}
-keep public class com.thinkgem.jeesite.**.entity.** {*;}
-keep public class com.thinkgem.jeesite.modules.act.utils.Variable {*;}
-keep public class com.thinkgem.jeesite.common.persistence.Page {*;}
-keep public class * extends javax.servlet.Servlet
-keepattributes **
#-keepnames class * implements java.io.Serializable
# ---------保护所有实体中的字段名称----------
-keepclassmembers class * implements java.io.Serializable {
<fields>;
}
-keepclassmembers class * implements com.thinkgem.jeesite.common.persistence.BaseEntity {
<fields>;
}
# --------- 保护类中的所有方法名 ------------
-keepclassmembers class * {
public <methods>;
}