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:
@@ -79,3 +79,22 @@ AdMob-Konto sperren. Test-Units liefern zuverlaessig Fill und sind dafuer vorges
|
||||
**Naechster Schritt:** echte Unit-IDs (Rewarded, Interstitial, ggf. Banner) vom Auftraggeber,
|
||||
dann Ersatz der Konstanten in `app/lib/src/ads/ads_service.dart` — **erst nach** implementiertem
|
||||
UMP-Consent.
|
||||
|
||||
## D6 — Käufe: lokal freigeschaltet, serverseitig geprüft erst in MVP-2 (2026-10-25)
|
||||
|
||||
**Entscheidung:** M7c schaltet Entitlements **lokal** frei (`iron_arc.entitlements`), nachdem
|
||||
der Play Store `purchased`/`restored` gemeldet hat. Es gibt noch keine serverseitige
|
||||
Belegprüfung und keine Real-time Developer Notifications.
|
||||
|
||||
**Begründung:** Der Referee kennt keine Accounts und keine Inventare; ein gekaufter
|
||||
Skin/Pass existiert nicht. „Remove Ads“ wirkt ausschließlich auf dem Gerät, ein gefälschter
|
||||
Besitzstand schadet also niemandem außer dem Fälscher. Eine Verifikation wäre Aufwand ohne
|
||||
Gegenwert, solange keine serverseitigen Vorteile verkauft werden.
|
||||
|
||||
**Konsequenzen:**
|
||||
- Ein manipuliertes Gerät kann sich Interstitials selbst abschalten. Akzeptiert.
|
||||
- Sobald käufliche Vorteile den Server berühren (Cores, Season Pass, Loadout-Slots), ist die
|
||||
Prüfung Pflicht: `purchases.products.get` mit Service-Account plus RTDN-Webhook, und die
|
||||
Entitlements wandern in die Datenbank statt in SharedPreferences.
|
||||
- Dasselbe gilt für Erstattungen: heute bleibt ein erstatteter Kauf aktiv, bis der Nutzer die
|
||||
App-Daten löscht. Bei serverseitigen Vorteilen muss der Webhook entziehen.
|
||||
|
||||
Reference in New Issue
Block a user