fix: keep WorkManager's Room database constructor in release builds
This commit is contained in:
Vendored
+9
@@ -9,3 +9,12 @@
|
||||
|
||||
# Coroutines: keep the internal classes R8 sometimes struggles to strip correctly.
|
||||
-dontwarn kotlinx.coroutines.**
|
||||
|
||||
# WorkManager 2.7.0 arrives transitively through play-services-ads and creates
|
||||
# androidx.work.impl.WorkDatabase_Impl through Room's reflection. R8 removes the
|
||||
# generated no-arg constructor because nothing calls it directly, which makes the
|
||||
# app crash in androidx.startup.InitializationProvider with:
|
||||
# Failed to create an instance of androidx.work.impl.WorkDatabase
|
||||
-keep class androidx.work.impl.WorkDatabase_Impl {
|
||||
public <init>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user