mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Drives the real app through real flows on a device while recording the screen,
then cuts ONE recording into both deliverables — store screenshots and
marketing video — so a listing can't drift out of sync with its own trailer.
integration_test/demo/
DemoSession adds what a passing test lacks: pacing (beat/hold/typeSlowly, so
footage is watchable rather than a strobe), timing marks reported through
binding.reportData, and seed guards. Scenarios reuse the existing 25 page
robots rather than reimplementing navigation:
core_store_set dashboard, receive, send (composed, NEVER broadcast),
wallets, security — the store screenshot set
onboarding_create welcome -> PIN -> seed -> dashboard
restore_from_seed restore -> syncing
swap_and_buy Trocador quote, stopping BEFORE creating a trade; Buy
skipped when no provider key, matching what reviewers see
tools/demo/
capture.sh orchestrates boot/record/cut/shots/reel
marks.py maps timing marks onto the recording; cuts, extracts frames,
builds manifests
reel.py branded master; reuses such_graphics video_transitions/video_qa
when ~/src/such-graphics is present, degrades cleanly when not
(this repo is public and must build without it)
build-apk.sh local APK via the CI container image
Seed safety — the demo wallet is a real wallet with real funds:
- seed comes from Vaultwarden at capture time, never the repo
- guardNoSeedOnScreen() fails the run on a visible mnemonic, catching both
the known seed and the generic shape of one (so freshly generated seeds
are caught too)
- unavoidable seed screens are wrapped in blindfold(); those spans are
excised from the video with 0.6s padding, and screenshots honour the same
padding
- marks.py refuses to build a publishable master if any clip was cut without
marks, since blindfold spans could not have been excised
Apple App Preview gets no touch indicators, captions, cards or music, and
reel.py enforces the 15-30s window rather than emitting an out-of-spec file.
Everything else keeps taps on, drawn by SurfaceFlinger via show_touches rather
than composited, so they look real.
Play sizing: the harness builds its own 1080x1920 AVD. The stock Medium Phone
AVD is 1080x2400 = 2.22:1 and Play rejects phone screenshots above 2:1.
Also gitignores android/app/upload-keystore.jks (and *.jks/*.keystore): the
Android workflow decodes ANDROID_KEYSTORE_BASE64 to exactly that path, so the
Play upload signing key was one `git add -A` away from being committed.
21 lines
1010 B
Bash
Executable File
21 lines
1010 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Manual screenshot helper (the fast path for a first submission).
|
|
# Boot the target simulator, run the app, navigate to a screen, then run this to
|
|
# capture it at App-Store-exact dimensions.
|
|
#
|
|
# Usage: ./screenshot.sh <name> # captures the booted simulator
|
|
# OUT_DIR=~/hb-shots ./screenshot.sh 01-home
|
|
#
|
|
# Recommended flow (on the Mac):
|
|
# xcrun simctl boot "iPhone 16 Pro Max"; open -a Simulator
|
|
# (cd .. && flutter run -d "iPhone 16 Pro Max") # navigate to each screen, then:
|
|
# ./screenshot.sh 01-home ; ./screenshot.sh 02-receive ; ...
|
|
# # repeat booted on "iPad Pro 13-inch (M4)" for the iPad set.
|
|
set -euo pipefail
|
|
name="${1:?usage: screenshot.sh <name>}"
|
|
out="${OUT_DIR:-./screenshots-manual}"
|
|
mkdir -p "$out"
|
|
xcrun simctl io booted screenshot "$out/$name.png"
|
|
dims=$(python3 -c "import struct;d=open('$out/$name.png','rb').read(26);print('x'.join(map(str,struct.unpack('>II',d[16:24]))))" 2>/dev/null || echo "?")
|
|
echo "saved $out/$name.png ($dims)"
|