修改不能加载pag的问题

This commit is contained in:
zhx 2026-05-15 22:17:47 +08:00
parent 54e40bd60b
commit 6e10d57808

View File

@ -34,9 +34,14 @@
-keep class com.tencent.** { *; }
-dontwarn com.tencent.**
# PAG / libpag. The native libpag runtime looks up Java entry points through JNI;
# obfuscating these classes breaks PAG playback only in minified release builds.
-keep class org.libpag.** { *; }
-keep class com.example.flutter_pag_plugin.** { *; }
# Provider
-keep class * extends ChangeNotifier { *; }
-keep class * implements Listenable { *; }
-keep class * implements Listenable { *; }
# 其他保留
-keepattributes *Annotation*