32 lines
1.0 KiB
XML
32 lines
1.0 KiB
XML
|
|
<config>
|
||
|
|
<input>
|
||
|
|
<jar in="${project.build.finalName}.jar" out="${project.build.finalName}.jar"/>
|
||
|
|
</input>
|
||
|
|
|
||
|
|
<keep-names>
|
||
|
|
<class access="protected+">
|
||
|
|
<field access="protected+"/>
|
||
|
|
<method access="protected+"/>
|
||
|
|
</class>
|
||
|
|
</keep-names>
|
||
|
|
|
||
|
|
|
||
|
|
<!-- 混淆设置 -->
|
||
|
|
<!--随机类名保持小写-->
|
||
|
|
<property name="classes-naming" value="abc"/>
|
||
|
|
<!-- 接口形参名保持不变 -->
|
||
|
|
<property name="local-variables-naming" value="keep-parameters"/>
|
||
|
|
<!-- 字符串加密 -->
|
||
|
|
<property name="string-encryption" value="maximum"/>
|
||
|
|
<property name="string-encryption-type" value="strong"/>
|
||
|
|
<property name="string-encryption-version" value="v4"/>
|
||
|
|
<!-- 行数混淆 -->
|
||
|
|
<property name="line-numbers" value="obfuscate"/>
|
||
|
|
<!-- 成员重新排序 -->
|
||
|
|
<property name="member-reorder" value="enable"/>
|
||
|
|
<!-- 数据jar压缩等级 -->
|
||
|
|
<property name="output-jar-compression-level" value="9"/>
|
||
|
|
|
||
|
|
<property name="log-file" value="log.xml"/>
|
||
|
|
</config>
|