proguard-rules.pro 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 com.hboxs.base_library.http.response.HttpResult
  20. # Retrofit
  21. -dontnote retrofit2.Platform
  22. -dontnote retrofit2.Platform$IOS$MainThreadExecutor
  23. -dontwarn retrofit2.Platform$Java8
  24. -keepattributes Signature
  25. -keepattributes Exceptions
  26. # okhttp
  27. -dontwarn okio.**
  28. # RxJava RxAndroid
  29. -dontwarn sun.misc.**
  30. -keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
  31. long producerIndex;
  32. long consumerIndex;
  33. }
  34. -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
  35. rx.internal.util.atomic.LinkedQueueNode producerNode;
  36. }
  37. -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
  38. rx.internal.util.atomic.LinkedQueueNode consumerNode;
  39. }