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.
24 lines
907 B
Ruby
24 lines
907 B
Ruby
# fastlane snapshot config for Hash Bags App Store screenshots.
|
|
# Run on macOS (Mac-mini runner or your Mac): cd ios && fastlane screenshots
|
|
#
|
|
# These two devices cover Apple's required sizes:
|
|
# iPhone 16 Pro Max -> 6.9" (1290x2796 / 1320x2868) [REQUIRED]
|
|
# iPad Pro 13" (M4) -> 13" (2064x2752) [required if you ship iPad]
|
|
devices([
|
|
"iPhone 16 Pro Max",
|
|
"iPad Pro 13-inch (M4)"
|
|
])
|
|
|
|
languages(["en-US"])
|
|
|
|
# The Runner scheme's Test action must include the RunnerUITests target
|
|
# (see store/SCREENSHOTS.md). only_testing keeps us to just the screenshot test.
|
|
scheme("Runner")
|
|
only_testing(["RunnerUITests/HashBagsScreenshotsUITests"])
|
|
|
|
output_directory("./screenshots")
|
|
clear_previous_screenshots(true)
|
|
concurrent_simulators(false) # wallet sync is flaky under parallel sims
|
|
override_status_bar(true) # clean status bar: 9:41, full battery/wifi
|
|
stop_after_first_error(true)
|