proguard的简单配置说明
#需要转换的jar文件路径
-injars 'D:\fs-np.jar'
#转换后的jar文件名称
-outjars 'D:\fs-np-sec.jar'
#关联的第三方jar
-libraryjars 'C:\Program Files\Java\jre1.8.0_144\lib\rt.jar'
-libraryjars 'D:\fs-np_lib\spring-aop-4.3.17.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-beans-4.3.17.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-autoconfigure-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-starter-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-starter-logging-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-starter-test-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-starter-tomcat-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-starter-web-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-test-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-boot-test-autoconfigure-1.5.13.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-context-4.3.17.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-core-4.3.17.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-expression-4.3.17.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-test-4.3.17.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-web-4.3.17.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\spring-webmvc-4.3.17.RELEASE.jar'
-libraryjars 'D:\fs-np_lib\sqlite-jdbc-3.21.0.jar'
-libraryjars 'D:\fs-np_lib\tomcat-annotations-api-8.5.31.jar'
-libraryjars 'D:\fs-np_lib\tomcat-embed-core-8.5.31.jar'
-libraryjars 'D:\fs-np_lib\tomcat-embed-el-8.5.31.jar'
-libraryjars 'D:\fs-np_lib\tomcat-embed-websocket-8.5.31.jar'
-libraryjars 'D:\fs-np_lib\validation-api-1.1.0.Final.jar'
#保持源文件名称和行号信息不变
-keepattributes SourceFile,LineNumberTable
#保持指定的类的public和private字段的不变
-keep public class com.sanro.sys.np.msg.CallInfo {
public private <fields>;
}
#保持指定包下面的所有类的字段和方法不变
-keep public class com.sanro.sys.np.msg.* {
<fields>;
<method>;
}
-keep public class com.sanro.sys.np.msg.CdrInfo {
public private <fields>;
}
-keep public class com.sanro.sys.np.msg.ChannelInfo {
public private <fields>;
}
#保持main函数的不变
# Keep - Applications. Keep all application classes, along with their 'main' methods.
-keepclasseswithmembers public class * {
public static void main(java.lang.String[]);
}