proguard-rules.pro 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.kts.kts.
  4. #
  5. # For more details, see
  6. # http://developer.android.com/guide/developing/tools/proguard.html
  7. -dontobfuscate
  8. # Required for serialization to work properly
  9. -if @kotlinx.serialization.Serializable class **
  10. -keepclassmembers class <1> {
  11. static <1>$Companion Companion;
  12. }
  13. -if @kotlinx.serialization.Serializable class ** {
  14. static **$* *;
  15. }
  16. -keepclassmembers class <2>$<3> {
  17. kotlinx.serialization.KSerializer serializer(...);
  18. }
  19. -if @kotlinx.serialization.Serializable class ** {
  20. public static ** INSTANCE;
  21. }
  22. -keepclassmembers class <1> {
  23. public static <1> INSTANCE;
  24. kotlinx.serialization.KSerializer serializer(...);
  25. }
  26. # Required for the patcher to function correctly
  27. -keep class app.revanced.patcher.** {
  28. *;
  29. }
  30. -keep class brut.** {
  31. *;
  32. }
  33. -keep class org.xmlpull.** {
  34. *;
  35. }
  36. -keep class kotlin.** {
  37. *;
  38. }
  39. -keep class org.jf.** {
  40. *;
  41. }
  42. -keep class com.android.** {
  43. *;
  44. }
  45. -dontwarn java.awt.**
  46. -dontwarn javax.**
  47. -dontwarn org.slf4j.**
  48. -dontwarn it.skrape.fetcher.*
  49. -keepattributes RuntimeVisibleAnnotations,AnnotationDefault