fix: keep WorkManager's Room database constructor in release builds

This commit is contained in:
2026-10-20 10:36:20 +02:00
parent 9c17d65088
commit 0803d0f5ad
6 changed files with 79 additions and 19 deletions
+21
View File
@@ -10,6 +10,27 @@ upload needs a **higher `versionCode`** than every previous upload.
## [Unreleased]
## [1.1.1] — 2026-10-20 · versionCode 5
### Fixed
- **Release-only startup crash.** The minified release build died before
`Application.onCreate` in `androidx.startup.InitializationProvider` with
`Failed to create an instance of androidx.work.impl.WorkDatabase`. WorkManager
arrives transitively through `play-services-ads`, and R8 removed the generated
Room `WorkDatabase_Impl` no-argument constructor that Room invokes reflectively.
`app/proguard-rules.pro` now keeps that constructor. Debug builds were unaffected,
which is why the first internal-testing upload looked fine locally.
- **Release smoke testing.** `AGENTS.md` and `docs/PLAY_RELEASE_CHECKLIST.md` now
require launching a minified build before uploading; unit tests and
`assembleDebug` cannot catch R8-only startup failures.
### Changed
- **`versionName` 1.1.1 / `versionCode` 5.** The 1.1.0 build (`versionCode` 4) was
already consumed by internal testing and crashed on startup, so it cannot be
reused for a Play upload.
## [1.1.0] — 2026-10-20 · versionCode 4
### Added