proguard-project.txt 1.1 KB

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