Skip to content

Commit 93cc1ae

Browse files
authored
fix: crash at app startup [WPB-8645] (#4601)
1 parent 55c8087 commit 93cc1ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/proguard-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@
4646
-dontwarn java.awt.GraphicsEnvironment
4747
-dontwarn java.awt.HeadlessException
4848
-dontwarn java.awt.Window
49+
50+
# Room/WorkManager instantiate generated DB classes via reflection.
51+
# Keep *_Impl classes (including constructors) to avoid startup crash
52+
# when R8 strips default constructors.
53+
-keep class **_Impl extends androidx.room.RoomDatabase { *; }

0 commit comments

Comments
 (0)