book-reader/app/proguard-rules.pro
Aryan 9510293ac3
Update v1.0.49 (#330)
* Added PDF top tab strip visibility toggle and fixed WebView hit test NPE

* Refactored desktop reader screens and state management into specialized components

* Added image gallery to reader sidebar and refactored desktop PDF UI components

* Implemented EPUB image gallery

* Refactored reader and library models to use shared common types, centralizing file type resolution and texture management while removing redundant mapping logic

* Standardized UI styling and refactored app navigation layout

* Implemented auto-hiding reader chrome and activity tracking in desktop

* Refactored reader panels into distinct left and right modal layers with platform-specific sizing and keyboard navigation support.

* Added PPTX support for desktop and refactored parsing into a shared module

* Implement paid AI features and account management for the desktop application.

* Implement AI Hub and enhanced Cloud TTS integration for Desktop

* Implement streaming support for AI definition and summarization features

* Implement support for password-protected PDFs and file actions in the desktop reader.

* Implement cloud synchronization for desktop using Firestore and Google Drive

* Implement PDF reflow and "Text View" for the desktop reader

* Refactor OPDS logic to use SharedOpdsController

* Optimize PDF tile rendering performance

* Implement two-page spread support for PDF pagination

* Implement two-page spread support for the PDF viewer

* Improved shared spread zoom in PDF viewer

* Improve PDF spread navigation with fling support and configurable page gaps

* Add brightness control to PDF and EPUB readers

* Refactor folder synchronization to use shared logic engine

* Implement safe string formatting and validation for localized resources

* Implement TTS chunk skip navigation

* Implement deep-linking and playback controls for TTS media sessions

* Implement start index for TTS playback

* Improve TTS navigation, prefetching, and notification duration reporting

* Implement TTS mini playback bar for background reading

* Implement multi-window reader support for the desktop application

* Improve desktop modal window management and visibility syncing

* Implement localized string support for Desktop and shared UI

* Implement language selection and persistence for Desktop

* Implement plural string support for Desktop and migrate hardcoded counts to plurals.xml

* Implement localized banner messages and UI strings using resource-backed SharedText

* Implement compact badge styling for small book covers

* Refactor PDF native interaction and improve HTML import memory safety

* fix language persistence

* Refactor reader overflow menus to use section-based logic

* Refactor PDF layout remapping and improve text box interaction

* Improve CFI resolution and TTS resume accuracy using dynamic chunk offsets

* Centralize PDF annotation export mapping and improve metadata handling

* Add support for threaded comments in PDF highlight annotations

* Flatten highlight comments into a single thread for PDF export and allow author editing

* Integrate page slider into reader chrome and persist toggle state

* Handle fragments and queries in EPUB chapter paths

* Implement dynamic, theme-aware coloring for the reader slider

* Implement customizable app-wide font preference

* Implement one-hand zoom gestures in the PDF viewer

* Implement File Information dialog for PDF and EPUB readers

* Bump version to 1.0.49 (53)

* Refactor PDF reader logic into modular components

* Add ProGuard rules to prevent R8 optimization issues in EPUB reader screens

* Add option to use PDF filenames as display names

* Fix preservation of PDF filename display preference in library projection
2026-05-20 22:14:01 +05:30

108 lines
4.1 KiB
Prolog

# 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
# Fix for Firestore crash in release builds.
# This prevents ProGuard from removing the default constructor and fields
# that Firestore needs for data serialization and deserialization.
-keepattributes Signature
-keep class com.google.firebase.firestore.** { *; }
-keepnames class com.google.protobuf.** { *; }
# IMPORTANT: Keep all your data model classes that you use with Firestore.
# The following rule covers all classes in your 'data' package.
-keep class com.aryan.reader.data.** {
<init>();
*;
}
# Keep MobiParser inner classes that are accessed from JNI.
# ProGuard/R8 can't detect this usage, so we must keep them explicitly
# to prevent renaming/removal in release builds.
-keep class com.aryan.reader.epub.MobiParser$* {
<init>(...);
*;
}
# Keep classes for Google Sign In and Credential Manager
-keep class com.google.android.libraries.identity.googleid.** { *; }
-keep class com.google.android.gms.auth.api.identity.** { *; }
-keep class androidx.credentials.** { *; }
# Keep classes for Firebase Auth
-keep class com.google.firebase.auth.** { *; }
# These rules can help prevent gRPC-related issues in release builds.
-keep class io.grpc.** { *; }
-dontwarn com.squareup.okhttp.**
#noinspection ShrinkerUnresolvedReference
-dontwarn com.google.protobuf.GeneratedMessageV3
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageV3 {
<fields>;
}
# Keep GSON TypeToken for proper JSON serialization/deserialization in release builds.
# This prevents R8 from stripping generic type information needed by Gson.
-keep class com.google.gson.reflect.TypeToken { *; }
-keep class * extends com.google.gson.reflect.TypeToken
-keep class com.aryan.reader.paginatedreader.Woff2Converter { *; }
# R8 can fold the large EPUB Scaffold content lambda into ChapterWebViewKt with
# hundreds of captured Compose state parameters. ART rejects that release-only
# synthetic method when opening EPUBs, so keep these file facades out of those
# optimizer passes while leaving the rest of the app minified.
-keep class com.aryan.reader.epubreader.EpubReaderScreenKt { *; }
-keep class com.aryan.reader.epubreader.EpubReaderScreenKt$* { *; }
-keep class com.aryan.reader.epubreader.ChapterWebViewKt { *; }
-keep class com.aryan.reader.epubreader.ChapterWebViewKt$* { *; }
# The PDF reader is another very large Compose surface. Keeping its file facade
# out of release optimizer folding avoids ART's compiler instruction-limit path
# and preserves the private pdfium wrapper fields read for native pointer access.
-keep class com.aryan.reader.pdf.PdfViewerScreenKt { *; }
-keep class com.aryan.reader.pdf.PdfViewerScreenKt$* { *; }
-keep class com.aryan.reader.pdf.PdfPageComposableKt { *; }
-keep class com.aryan.reader.pdf.PdfPageComposableKt$* { *; }
-keep class io.legere.pdfiumandroid.** { *; }
-dontwarn com.gemalto.jp2.**
# Flexmark Markdown parser rules
-keep class com.vladsch.flexmark.** { *; }
-keepnames class com.vladsch.flexmark.** { *; }
-keepclassmembers class com.vladsch.flexmark.** { *; }
-dontwarn java.awt.**
-dontwarn javax.swing.**
-dontwarn javax.imageio.**
-keepattributes Signature, EnclosingMethod, InnerClasses, *Annotation*
-keep class com.aryan.reader.pdf.NativePdfiumBridge {
*;
}
# Preserve ONNX Runtime Java classes
-keep class ai.onnxruntime.** { *; }
-keepnames class ai.onnxruntime.** { *; }
-keepclassmembers class ai.onnxruntime.** { *; }