PDFReaderPro/app/proguard-rules.pro
2025-12-04 10:18:40 +08:00

50 lines
1.6 KiB
Prolog
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# PDFium完整保留
-keep class com.shockwave.** { *; }
-keep class com.github.barteksc.pdfviewer.** { *; }
-keepclassmembers class * {
native <methods>;
}
-keep class com.luck.picture.lib.** { *; }
-keep class com.luck.lib.camerax.** { *; }
-dontwarn com.yalantis.ucrop**
-keep class com.yalantis.ucrop** { *; }
-keep interface com.yalantis.ucrop** { *; }
# 禁用 JPXDecodeJPEG2000避免调用 JP2Decoder
-assumenosideeffects class com.tom_roush.pdfbox.filter.JPXFilter {
*;
}
# 防止缺少 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 *;
}