Prepare Google Play release with age-gated ads and store assets

This commit is contained in:
Hadrian Burkhardt
2026-11-15 18:54:43 +01:00
parent d73c5fc89a
commit 57b8bc20b8
49 changed files with 836 additions and 82 deletions
+10 -8
View File
@@ -1,4 +1,4 @@
# Lumen — The Last Light (Flutter 2.0.2)
# Lumen — The Last Light (Flutter 2.0.3)
An illustrated island notebook about grandmother Mara, her grandchild, and restoring a lighthouse. The active app is now written in **Dart and Flutter**, with a thin Android Kotlin entry point. All puzzle generation, deductions, story navigation, progress, audio controls and advertising behavior live in `lib/`.
@@ -17,6 +17,7 @@ Android is the tested target. iOS project scaffolding and test AdMob configurati
- Solved patterns remain available when turning back from discoveries, including after restarting. Discoveries blend the exact pixel symbol into the watercolour, keep a small copy of the symbol visible, and offer a replay.
- Local daily streaks, independent difficulty levels and exactly-once puzzle completion awards.
- AdMob/UMP consent, optional rewarded hints, practice interstitials after every fourth completion and up to three automatic reading breaks per book (around one-third, two-thirds and the end). Each book remembers its used placements. Automatic ads do not interrupt opening notebook leaves or recorded readings; puzzle hints show ads only after confirmation.
- A first-run age-group choice keeps advertising off for **Under 13** and **Prefer not to say**; teens receive child-directed ad treatment and adults receive standard treatment. Settings can change the choice and open the public privacy policy.
Progress starts fresh in Flutter, as requested. Old Java `lumen.xml` saves are **not imported or read**. Flutter keeps its own local preferences through `shared_preferences`; no account or game backend is required. Uninstalling loses local progress, and the daily date follows the device calendar.
@@ -67,13 +68,13 @@ flutter build apk --debug --flavor qa
# Install explicitly with: adb install -r -s PATH_TO_QA_APK
# The review Huawei rejects SD app installs; use adb install -r -f there.
# Production builds are intentionally blocked until mixed-age advertising is verified.
# See docs/ANDROID_RELEASE.md for release configuration.
# Production builds require real AdMob IDs and upload signing.
# See docs/ANDROID_RELEASE.md and scripts/build_android_release.sh.
```
The normal application ID remains `de.softwareapp_hb.lumen.daily`; version 2.0.2 uses build number 11. The review APK is `artifacts/lumen-flutter-2.0.2-arm64.apk`. Build outputs, screenshots, local SDK paths, IDE state and private signing keys are ignored by Git. `pubspec.lock` is tracked for reproducible package resolution.
The normal application ID remains `de.softwareapp_hb.lumen.daily`; the current release is version 2.0.3 (build 12). Generated build outputs, ad-hoc screenshots, local SDK paths, IDE state and private signing keys are ignored by Git; the upload-ready Play assets in `store/` are tracked. `pubspec.lock` is tracked for reproducible package resolution.
Production releases require a private upload key and production AdMob IDs. See [Android release preparation](docs/ANDROID_RELEASE.md); the mixed-age advertising flow and store setup remain release blockers.
Production releases require a private upload key and production AdMob IDs. The age-appropriate advertising flow and store assets are in place; the remaining publisher setup is described in [Android release preparation](docs/ANDROID_RELEASE.md).
## Browser playtest
@@ -118,7 +119,8 @@ The physical-device integration test uses a disposable in-memory game plus an is
| `lib/domain/book.dart` | Stable story records and campaign asset loading |
| `lib/domain/game.dart` | Routing, marks, undo, progress, streaks and completion |
| `lib/ui/` | Page layout, margin gestures, native grid semantics and illustrated keepsakes |
| `lib/services/` | Local storage, bundled playback and consent-gated AdMob |
| `lib/services/` | Local storage, bundled playback, age-gated consent and AdMob |
| `store/` | Upload-ready Play icon, feature graphic, phone screenshots and app-ads.txt |
| `assets/campaign.json` | Authored twelve-picture campaign |
| `assets/narration/STORY.md` | Lighthouse manuscript; compile with `tool/compile_mara_story.py` |
| `assets/narration/scripts.json` | Compiled spoken text and cast segments |
@@ -129,9 +131,9 @@ For an agent-oriented architecture, dependency, screen-flow and persistence map,
## Before publishing
Create your production Android AdMob app and ad units, configure Privacy & messaging, supply a public privacy policy and support contact, complete Play disclosures and ratings, and configure an upload key outside Git. The SDK still uses Google test IDs by default.
The release code and [store assets](store/README.md) are prepared. Remaining work is publisher-side: create the production Android AdMob app and ad units, configure Privacy & messaging, confirm the public privacy policy URL (the [policy](docs/PRIVACY_POLICY.md) renders on the repository host; the standalone [HTML copy](docs/privacy-policy.html) can be hosted on the developer site), complete Play disclosures and ratings, and configure an upload key outside Git. The SDK still uses Google test IDs by default.
For Android, supply the app ID using Gradle property `ADMOB_APP_ID`. Rewarded/interstitial unit IDs use Dart compile-time defines `ADMOB_REWARDED_ID` and `ADMOB_INTERSTITIAL_ID`. iOS needs its own app ID in `ios/Runner/Info.plist` and iOS-specific ad unit IDs. Verify consent refusal/revocation, reward completion/cancellation, offline/no-fill behavior, lifecycle interruptions, accessibility and release signing on physical devices before submitting an AAB.
For Android, supply the app ID using Gradle property `ADMOB_APP_ID`. Rewarded/interstitial unit IDs use Dart compile-time defines `ADMOB_REWARDED_ID` and `ADMOB_INTERSTITIAL_ID`; the public policy can be overridden with `PRIVACY_POLICY_URL`. iOS needs its own app ID in `ios/Runner/Info.plist` and iOS-specific ad unit IDs. Verify consent refusal/revocation, reward completion/cancellation, offline/no-fill behavior, lifecycle interruptions, accessibility and release signing on physical devices before submitting an AAB. See [Android release preparation](docs/ANDROID_RELEASE.md) for the age-option test matrix.
See [ROADMAP.md](ROADMAP.md) for the proposed 30–40-leaf campaign, page variety and further exploration ideas. Smaller follow-ups and asset tasks are tracked in [TODO.md](TODO.md).