码迷,mamicode.com
首页 > 其他好文 > 详细

proguard的简单配置说明

时间:2018-06-24 23:55:58      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:关联   路径   efi   members   lan   attr   soc   configure   r文件   

#需要转换的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[]);
}

proguard的简单配置说明

标签:关联   路径   efi   members   lan   attr   soc   configure   r文件   

原文地址:https://www.cnblogs.com/yoyotl/p/9186655.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!