Repository navigation
Expand file tree
/
Copy pathproguard.conf
More file actions
116 lines (103 loc) · 4.05 KB
/
Copy pathproguard.conf
File metadata and controls
116 lines (103 loc) · 4.05 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# 指定Java的版本,高版本不需要指定
# -target 17
# 指定不打印有关配置中潜在错误或遗漏的注释
-dontnote
# proguard会对代码进行优化压缩,他会删除从未使用的类或者类成员变量等
-dontshrink
# 是否关闭字节码级别的优化,如果不开启则设置如下配置
-dontoptimize
# 混淆时不生成大小写混合的类名,默认是可以大小写混合
-dontusemixedcaseclassnames
# 对于类成员的命名的混淆采取唯一策略
-useuniqueclassmembernames
# Rename FXML files together with related views
-adaptresourcefilenames **.fxml,**.png,**.css,**.properties,**.json,**.js,**.xdb,**.txt,**.csv,**.dat
-adaptresourcefilecontents **.fxml
# 混淆类名之后,对使用Class.forName('className')之类的地方进行相应替代
-adaptclassstrings
# Save meta-data for stack traces
-printmapping out.map
-renamesourcefileattribute SourceFile
# 对异常、注解信息予以保留
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
# 此选项将保存接口中的所有原始名称(不混淆)-->
-keepnames interface ** { *; }
# 此选项将保存所有软件包中的所有原始接口文件(不进行混淆)
#-keep interface * extends * { *; }
# 保留参数名,因为控制器,或者Mybatis等接口的参数如果混淆会导致无法接受参数,xml文件找不到参数
-keepparameternames
# 保留枚举成员及方法
-keepclassmembers enum * { *; }
# 保留用@FXML、@Inject和@PostConstruct属性标记的字段名称
-keepclassmembers class * {
@javafx.fxml.FXML *;
@javax.inject.Inject *;
@javax.annotation.PostConstruct *;
}
-keepclasseswithmembernames,includedescriptorclasses class * {
native <methods>;
}
# 忽略warn消息 打包运行异常时不要忽略,找问题
# -ignorewarnings
# 指定不打印有关配置中潜在错误或遗漏的注释,例如类名中的拼写错误或缺少可能有用的选项
-dontnote com.potato.potatotool.**
# 打印配置信息
-printconfiguration
-keep public class com.potato.potatotool.ToStart {*;}
-keep public class com.potato.potatotool.classObj.KbInfo {*;}
-keep class javafx.** {*;}
-dontwarn javafx.**
-keep class org.** {*;}
-dontwarn org.**
-keep class net.** {*;}
-dontwarn net.**
-keep class com.google.** {*;}
-dontwarn com.google.**
-keep class com.ibm.** {*;}
-dontwarn com.ibm.**
-keep class com.leewyatt.** {*;}
-dontwarn com.leewyatt.**
-keep class com.oracle.** {*;}
-dontwarn com.oracle.**
-keep class com.strobel.** {*;}
-dontwarn com.strobel.**
-keep class com.sun.** {*;}
-dontwarn com.sun.**
-keep class com.opencsv.** {*;}
-dontwarn com.opencsv.**
-keep class com.drew.** {*;}
-dontwarn com.drew.**
-keep class com.adobe.** {*;}
-dontwarn com.adobe.**
-keep class com.dlsc.** {*;}
-dontwarn com.dlsc.**
-keep class com.github.** {*;}
-dontwarn com.github.**
-keep class reactor.** {*;}
-dontwarn reactor.**
-keep class com.potato.potatotool.content.redTeam.secureprotect.** {*;}
-dontwarn com.potato.potatotool.content.redTeam.secureprotect.**
-keep class javax.** {*;}
-dontwarn javax.**
-keep class com.microsoft.** {*;}
-dontwarn com.microsoft.**
-keep class com.twelvemonkeys.** {*;}
-dontwarn com.twelvemonkeys.**
-keep class com.fasterxml.** {*;}
-dontwarn com.fasterxml.**
-dontwarn jakarta.json.**
-dontwarn jakarta.json.bind.**
-dontwarn android.**
-dontwarn com.esotericsoftware.kryo.serializers.**
-dontwarn com.jayway.jsonpath.spi.json.**
-keep class com.potato.potatotool.content.redTeam.memshell.** {*;}
-dontwarn com.potato.potatotool.content.redTeam.memshell.**
-keep class com.potato.potatotool.controller.** { *; }
-keep class com.potato.potatotool.utils.ui.SmoothScrollPane { *; }
-keep class com.potato.potatotool.utils.ui.SmoothTextArea { *; }
-keep class com.potato.potatotool.utils.ui.SmoothListView { *; }
-keep class com.potato.potatotool.utils.ui.SmoothTableView { *; }
-keep class com.potato.potatotool.controller.redTeam.PanePortScan { *; }
-keep class com.potato.potatotool.content.redTeam.portScanner.** { *; }
# -dontwarn com.potato.**
# -dontpreverify