proguard-rules.pro 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Add project specific ProGuard rules here.
  2. # You can control the set of applied configuration files using the
  3. # proguardFiles setting in build.gradle.
  4. #
  5. # For more details, see
  6. # http://developer.android.com/guide/developing/tools/proguard.html
  7. # If your project uses WebView with JS, uncomment the following
  8. # and specify the fully qualified class name to the JavaScript interface
  9. # class:
  10. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  11. # public *;
  12. #}
  13. # Uncomment this to preserve the line number information for
  14. # debugging stack traces.
  15. #-keepattributes SourceFile,LineNumberTable
  16. # If you keep the line number information, uncomment this to
  17. # hide the original source file name.
  18. #-renamesourcefileattribute SourceFile
  19. # 如果使用了Gson之类的工具要使被它解析的JavaBean类即实体类不被混淆。
  20. -keep class net.zoneland.x.bpm.mobile.v1.zoneXBPM.model.** { *; }
  21. # 保持哪些类不被混淆
  22. -keep public class * extends android.app.Fragment
  23. -keep public class * extends android.app.Activity
  24. -keep public class * extends android.app.Application
  25. -keep public class * extends android.app.Service
  26. -keep public class * extends android.content.BroadcastReceiver
  27. -keep public class * extends android.content.ContentProvider
  28. -keep public class * extends android.app.backup.BackupAgentHelper
  29. -keep public class * extends android.preference.Preference
  30. -keep public class com.android.vending.licensing.ILicensingService
  31. #如果有引用v4包可以添加下面这行
  32. -keep public class * extends android.support.v4.app.Fragment