proguard.cfg 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # ----------------------------------
  2. # 通过指定数量的优化能执行
  3. # -optimizationpasses n
  4. # ----------------------------------
  5. -optimizationpasses 3
  6. # ----------------------------------
  7. # 混淆时不会产生形形色色的类名
  8. # -dontusemixedcaseclassnames
  9. # ----------------------------------
  10. -dontusemixedcaseclassnames
  11. # ----------------------------------
  12. # 指定不去忽略非公共的库类
  13. # -dontskipnonpubliclibraryclasses
  14. # ----------------------------------
  15. #-dontskipnonpubliclibraryclasses
  16. # ----------------------------------
  17. # 不预校验
  18. # -dontpreverify
  19. # ----------------------------------
  20. #-dontpreverify
  21. # ----------------------------------
  22. # 输出生成信息
  23. # -verbose
  24. # ----------------------------------
  25. -verbose
  26. #混淆时应用侵入式重载
  27. -overloadaggressively
  28. #优化时允许访问并修改有修饰符的类和类的成员
  29. -allowaccessmodification
  30. #确定统一的混淆类的成员名称来增加混淆
  31. -useuniqueclassmembernames
  32. -dontwarn
  33. #这里添加你不需要混淆的类
  34. -keep public class org.** {*;}
  35. -keep public class sun.** {*;}
  36. -keep public class com.thinkgem.jeesite.test.** {*;}
  37. -keep public class com.thinkgem.jeesite.**.dao.** {*;}
  38. -keep public class com.thinkgem.jeesite.**.entity.** {*;}
  39. -keep public class com.thinkgem.jeesite.modules.act.utils.Variable {*;}
  40. -keep public class com.thinkgem.jeesite.common.persistence.Page {*;}
  41. -keep public class * extends javax.servlet.Servlet
  42. -keepattributes **
  43. #-keepnames class * implements java.io.Serializable
  44. # ---------保护所有实体中的字段名称----------
  45. -keepclassmembers class * implements java.io.Serializable {
  46. <fields>;
  47. }
  48. -keepclassmembers class * implements com.thinkgem.jeesite.common.persistence.BaseEntity {
  49. <fields>;
  50. }
  51. # --------- 保护类中的所有方法名 ------------
  52. -keepclassmembers class * {
  53. public <methods>;
  54. }