mirror of
https://e.coding.net/circlecloud/MiaoBoard.git
synced 2024-12-22 06:49:02 +00:00
feat: 添加混淆系统
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
90862b0b3d
commit
1d88cd4233
65
class.dict
Normal file
65
class.dict
Normal file
@ -0,0 +1,65 @@
|
||||
IIIIiI
|
||||
IIiIiI
|
||||
iiIIiI
|
||||
Iiiiii
|
||||
IIIIIi
|
||||
IiIiII
|
||||
iiIIIi
|
||||
iIIIii
|
||||
iIiiIi
|
||||
iiiIiI
|
||||
IiiIii
|
||||
iIiiiI
|
||||
iiiIIi
|
||||
IIiIII
|
||||
IIIIii
|
||||
IIIiii
|
||||
iiiiII
|
||||
iIIiII
|
||||
IIiiII
|
||||
iiIIii
|
||||
IiiIII
|
||||
iIiIII
|
||||
IiIIii
|
||||
iiIiiI
|
||||
iIiiII
|
||||
IiiIiI
|
||||
iiiIII
|
||||
IIiIIi
|
||||
iIiIiI
|
||||
iiIiii
|
||||
IiIiii
|
||||
IiIIiI
|
||||
IiiIIi
|
||||
IiIIIi
|
||||
IIiiIi
|
||||
iIIiIi
|
||||
iIIIII
|
||||
IIIiIi
|
||||
iiiiiI
|
||||
iIiIIi
|
||||
IIIiiI
|
||||
iiiiIi
|
||||
iiIiIi
|
||||
IIiiiI
|
||||
IiiiII
|
||||
iIIiii
|
||||
iIiIii
|
||||
IiIiiI
|
||||
IIiIii
|
||||
IiIIII
|
||||
IIIIII
|
||||
iIIIIi
|
||||
IIIiII
|
||||
iiiiii
|
||||
IiiiiI
|
||||
IiIiIi
|
||||
iiiIii
|
||||
iIIIiI
|
||||
iIIiiI
|
||||
iIiiii
|
||||
iiIiII
|
||||
IIiiii
|
||||
iiIIII
|
||||
IiiiIi
|
||||
llllll
|
24
obf.dict
Normal file
24
obf.dict
Normal file
@ -0,0 +1,24 @@
|
||||
if
|
||||
try
|
||||
for
|
||||
int
|
||||
new
|
||||
true
|
||||
null
|
||||
this
|
||||
else
|
||||
void
|
||||
enum
|
||||
final
|
||||
false
|
||||
class
|
||||
catch
|
||||
import
|
||||
double
|
||||
public
|
||||
static
|
||||
boolean
|
||||
package
|
||||
finally
|
||||
private
|
||||
protected
|
23
pom.xml
23
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>pw.yumc</groupId>
|
||||
<artifactId>MiaoBoard</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.4</version>
|
||||
<name>MiaoBoard</name>
|
||||
<build>
|
||||
<finalName>${project.name}</finalName>
|
||||
@ -55,6 +55,27 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.wvengen</groupId>
|
||||
<artifactId>proguard-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>proguard</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<options>
|
||||
<option>-repackageclasses nul.${project.groupId}.for.${project.artifactId}.class</option>
|
||||
<option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}</option>
|
||||
</options>
|
||||
<libs>
|
||||
<lib>${java.home}/lib/rt.jar</lib>
|
||||
</libs>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<ciManagement>
|
||||
|
54
proguard.conf
Normal file
54
proguard.conf
Normal file
@ -0,0 +1,54 @@
|
||||
# -----不优化-----
|
||||
-dontoptimize
|
||||
|
||||
# -----忽略所有警告-----
|
||||
-dontwarn
|
||||
-dontnote
|
||||
|
||||
# -----混淆时应用侵入式重载-----
|
||||
-overloadaggressively
|
||||
|
||||
# -----启用混淆字典-----
|
||||
-obfuscationdictionary obf.dict
|
||||
-classobfuscationdictionary class.dict
|
||||
-packageobfuscationdictionary class.dict
|
||||
|
||||
# -----保留所有属性
|
||||
-keepattributes **
|
||||
|
||||
# -----公共数据不混淆-----
|
||||
-keep class cn.citycraft.CommonData.** {*;}
|
||||
|
||||
# -----保护所有实体中的字段名称-----
|
||||
-keepclassmembers class * implements java.io.Serializable { <fields>; }
|
||||
|
||||
# -----保护监听方法不被清理-----
|
||||
-keepclassmembers class * implements org.bukkit.event.Listener {
|
||||
@org.bukkit.event.EventHandler <methods>;
|
||||
}
|
||||
# -----保护配置注入不被清理-----
|
||||
-keepclassmembers class * extends **.config.InjectConfigurationSection {
|
||||
<fields>;
|
||||
}
|
||||
-keepclassmembers class * extends **.config.InjectConfig {
|
||||
<fields>;
|
||||
}
|
||||
# -----保护注解命令方法不被清理-----
|
||||
-keepclassmembers class **.commands.annotation.** { <methods>; }
|
||||
-keepclassmembers class * implements **.commands.CommandExecutor { <methods>; }
|
||||
|
||||
-keepclassmembers class **.commands.HandlerCommand { <methods>; }
|
||||
-keepclassmembers class * implements **.commands.HandlerCommands {
|
||||
@**.commands.HandlerCommand <methods>;
|
||||
@**.commands.HandlerTabComplete <methods>;
|
||||
}
|
||||
# -----保护注解NotProguard标记-----
|
||||
-keep class **.NotProguard
|
||||
-keep @**.NotProguard class * {*;}
|
||||
-keepclassmembers class * {
|
||||
@**.NotProguard <fields>;
|
||||
@**.NotProguard <methods>;
|
||||
}
|
||||
|
||||
# -----保护命令解析正常-----
|
||||
-keepnames class * extends **.commands.BaseCommand
|
Loading…
Reference in New Issue
Block a user