修改不能加载pag的问题

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

View File

@ -34,6 +34,11 @@
-keep class com.tencent.** { *; } -keep class com.tencent.** { *; }
-dontwarn 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 # Provider
-keep class * extends ChangeNotifier { *; } -keep class * extends ChangeNotifier { *; }
-keep class * implements Listenable { *; } -keep class * implements Listenable { *; }