proguard-project.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # 保存被AndroidManifest.xml调用或者webview的类
  2. -keepclassmembers
  3. class fqcn.of.javascript.interface.for.webview
  4. {
  5. public *;
  6. }
  7. -keep public class * extends android.app.Activity
  8. -keep public class * extends android.app.Application
  9. -keep public class * extends android.app.Service
  10. -keep public class * extends android.content.BroadcastReceiver
  11. -keep public class * extends android.content.ContentProvider
  12. -keep public class * extends android.app.backup.BackupAgentHelper
  13. -keep public class * extends android.preference.Preference
  14. #第三方类库
  15. -keep
  16. class android.**
  17. {*;}
  18. -keep
  19. class com.jeremyfeinstein.slidingmenu.lib.**
  20. {*;}
  21. -keep
  22. class com.actionbarsherlock.**
  23. {*;}
  24. -keep
  25. class com.lidroid.xutils.**
  26. {*;}
  27. # 保留所有具有公有访问权限的类和其公共成员
  28. -keepclasseswithmembers
  29. class *{
  30. public *;
  31. }
  32. # 删除Log代码
  33. -assumenosideeffects
  34. class android.util.Log
  35. {
  36. public static ***
  37. e(...);
  38. public static ***
  39. w(...);
  40. public static ***
  41. wtf(...);
  42. public static ***
  43. d(...);
  44. public static ***
  45. v(...);
  46. }