fix: keep WorkManager's Room database constructor in release builds
This commit is contained in:
@@ -12,7 +12,7 @@ definition of done for this repository.
|
||||
|---|---|
|
||||
| Product | Foto Dup Finder — offline duplicate/near-duplicate photo finder |
|
||||
| Model | **Freemium**: free tier with one AdMob banner, one-time Pro purchase removes ads |
|
||||
| Current version | `1.1.0` / `versionCode 4` (`app/build.gradle.kts`) |
|
||||
| Current version | `1.1.1` / `versionCode 5` (`app/build.gradle.kts`) |
|
||||
| Platform | Android, Kotlin + Jetpack Compose, single `:app` module |
|
||||
| Application id | `de.softwareapp_hb.fotodup.finder.free` (debug `.free.debug`); namespace/code package remains `de.softwareapp_hb.fotodup.finder` |
|
||||
| SDKs | `minSdk 26`, `compileSdk`/`targetSdk` 36 |
|
||||
@@ -30,7 +30,7 @@ Roadmap: [`docs/ROADMAP.md`](docs/ROADMAP.md)
|
||||
Release checklist: [`docs/PLAY_RELEASE_CHECKLIST.md`](docs/PLAY_RELEASE_CHECKLIST.md)
|
||||
Privacy policy: [`PRIVACY.md`](PRIVACY.md)
|
||||
|
||||
**Current gate:** the freemium release (`1.1.0`) is implemented in code, but the
|
||||
**Current gate:** the freemium release (`1.1.1`) is implemented in code, but the
|
||||
Play Console work (change the app to free, create `pro_no_ads`, AdMob app/unit,
|
||||
UMP message, Data Safety, Ads/Advertising ID declarations) is manual. Do not
|
||||
describe the app as "ad-free", "no internet" or "paid once" — those claims belong
|
||||
@@ -242,6 +242,13 @@ Never use `./gradlew --offline` for a fresh dependency check, and never commit
|
||||
- Minimum before calling a change done:
|
||||
`./gradlew :app:testDebugUnitTest :app:lintDebug :app:assembleDebug`.
|
||||
For release changes also `:app:assembleRelease` (R8 + manifest merge).
|
||||
- **Launch a minified build before uploading.** `assembleDebug` does not run R8 and
|
||||
cannot catch shrinker-only startup crashes. Either install the release APK on a
|
||||
device (uninstall the Play-signed copy first if the signatures conflict) or
|
||||
temporarily enable `isMinifyEnabled`/`isShrinkResources` in the debug build type
|
||||
and install it side by side. The `1.1.0` upload crashed in
|
||||
`androidx.startup.InitializationProvider` because R8 removed WorkManager's
|
||||
generated `WorkDatabase_Impl` constructor; `app/proguard-rules.pro` now keeps it.
|
||||
|
||||
## 10. Privacy and security
|
||||
|
||||
@@ -289,12 +296,18 @@ Never use `./gradlew --offline` for a fresh dependency check, and never commit
|
||||
`--add-exports`). Removing them breaks the data-layer tests on JDK 17+.
|
||||
9. **AOSP emulators do not have Play services.** An empty ad slot or a "purchases
|
||||
unavailable" message there is expected; it is not a code failure.
|
||||
10. **`versionCode` must increase** for every Play upload. `1.0.2` used 3; the
|
||||
freemium build is 4. Update `CHANGELOG.md` and the release checklist too.
|
||||
10. **`versionCode` must increase** for every Play upload. `1.0.2` used 3, the
|
||||
1.1.0 internal-testing build used 4, and the fixed freemium build is 5.
|
||||
Update `CHANGELOG.md` and the release checklist too.
|
||||
11. **Do not call `navigationBarsPadding()` twice.** The bottom slot owns the inset;
|
||||
`BottomActionBar` must not add it again.
|
||||
12. **The old paid-app docs are historical.** Do not copy "pay once", "no ads" or
|
||||
"no INTERNET" claims into new copy.
|
||||
13. **R8 reflects into Room/WorkManager.** `play-services-ads` pulls in WorkManager
|
||||
2.7.0. The generated `androidx.work.impl.WorkDatabase_Impl` constructor is
|
||||
removed by R8 unless `app/proguard-rules.pro` keeps it, producing a release-only
|
||||
crash before `Application.onCreate`. Keep the rule and smoke-test a minified
|
||||
build; debug builds do not reproduce it.
|
||||
|
||||
|
||||
## 12. Definition of done
|
||||
@@ -310,6 +323,8 @@ Never use `./gradlew --offline` for a fresh dependency check, and never commit
|
||||
- [ ] `./gradlew :app:assembleDebug` succeeds.
|
||||
- [ ] For release-affecting work: `./gradlew :app:assembleRelease` succeeds and the
|
||||
merged manifest permissions are re-audited.
|
||||
- [ ] For release-affecting work: a **minified build launches** on a device (R8-only
|
||||
failures are invisible to `assembleDebug` and unit tests).
|
||||
- [ ] `docs/codemap.md` and `docs/codemap.mmd` are updated for architecture changes.
|
||||
- [ ] `README.md`, `PRIVACY.md`, `CHANGELOG.md`, `docs/MONETIZATION.md`,
|
||||
`docs/STORE_LISTING.md` and `docs/PLAY_RELEASE_CHECKLIST.md` are updated when
|
||||
|
||||
Reference in New Issue
Block a user