proguard-rules.pro 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Add project specific ProGuard rules here.
  2. # By default, the flags in this file are appended to flags specified
  3. # in D:\as_android_sdk/tools/proguard/proguard-android.txt
  4. # You can edit the include path and order by changing the proguardFiles
  5. # directive in build.gradle.
  6. #
  7. # For more details, see
  8. # http://developer.android.com/guide/developing/tools/proguard.html
  9. # Add any project specific keep options here:
  10. # If your project uses WebView with JS, uncomment the following
  11. # and specify the fully qualified class name to the JavaScript interface
  12. # class:
  13. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  14. # public *;
  15. #}
  16. #Gson
  17. -keep class com.test.model.response.** {*;}
  18. -keepattributes Signature
  19. -keep class com.google.gson {*;}
  20. -keep class sun.misc.Unsafe {*;}
  21. -keep class * implements com.zcolin.frame.http.ZReply {*;}
  22. # OkHttp3
  23. -dontwarn com.squareup.okhttp3.**
  24. -keep class com.squareup.okhttp3.** { *;}
  25. -dontwarn okio.**
  26. # Glide
  27. -keep public class * implements com.bumptech.glide.module.GlideModule
  28. -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  29. **[] $VALUES;
  30. public *;
  31. }
  32. #greenDao混淆
  33. -keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
  34. public static java.lang.String TABLENAME;
  35. }
  36. -keep class **$Properties
  37. # If you do not use SQLCipher:
  38. -dontwarn org.greenrobot.greendao.database.**
  39. # If you do not use Rx:
  40. -dontwarn rx.**
  41. #Serializable
  42. -keepclassmembers class * implements java.io.Serializable {
  43. static final long serialVersionUID;
  44. private static final java.io.ObjectStreamField[] serialPersistentFields;
  45. private void writeObject(java.io.ObjectOutputStream);
  46. private void readObject(java.io.ObjectInputStream);
  47. java.lang.Object writeReplace();
  48. java.lang.Object readResolve();
  49. }
  50. -keep public class * implements java.io.Serializable {*;}