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.
59 lines
2.6 KiB
Bash
59 lines
2.6 KiB
Bash
# Hash Bags capture harness — local configuration TEMPLATE.
|
|
#
|
|
# Copy to tools/demo/demo.env (which is gitignored) and fill in.
|
|
# Per ~/src/docs/engineering/developer-workstations.md: human credentials live
|
|
# in Vaultwarden; ignored development values sit beside the worktree; only
|
|
# reviewed templates get committed.
|
|
#
|
|
# cp tools/demo/demo.env.example tools/demo/demo.env
|
|
#
|
|
# NEVER put the demo wallet seed in this file. It is fetched from Vaultwarden
|
|
# at capture time. NEVER put the Vaultwarden hostname in a committed file
|
|
# either — that is infrastructure detail and does not belong in a public repo.
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Vaultwarden
|
|
# ---------------------------------------------------------------------------
|
|
# Your self-hosted server URL. Set it here (this file is gitignored), then:
|
|
# bw config server "$VAULTWARDEN_SERVER"
|
|
# bw login
|
|
# export BW_SESSION=$(bw unlock --raw)
|
|
VAULTWARDEN_SERVER=https://vault.example.internal
|
|
|
|
# Name of the Vaultwarden item holding the demo wallet. The seed may live in
|
|
# the item's notes, its password field, or a custom field named `seed`.
|
|
VAULTWARDEN_ITEM=hash-bags-demo-wallet
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Demo wallet presentation
|
|
# ---------------------------------------------------------------------------
|
|
# Which chain is the face of the app in store material. Hash Bags is
|
|
# Wownero-first. One of: wownero | monero | bitcoin | litecoin
|
|
DEMO_WALLET_TYPE=wownero
|
|
|
|
# Destination shown on the Send screen. This APPEARS ON CAMERA — use an
|
|
# address you are happy to publish. Defaulting it to the demo wallet's own
|
|
# receive address avoids putting a stranger's address in a store listing.
|
|
DEMO_SEND_ADDRESS=
|
|
|
|
# Amounts typed on camera. Nothing is ever broadcast by the scenarios.
|
|
DEMO_SEND_AMOUNT=0.5
|
|
DEMO_SWAP_AMOUNT=10
|
|
|
|
# PIN entered during capture (digits only).
|
|
DEMO_PIN=0801
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Capture targets
|
|
# ---------------------------------------------------------------------------
|
|
# AVD created by the harness at exactly 1080x1920 (16:9). Do not point this at
|
|
# a 1080x2400 phone AVD: that is 2.22:1 and Google Play rejects phone
|
|
# screenshots with an aspect ratio above 2:1.
|
|
DEMO_AVD=HashBags_Capture
|
|
|
|
# Where captures and renders land. Kept out of the repo on purpose.
|
|
DEMO_OUT_ROOT=$HOME/Build/hash-wallet/demo
|
|
|
|
# Optional music bed baked into the `social` reel. Ignored by apple-preview.
|
|
# DEMO_MUSIC=/home/jw/src/meatspace/assets/music/instrumental_vibey.mp3
|