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:
@@ -166,7 +166,7 @@ release build — re-check with the audit command in `PLAY_RELEASE_CHECKLIST.md`
|
||||
|
||||
```bash
|
||||
adb shell am broadcast -a de.softwareapp_hb.fotodup.finder.debug.START_SCAN \
|
||||
-n de.softwareapp_hb.fotodup.finder.debug/de.softwareapp_hb.fotodup.finder.debug.DebugScanTrigger
|
||||
-n de.softwareapp_hb.fotodup.finder.free.debug/de.softwareapp_hb.fotodup.finder.debug.DebugScanTrigger
|
||||
```
|
||||
|
||||
Add `--es policy exact|balanced|aggressive` to override the default (`balanced`). The receiver
|
||||
@@ -177,7 +177,7 @@ the final timings are readable without the screen:
|
||||
adb logcat -s FotoDupDebug
|
||||
# poll the current state at any time:
|
||||
adb shell am broadcast -a de.softwareapp_hb.fotodup.finder.debug.REPORT_STATE \
|
||||
-n de.softwareapp_hb.fotodup.finder.debug/de.softwareapp_hb.fotodup.finder.debug.DebugScanTrigger
|
||||
-n de.softwareapp_hb.fotodup.finder.free.debug/de.softwareapp_hb.fotodup.finder.debug.DebugScanTrigger
|
||||
```
|
||||
|
||||
### Granting photo access
|
||||
@@ -186,9 +186,9 @@ adb shell am broadcast -a de.softwareapp_hb.fotodup.finder.debug.REPORT_STATE \
|
||||
why the **debug** manifest declares it:
|
||||
|
||||
```bash
|
||||
adb shell appops set de.softwareapp_hb.fotodup.finder.debug MANAGE_EXTERNAL_STORAGE allow
|
||||
adb shell appops set de.softwareapp_hb.fotodup.finder.free.debug MANAGE_EXTERNAL_STORAGE allow
|
||||
# ...run the scan, then put it back:
|
||||
adb shell appops set de.softwareapp_hb.fotodup.finder.debug MANAGE_EXTERNAL_STORAGE default
|
||||
adb shell appops set de.softwareapp_hb.fotodup.finder.free.debug MANAGE_EXTERNAL_STORAGE default
|
||||
```
|
||||
|
||||
The app's own banner still reads *“Photo access needed”*, because `checkSelfPermission` is
|
||||
@@ -199,7 +199,7 @@ unaffected by an appops grant. That is expected: it only affects the on-screen p
|
||||
`jdb` attaches over JDWP to the debug build:
|
||||
|
||||
```bash
|
||||
adb forward tcp:8700 jdwp:$(adb shell pidof de.softwareapp_hb.fotodup.finder.debug | tr -d '\r')
|
||||
adb forward tcp:8700 jdwp:$(adb shell pidof de.softwareapp_hb.fotodup.finder.free.debug | tr -d '\r')
|
||||
printf 'suspend\nwhere all\nquit\n' | jdb -attach localhost:8700
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user