Skip to content

Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.

Keep Room database constructors so WorkManager can start in release builds

Chethan6161c66e8083db4
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
index 8281ef7..8761b92 100644
--- a/app/proguard-rules.pro
+++ b/app/proguard-rules.pro
@@ -50,3 +50,7 @@
# liblo-native-code.so binds to these by name: Java_org_libreoffice_kit_* natives, the
# "handle" ByteBuffer fields and the messageRetrieved* callbacks. Nothing may be renamed.
-keep class org.libreoffice.kit.** { *; }
+
+# WorkManager (foss Office-engine downloader) instantiates its Room database reflectively at
+# startup; R8 full mode strips the generated no-arg constructor → launch crash. Keep it.
+-keep class * extends androidx.room.RoomDatabase { <init>(); }