From c0600e44f443dd82f8588fe1339b64cb43f6dc1c Mon Sep 17 00:00:00 2001 From: meowarex Date: Thu, 21 May 2026 00:57:21 +1000 Subject: [PATCH] Fixed ProGuard Crash --- Manager/app/proguard-rules.pro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Manager/app/proguard-rules.pro b/Manager/app/proguard-rules.pro index d0aeece..58df0fb 100644 --- a/Manager/app/proguard-rules.pro +++ b/Manager/app/proguard-rules.pro @@ -40,6 +40,13 @@ # Keep class names of patching steps since they're used via reflection -keepnames class com.meowarex.rlmobile.patcher.steps.** +# Room/WorkManager: generated *_Impl classes are reflectively instantiated via +# their no-arg constructor (Class#getDeclaredConstructor()). proguard-android-optimize.txt +# strips no-arg ctors otherwise, which crashes WorkManager auto-init at startup with +# NoSuchMethodException: androidx.work.impl.WorkDatabase_Impl. []. +-keep class * extends androidx.room.RoomDatabase { (); } +-keep class **_Impl { (); } + # Repackage classes into the top-level. -repackageclasses