proguard-rules.pro 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. -keep public class * extends android.app.Activity
  20. -keep public class * extends android.app.Application
  21. -keep public class * extends android.app.Service
  22. -keep public class * extends android.content.BroadcastReceiver
  23. -keep public class * extends android.content.ContentProvider
  24. -keep public class * extends android.app.backup.BackupAgentHelper
  25. -keep public class * extends android.preference.Preference
  26. -keep public class com.android.vending.licensing.ILicensingService
  27. -keep public class * extends android.view.View{
  28. *** get*();
  29. void set*(***);
  30. public <init>(android.content.Context);
  31. public <init>(android.content.Context,android.util.AttributeSet);
  32. public <init>(android.content.Context,android.util.AttributeSet,int);
  33. }
  34. #xpopu
  35. -dontwarn com.lxj.xpopup.widget.**
  36. -keep class com.lxj.xpopup.widget.**{*;}
  37. #butterknife
  38. -keep class butterknife.** { *; }
  39. -dontwarn butterknife.internal.**
  40. -keep class **$$ViewBinder { *; }
  41. -keepclasseswithmembernames class * {
  42. @butterknife.* <fields>;
  43. }
  44. -keepclasseswithmembernames class * {
  45. @butterknife.* <methods>;
  46. }
  47. #eventbus
  48. -keepattributes *Annotation*
  49. -keepclassmembers class * {
  50. @org.greenrobot.eventbus.Subscribe <methods>;
  51. }
  52. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  53. # And if you use AsyncExecutor:
  54. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  55. <init>(java.lang.Throwable);
  56. }
  57. #okgo
  58. #okhttp
  59. -dontwarn okhttp3.**
  60. -keep class okhttp3.**{*;}
  61. #okio
  62. -dontwarn okio.**
  63. -keep class okio.**{*;}
  64. #fastjson
  65. -dontskipnonpubliclibraryclassmembers
  66. -dontskipnonpubliclibraryclasses
  67. -keep class * implements java.io.Serializable { *; }
  68. -keepattributes *Annotation
  69. -keepattributes Signature
  70. -dontwarn com.alibaba.fastjson.**
  71. -keep class com.alibaba.fastjson.* { ; }
  72. -keep class com.ling.fast.bean** { *; }
  73. #Matisse
  74. -dontwarn com.squareup.picasso.**