proguard-rules.pro 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. -dontobfuscate
  2. -keep class eu.kanade.tachiyomi.**
  3. -keep class com.hippo.image.** { *; }
  4. -keep interface com.hippo.image.** { *; }
  5. # OkHttp
  6. -keepattributes Signature
  7. -keepattributes *Annotation*
  8. -keep class okhttp3.** { *; }
  9. -keep interface okhttp3.** { *; }
  10. -dontwarn okhttp3.**
  11. -dontwarn okio.**
  12. # Okio
  13. -keep class sun.misc.Unsafe { *; }
  14. -dontwarn java.nio.file.*
  15. -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
  16. -dontwarn okio.**
  17. # Glide specific rules #
  18. # https://github.com/bumptech/glide
  19. -keep public class * implements com.bumptech.glide.module.GlideModule
  20. -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  21. **[] $VALUES;
  22. public *;
  23. }
  24. # RxJava 1.1.0
  25. -dontwarn sun.misc.**
  26. -keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
  27. long producerIndex;
  28. long consumerIndex;
  29. }
  30. -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
  31. rx.internal.util.atomic.LinkedQueueNode producerNode;
  32. }
  33. -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
  34. rx.internal.util.atomic.LinkedQueueNode consumerNode;
  35. }
  36. # Retrofit 2.X
  37. ## https://square.github.io/retrofit/ ##
  38. -dontwarn retrofit2.**
  39. -keep class retrofit2.** { *; }
  40. -keepattributes Signature
  41. -keepattributes Exceptions
  42. -keepclasseswithmembers class * {
  43. @retrofit2.http.* <methods>;
  44. }
  45. # AppCombat
  46. -keep public class android.support.v7.widget.** { *; }
  47. -keep public class android.support.v7.internal.widget.** { *; }
  48. -keep public class android.support.v7.internal.view.menu.** { *; }
  49. -keep public class * extends android.support.v4.view.ActionProvider {
  50. public <init>(android.content.Context);
  51. }
  52. # ReactiveNetwork
  53. -dontwarn com.github.pwittchen.reactivenetwork.**
  54. ## GSON ##
  55. # Gson uses generic type information stored in a class file when working with fields. Proguard
  56. # removes such information by default, so configure it to keep all of it.
  57. -keepattributes Signature
  58. # For using GSON @Expose annotation
  59. -keepattributes *Annotation*
  60. # Gson specific classes
  61. -keep class sun.misc.Unsafe { *; }
  62. #-keep class com.google.gson.stream.** { *; }
  63. # Application classes that will be serialized/deserialized over Gson
  64. -keep class com.google.gson.examples.android.model.** { *; }
  65. # Prevent proguard from stripping interface information from TypeAdapterFactory,
  66. # JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
  67. -keep class * implements com.google.gson.TypeAdapterFactory
  68. -keep class * implements com.google.gson.JsonSerializer
  69. -keep class * implements com.google.gson.JsonDeserializer
  70. # SnakeYaml
  71. -keep class org.yaml.snakeyaml.** { public protected private *; }
  72. -keep class org.yaml.snakeyaml.** { public protected private *; }
  73. -dontwarn org.yaml.snakeyaml.**
  74. # Duktape
  75. -keep class com.squareup.duktape.** { *; }