Fix R8: add dontwarn for Play Core and javax.xml.stream

This commit is contained in:
zarzet 2026-01-09 02:19:37 +07:00
parent e5e75e7092
commit 7a009ad0af
No known key found for this signature in database
GPG key ID: D22AEB239271AACA

View file

@ -6,6 +6,14 @@
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }
# Ignore missing Play Core classes (not used, but referenced by Flutter)
-dontwarn com.google.android.play.core.splitcompat.**
-dontwarn com.google.android.play.core.splitinstall.**
-dontwarn com.google.android.play.core.tasks.**
# Ignore missing javax.xml.stream (not used on Android)
-dontwarn javax.xml.stream.**
# Go backend (gobackend.aar)
-keep class gobackend.** { *; }
-keep class go.** { *; }
@ -14,6 +22,9 @@
-keep class com.arthenica.ffmpegkit.** { *; }
-keep class com.arthenica.smartexception.** { *; }
# Apache Tika (if used by FFmpeg)
-dontwarn org.apache.tika.**
# Keep native methods
-keepclasseswithmembernames class * {
native <methods>;