feat: turn the paid app into a freemium app with ads and Pro

- add a single AdMob anchored adaptive banner to the free tier
- add UMP consent and a privacy-options entry point before ads load
- add the one-time Play Billing product `pro_no_ads`; Pro removes the banner
  and nothing else, every scan/selection/deletion feature stays free
- cache the entitlement locally, handle pending purchases, acknowledge and
  retry acknowledgement, and restore from Play on resume
- grandfather paid installs through `legacyPro.cutoffEpochMs`, checking both
  the new package and the old paid package declared in <queries>
- move the Play identity to `de.softwareapp_hb.fotodup.finder.free` while
  keeping the Kotlin namespace `de.softwareapp_hb.fotodup.finder`
- add a debug-only Pro toggle and focused monetisation tests
- add AGENTS.md, docs/codemap.md, docs/codemap.mmd and docs/MONETIZATION.md
- update README, PRIVACY, CHANGELOG, ROADMAP, store copy and the Play checklist
- bump to 1.1.0 / versionCode 4
This commit is contained in:
2026-10-20 09:28:29 +02:00
parent 3afa7d777d
commit 22091dd808
36 changed files with 3268 additions and 295 deletions
+49
View File
@@ -10,6 +10,55 @@ upload needs a **higher `versionCode`** than every previous upload.
## [Unreleased]
## [1.1.0] — 2026-10-20 · versionCode 4
### Added
- **Freemium model.** The app is free to download and use. The free tier shows one
anchored adaptive AdMob banner at the bottom of the scanner; a one-time in-app
purchase (`pro_no_ads`) removes it. Every duplicate-finding, selection and deletion
feature stays free — Pro only removes advertising.
- **Play Billing 9.1.0** with purchase, pending-purchase, acknowledgement and restore
handling. The entitlement is cached locally so an already-Pro install opens ad-free
offline and is reconciled with Play on resume.
- **UMP consent** (`user-messaging-platform` 4.0.0) before ad initialization, plus a
**Privacy options** entry point when UMP requires it.
- **Legacy paid-install grandfathering** through a build-time
`legacyPro.cutoffEpochMs`, so customers who bought the paid app keep the ad-free
tier.
- **Debug tools:** `DebugProToggle` (adb-driven free/Pro switch) and the existing
scan trigger.
- **Documentation:** [`AGENTS.md`](AGENTS.md), [`docs/codemap.md`](docs/codemap.md),
[`docs/codemap.mmd`](docs/codemap.mmd) and
[`docs/MONETIZATION.md`](docs/MONETIZATION.md).
### Changed
- **`versionName` 1.1.0 / `versionCode` 4.** Play has consumed codes 1–3.
- **New Play application id:** `de.softwareapp_hb.fotodup.finder.free` (debug
`.free.debug`). The Kotlin package and `namespace` stay
`de.softwareapp_hb.fotodup.finder`; only the installed/listing identity changes. This
makes the freemium build a **separate Play listing** from the old paid app, so the old
listing's price does not have to be changed irreversibly. Grandfathering checks both
packages' first-install times, but the old paid app must still be installed on the
first freemium launch; otherwise use promo codes/support.
- **Permissions.** The merged manifest now includes `INTERNET`,
`ACCESS_NETWORK_STATE`, `AD_ID`, the `ACCESS_ADSERVICES_*` Privacy Sandbox
permissions, `WAKE_LOCK` and `com.android.vending.BILLING`, merged by the ads and
Billing SDKs. The previous “no INTERNET permission” claim no longer applies.
- **Privacy policy and store copy** now describe advertising, consent, the
advertising ID and the optional purchase. Photo processing remains on-device;
photos are never uploaded.
- **Store/Play documentation** now treats the paid-app pricing section as historical
and documents the freemium Console steps, Data Safety answers and required
screenshot re-shoot.
### Fixed
- The old paid-app claims (“ad-free”, “no internet permission”, “pay once”) were
removed from the current README/PRIVACY/store wording so they cannot contradict the
shipped SDKs.
## [1.0.2] — 2026-10-18 · versionCode 3
### Changed