forked from circlecloud/MiaoChat
		
	@@ -10,12 +10,15 @@
 | 
			
		||||
 | 
			
		||||
# -----启用混淆字典-----
 | 
			
		||||
-obfuscationdictionary obf.dict
 | 
			
		||||
-classobfuscationdictionary class.dict
 | 
			
		||||
-packageobfuscationdictionary class.dict
 | 
			
		||||
-classobfuscationdictionary obf.dict
 | 
			
		||||
-packageobfuscationdictionary obf.dict
 | 
			
		||||
 | 
			
		||||
# -----保留所有属性
 | 
			
		||||
-keepattributes **
 | 
			
		||||
 | 
			
		||||
# -----替换包名
 | 
			
		||||
-repackageclasses \ʼ.ʽ.ʾ
 | 
			
		||||
 | 
			
		||||
# -----公共数据不混淆-----
 | 
			
		||||
-keep class cn.citycraft.CommonData.** {*;}
 | 
			
		||||
 | 
			
		||||
@@ -26,31 +29,26 @@
 | 
			
		||||
-keepclassmembers class * implements org.bukkit.event.Listener { 
 | 
			
		||||
	@org.bukkit.event.EventHandler <methods>; 
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# -----保护枚举方法的完整性-----
 | 
			
		||||
-keep enum ** {*;}
 | 
			
		||||
-keepclassmembers enum * { 
 | 
			
		||||
    public static **[] values(); 
 | 
			
		||||
    public static ** valueOf(java.lang.String); 
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# -----保护配置注入不被清理-----
 | 
			
		||||
-keepclassmembers class * extends **.config.InjectConfigurationSection { 
 | 
			
		||||
-keepclassmembers class * extends **.config.Inject** { 
 | 
			
		||||
	<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
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user