Adjust R8 optimization configs to fix extension issues

Related: https://issuetracker.google.com/issues/233779072
This commit is contained in:
arkon 2022-05-26 19:41:43 -04:00
parent 241c4ad857
commit d71224b40b
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,3 @@
-allowaccessmodification
-dontusemixedcaseclassnames -dontusemixedcaseclassnames
-verbose -verbose

View file

@ -1,11 +1,11 @@
-dontobfuscate -dontobfuscate
# Keep extension's common dependencies # Keep common dependencies used in extensions
-keep class eu.kanade.tachiyomi.source.** { public protected *; } # Avoid access modification
-keep,allowoptimization class eu.kanade.tachiyomi.** { public protected *; } -keep,allowoptimization class eu.kanade.tachiyomi.** { public protected *; }
-keep,allowoptimization class androidx.preference.** { *; } -keep,allowoptimization class androidx.preference.** { *; }
-keep,allowoptimization class kotlin.** { public protected *; } -keep,allowoptimization class kotlin.** { public protected *; }
-keep,allowoptimization class kotlinx.coroutines.** { public protected *; } -keep,allowoptimization class kotlinx.coroutines.** { public protected *; }
-keep,allowoptimization class kotlinx.serialization.** { public protected *; }
-keep,allowoptimization class okhttp3.** { public protected *; } -keep,allowoptimization class okhttp3.** { public protected *; }
-keep,allowoptimization class okio.** { public protected *; } -keep,allowoptimization class okio.** { public protected *; }
-keep,allowoptimization class rx.** { public protected *; } -keep,allowoptimization class rx.** { public protected *; }
@ -14,6 +14,9 @@
-keep,allowoptimization class app.cash.quickjs.** { public protected *; } -keep,allowoptimization class app.cash.quickjs.** { public protected *; }
-keep,allowoptimization class uy.kohesive.injekt.** { public protected *; } -keep,allowoptimization class uy.kohesive.injekt.** { public protected *; }
# Avoid optimizations, including access modification
-keep class * { <fields>; <methods>; }
##---------------Begin: proguard configuration for RxJava 1.x ---------- ##---------------Begin: proguard configuration for RxJava 1.x ----------
-dontwarn sun.misc.** -dontwarn sun.misc.**