Skip to content

chore(scanRift): demo data and store screenshots tooling - #22

Merged
KalimbaPro merged 4 commits into
mainfrom
dev
Nov 14, 2026
Merged

KalimbaPro merged 4 commits into
mainfrom
dev

Conversation

@KalimbaPro

Copy link
Copy Markdown
Owner

What

Tooling to regenerate the Google Play screenshots, plus the data that makes them look lived-in.

  • app/src/debug/.../demo/: ScreenshotDemoActivity + DemoSeeder + DemoData. Debug source set and debug manifest only, so release builds contain none of it. Launch with adb shell am start -n com.scanrift.android.debug/com.scanrift.android.demo.ScreenshotDemoActivity. It waits for the launch bootstrap, then replaces the collection, decks, game history, wishlist and tracker roster with:
    • 147 stacks (307 copies) across OGN/SFD/UNL/VEN/RAD, with foils and French, Chinese and Korean copies. Banned Baited Hook and Zhonya's sit inside the flag sections, so one screen shows both.
    • 3 decks: Lillia Dreams and Irelia Blade Dance (legal), and Leona Control (illegal because of Zhonya's Hourglass and Baited Hook).
    • 6 recorded games and a 2-seat roster (Lillia Signature vs Irelia Overnumbered).
    • Scan language forced to English. With Auto, the CJK OCR pass loads Play Services' TFLite module, which crashes the app with SIGILL on the arm64 emulator.
  • DemoDataTest (testDebug): every riftbound_id resolves in the bundled catalogue, decks validate (the third fails only for bans), and the collection owns enough copies so no deck shows missing cards.
  • scripts/screenshot-demo.sh <serial>: turns on SystemUI demo mode (9:41, full battery and Wi-Fi, no notifications), installs the debug build and runs the seeder.
  • CLAUDE.md gets a "Store screenshots" section covering the procedure and the emulator quirks: Play's 2:1 limit (use wm size 1080x2160), the foldable's two displays, and pushing the binder-page photo.

The screenshots themselves live in ScanRift-store-assets/android/, not in this repo.

Checks

./gradlew testDebugUnitTest assembleDebug lintDebug: tests pass, lint has 0 errors and no new warnings.

🤖 Generated with Claude Code

KalimbaPro and others added 4 commits November 14, 2026 21:32
A debug-only ScreenshotDemoActivity seeds a realistic data set for Play
screenshots: 147 collection stacks across OGN/SFD/UNL/VEN/RAD with French,
Chinese and Korean copies and foils, three decks (two legal, one illegal for
its bans), six recorded games, a wishlist and a two-seat tracker roster.
It lives in the debug source set and manifest, so release builds carry none
of it. DemoDataTest pins the data to the bundled catalogue and the deck rules.

scripts/screenshot-demo.sh puts an emulator into SystemUI demo mode, installs
the debug build and runs the seeder; CLAUDE.md documents the whole procedure
and the emulator quirks it works around.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dimming, CJK guard

- Card detail / collection: ThreePaneScaffold requests focus on the pane it shows,
  which landed on the first text field (search box, stepper quantity) and popped the
  keyboard; each pane root is now the focus landing node (paneFocusLanding). Drops the
  search field's clearFocus workaround.
- Floating stepper and list FABs: bottom content padding derived from the button size
  and margin (Dimens.FabContentClearance / QuantityStepperContentClearance).
- Deck builder browser: addBlockReason's elvis also caught the validator's null, so
  every addable card was dimmed.
- Binder pages: codes need three digits (and the printed total when only a space
  separates set and number); reads of one collector line from the page and tile passes
  collapse to one anchor; a focused card never falls back to other text on its region.
  Fixture test built from the real OCR lines of the 3x3 demo page (9 of 9).
- Scan summary rows: controls move under the name below 520dp; names get 2 lines.
- Collection: single pane unless list and detail both meet their floors (7" portrait).
  Top-bar titles are single-line with ellipsis.
- CJK OCR: ModuleInstall availability check before the first pass, and a crash marker
  (CjkOcrGuard) that disables the pass for the app version after a native crash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new 280/320dp floors needed 624dp, so a Fold in portrait (~621dp beside the
rail) fell back to one pane. 260/300dp still keeps a 7" tablet in portrait single.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KalimbaPro
KalimbaPro merged commit 577bbdc into main Nov 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant