From 1ae6a123959ce3bd55f5c011f2b8a5f5c051fcb8 Mon Sep 17 00:00:00 2001 From: ocean <503259349@qq.com> Date: Thu, 4 Dec 2025 09:34:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DParcelable=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E5=BC=95=E8=B5=B7=E7=9A=84=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/proguard-rules.pro | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 202e01c..244735a 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -33,3 +33,11 @@ # 防止缺少 gemalto 的 JP2Decoder 报错 -dontwarn com.gemalto.jp2.** -dontwarn com.tom_roush.pdfbox.filter.JPXFilter + +# 保留所有 Parcelable 类 +-keep class * implements android.os.Parcelable { *; } + +# 保留所有 Parcelable 的 CREATOR 字段 +-keepclassmembers class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +}