proguard-rules.pro 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Merge
  2. -flattenpackagehierarchy com.github.catvod.spider.merge
  3. -dontwarn org.slf4j.impl.StaticLoggerBinder
  4. # Spider
  5. -keep class com.github.catvod.js.* { *; }
  6. -keep class com.github.catvod.crawler.* { *; }
  7. -keep class com.github.catvod.spider.* { public <methods>; }
  8. -keep class com.github.catvod.parser.* { public <methods>; }
  9. # AndroidX
  10. -keep class androidx.core.** { *; }
  11. # Gson
  12. -keepattributes Signature
  13. -keepattributes *Annotation*
  14. -dontwarn sun.misc.**
  15. -keep class com.google.gson.** { *; }
  16. -keep class * extends com.google.gson.TypeAdapter
  17. -keep class * implements com.google.gson.TypeAdapterFactory
  18. -keep class * implements com.google.gson.JsonSerializer
  19. -keep class * implements com.google.gson.JsonDeserializer
  20. -keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName <fields>; }
  21. -keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
  22. -keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
  23. # Nano
  24. -keep class fi.iki.elonen.** { *; }
  25. # OkHttp
  26. -dontwarn okhttp3.**
  27. -keep class okio.** { *; }
  28. -keep class okhttp3.** { *; }
  29. # Sardine
  30. -keep class com.thegrizzlylabs.sardineandroid.** { *; }
  31. # Smbj
  32. -keep class com.hierynomus.** { *; }
  33. -keep class net.engio.mbassy.** { *; }
  34. # Zxing
  35. -keep class com.google.zxing.** { *; }
  36. -keepclassmembers enum * {
  37. public static **[] values();
  38. public static ** valueOf(java.lang.String);
  39. }