fix: keep WorkManager's Room database constructor in release builds
This commit is contained in:
@@ -89,8 +89,8 @@ android {
|
||||
applicationId = "de.softwareapp_hb.fotodup.finder.free"
|
||||
minSdk = 26
|
||||
targetSdk = 36
|
||||
versionCode = 4
|
||||
versionName = "1.1.0"
|
||||
versionCode = 5
|
||||
versionName = "1.1.1"
|
||||
|
||||
// AdMob reads its application id from the manifest, so it has to be a placeholder:
|
||||
// the value differs between a developer machine, CI and a release build.
|
||||
|
||||
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