- 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).
- lib/src/game/art.dart draws the scene with canvas primitives: dusk sky with a
camera-relative sun, three parallax ridges (far = lighter), soil with rim
light and irregular rocks, tanks with hull/turret/barrel/tracks and a
health bar in team colour, comet trail, impact with fireball/ring/sparks and
a dotted aim hint.
- Flutter tokens come from the generated palette, so app UI and artwork match.
- performance was part of the job: the first version ran at 31-40 % jank. An
A/B against the old renderer (0-6.5 %) proved it was the new scene, then the
causes were removed one by one: full-screen radial vignette (now edge bands),
per-ridge gradient shaders and per-frame paints (flat fills, cached paints),
two clipped gradient rects under the surface, terrain redrawn every frame (now
a ui.Picture per terrain version) and mask-filter blurs.
- result on the Redmi Note 10: 60.0 fps, 0.0-0.8 % jank.
- goldens regenerated and reviewed; store screenshots re-captured and renamed
to match their content (01 gameplay, 02 projectile, 03 crater, 04 settings).
- docs/art-direction.md: phase 2 section with the performance table.