proguard-rules.pro 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. ##Android
  20. -keep public class * extends android.app.Fragment
  21. -keep public class * extends android.app.Activity
  22. -keep public class * extends android.app.Application
  23. -keep public class * extends android.app.Service
  24. -keep public class * extends android.content.BroadcastReceiver
  25. -keep public class * extends android.preference.Preference
  26. -keep public class * extends android.content.ContentProvider
  27. -keep public class * extends android.support.v4.**
  28. -keep public class * extends android.support.annotation.**
  29. -keep public class * extends android.support.v7.**
  30. ##Butter Knife
  31. -keep class butterknife.** { *; }
  32. -dontwarn butterknife.internal.**
  33. -keep class **$$ViewBinder { *; }
  34. -keepclasseswithmembernames class * {
  35. @butterknife.* <fields>;
  36. }
  37. -keepclasseswithmembernames class * {
  38. @butterknife.* <methods>;
  39. }
  40. ##RxJava RxAndroid
  41. -dontwarn retrofit2.**
  42. -keep class retrofit2.** { *; }
  43. -keepattributes Signature
  44. -keepattributes Exceptions
  45. ##Gson
  46. -keepattributes Signature
  47. -keepattributes *Annotation*
  48. -keep class sun.misc.Unsafe { *; }
  49. -keep class com.google.gson.stream.** { *; }
  50. -keep class com.tongyu.luck.happywork.bean.** { *; }
  51. ##Okhttp3
  52. -dontwarn com.squareup.okhttp3.**
  53. -keep class com.squareup.okhttp3.** { *;}
  54. -dontwarn okio.**
  55. ##Glide
  56. -dontwarn com.bumptech.glide.**
  57. -keep class com.bumptech.glide.**{*;}
  58. -keep public class * implements com.bumptech.glide.module.GlideModule
  59. -keep public class * extends com.bumptech.glide.AppGlideModule
  60. -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  61. **[] $VALUES;
  62. public *;
  63. }