m7c: Play Billing and a complete deletion path
- billing module with a testable seam: models (product ids, purchase events), StoreClient + PlayStoreClient over in_app_purchase, Entitlements persisted in SharedPreferences, BillingService orchestrating query/buy/restore/grant. - rules encoded: grant before completePurchase (Play refunds unacknowledged purchases after three days), pending purchases are shown but never granted, restorePurchases on start so a reinstall keeps the purchase, and Remove Ads only hides interstitials - rewarded video stays available. - ads gate: AdsService.adsRemoved stops both the counter and the preload, so an owner never requests an interstitial. - settings sheet: shop section (price from the store, never hardcoded), "restore purchases", and "delete local data" with confirmation; the existing mail-based deletion request stays the account-deletion path since the app has no accounts. - 9 new tests with a fake store cover purchase, restore, pending, cancel, error, restart persistence, missing store and a store that throws. 17 total. - verified on device: the app talks to the real Play Billing service (IInAppBillingService in logcat) and degrades to "no products created" without a crash; com.android.vending.BILLING is in the merged manifest. - docs: monetization 7c (rules + verification), decision D6 (local entitlement until purchases affect the server), compliance rows for billing/restore/ deletion, blocked.md 3c (create remove_ads in the Console). - release 0.9.0 (13).
This commit is contained in:
@@ -45,7 +45,7 @@ Legende: `[ ]` offen · `[x]` erledigt · `[~]` teilweise/geplant mit Owner
|
||||
| `[ ]` | Altersfreigabe (IARC) | Erwartung: USK 12 / PEGI 12 (kompetitive Gewalt, keine realistischen Darstellungen, keine Sprache) |
|
||||
| `[x]` | Datenschutzerklärung | URL gesetzt: `store/privacy-policy.html` im öffentlichen Gitea-Repo (Rohdatei, HTTP 200, `text/plain` – funktioniert, aber unschön; besserer Host in [status/blocked.md](status/blocked.md) §3b). In-App-Einstieg implementiert und auf Gerät verifiziert (Zahnrad → „Datenschutzerklärung“, `url_launcher`), Release-Guard gegen Platzhalter. Deckt: Geräte-ID, Match-/Replay-Daten, AdMob (Werbe-ID, IP, Geräteinformationen), ungefährer Standort aus IP. **Keine** Analytics-, Crash- oder Firebase-SDKs im Build |
|
||||
| `[~]` | Data-Safety-Formular | Angaben aus [privacy-policy.md](privacy-policy.md) übernehmen: Geräte-IDs (App-Funktion), ungefährer Standort aus IP + Werbe-ID (durch AdMob, Weitergabe an Google), **keine** Crash-Logs, **keine** Käufe (bis M7c) |
|
||||
| `[ ]` | Account-Löschung | In-App **und** Web-URL, da Accounts existieren (Firebase/Leaderboard) |
|
||||
| `[x]` | Account-Löschung | **Keine Accounts** in der App (Geräte-ID genügt). Datenlöschung: Einstellungen → „Datenlöschung anfragen“ (vorausgefüllte E-Mail, auf Gerät verifiziert) plus „Lokale Daten löschen“ (Warteschlange, Replays, Geräte-ID). Damit ist die Play-Anforderung erfüllt |
|
||||
| `[ ]` | Nachrichten-App? | Nein |
|
||||
| `[ ]` | News-App? | Nein |
|
||||
|
||||
@@ -65,8 +65,8 @@ Legende: `[ ]` offen · `[x]` erledigt · `[~]` teilweise/geplant mit Owner
|
||||
|
||||
| Status | Anforderung | Umsetzung |
|
||||
|---|---|---|
|
||||
| `[ ]` | Nur **Play Billing** für digitale Güter | Keine externen Payment-Links, kein Stripe/PayPal im Spiel |
|
||||
| `[ ]` | „Käufe wiederherstellen" | `queryPurchases` beim Start + Button in Settings |
|
||||
| `[x]` | Nur **Play Billing** für digitale Güter | `in_app_purchase` (Play Billing Library), keine externen Payment-Links. `com.android.vending.BILLING` im gemergten Manifest geprüft |
|
||||
| `[x]` | „Käufe wiederherstellen" | `restorePurchases` beim Start + „Käufe wiederherstellen“ im Einstellungen-Sheet |
|
||||
| `[ ]` | Pending Transactions | Korrekt behandeln (z. B. Barzahlung), keine Doppel-Gutschrift |
|
||||
| `[ ]` | Preise & MwSt. | Über Play Console gepflegt, nicht hartkodiert |
|
||||
| `[ ]` | Keine Lootboxen mit Zufall | Kosmetik direkt kaufbar; keine Odds-Disclosure nötig |
|
||||
@@ -112,7 +112,8 @@ Ein Release ist **nicht** erlaubt, wenn einer dieser Punkte offen ist:
|
||||
2. `targetSdk` < 36 oder 16-KB-Check fehlgeschlagen.
|
||||
3. Keine `native-debug-symbols.zip` im Upload.
|
||||
4. Data-Safety-Formular unvollständig.
|
||||
5. Account-Löschung nicht implementiert.
|
||||
5. ~~Account-Löschung nicht implementiert~~ → **erledigt 2026-10-25**: keine Accounts; Daten- und
|
||||
lokale Löschung in der App (Einstellungen).
|
||||
6. ~~Keine Datenschutz-Nachricht in AdMob~~ → **erledigt 2026-10-25**: Nachricht veröffentlicht,
|
||||
Formular erscheint, `consent=obtained`, Ads laden erst danach (Nachweis in
|
||||
[monetization.md](monetization.md#7b-ump-consent-m7b-umgesetzt)).
|
||||
|
||||
Reference in New Issue
Block a user