Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h sheet Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
9 tasks
26 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2105
Source: team, #2105
Warning
Do not publish the Wear app until #2152 ships. The watch runs the same Spark wallet as the phone, and Spark real-time sync is off (
realTimeSyncServerUrl = null), so two live instances share no state. Mainnet is also gated off in this build (Env.IS_MAINNET_ENABLED = false), and everything this PR adds to the phone is hidden on mainnet (Env.isWatchLinkEnabled).Stacked on #2196 (
feat/wear-shared-guards). Part 3 of 3 of phone–watch pairing: managing the watch from the phone, and pairing that the phone starts.Note
A follow-up PR removes two of the features below as requested during review of this stack: the watch's own QuickPay settings (the watch will follow the phone's QuickPay again, keeping #2196's shared daily limit) and "Pay on Watch". They are reviewed and tested here as built.
Description
docs/wear.md,docs/timed-sheets.md,docs/screens-map.md), journeys and manual tests.Out of Scope
wear/app: the follow-up PR removes the watch's own QuickPay settings and Pay on Watch (see the note above), simplifies the phone's Watch sheet to one Unpair button, and swaps the sheets' phone illustration for a watch icon.wear/app: a watch that never receives the phone's open request can't be paired (it has no button of its own); the pairing times out on the phone.wear/app: Pay on Watch can show "Sent" when the watch never sees the request in time or its later answer doesn't reach the phone; nothing is paid in those cases.wear/app: Pay on Watch covers BOLT11 invoices with an amount only, not LNURL-pay or Lightning addresses.app: the install prompt opens a Play listing with no watch build until feat: run one wallet on two devices #2152.Design
N/A — no design available. #2105 is a prototype with no Figma; the sheets reuse the existing sheet host, timed-sheet layout, QuickPay sliders and illustrations.
Preview
Phone
Bitkit_Phone_API36(Android 16) and watchWear_Large_Round_API37(Wear OS 7), cold-booted, paired over the debug socket, both on the local./sparkstack, app commit4c679f2b7.Recordings:
pair-prompt.mp4
pay-request-from-phone.mp4
QA Notes
Setup
./sparkstack and connected over the debug socket:journeys/wear/README.md› Local./sparkstack, › Phone and watch over the debug socket, › Two apps on one wallet (a throwaway wallet, local stack only). Cold-boot both emulators and check their clocks agree. Phone PIN1111, biometrics off, "Require PIN for payments" on where a journey says so.watch_link.jsonon the phone, never while paired).journeys/wear/README.md› On a physical watch).Journeys
pair-prompt-later.xml— Later closes the prompt and it doesn't returnpair-prompt.xml— the prompt pairs the watch from its no-wallet screen; no prompt after unpair and restartwatch-quickpay-pin.xml— turning QuickPay on Watch on asks for the PIN, lowering doesn't, Back returnsquickpay-watch-limit.xml— the watch's own amount and daily limit hold its QuickPaypay-request-from-phone.xml— Pay on Watch opens Review with the hold on the watchquickpay-shared-daily-limit.xml— with watch QuickPay switched onquickpay-skips-hold.xml,quickpay-off-holds.xml,quickpay-over-limit-holds.xml,quickpay-on-app-start.xml— watch QuickPay is off until switched onpair-*.xml(nine) — pairing starts on the phone; tap Later if the prompt showsManual Tests
Details are in
journeys/wear/README.md› Manual tests for pairing (tests 11 to 14 there).Automated Checks
WatchPairTimedSheetTest.kt,WatchInstallTimedSheetTest.kt,WatchInstallViewModelTest.kt,PairLaunchTest.kt— when each prompt shows, once per watch, the Pair screen opening only from the phoneWatchQuickPayViewModelTest.kt— the watch's QuickPay settings and the PIN rulePayOnWatchInputTest.kt,PayOnWatchViewModelTest.kt,LinkHandoffTest.kt— which reviews offer Pay on Watch, the four result lines, one-shot requestsSocketLinkTransportTest.kt— the debug socket reports a connected watchQuickPayRepoTest.kt(both apps),QuickPaySpendStoreTest.kt,SendViewModelTest.kt,LaunchGateTest.kt,LaunchRequestTest.kt— the watch's caps, a handed-off request never under QuickPay, BOLT11 with an amount onlyPhoneBackupContractTest.kt,WatchBackupContractTest.kt,BackupJsonTest.kt,PhoneSettingsParserTest.kt,SettingsStoreTest.kt— the new optional backup fields both waysWatchLinkRepoTest.kt,WatchSheetViewModelTest.kt,PhoneLinkRepoTest.kt,AppViewModelSendFlowTest.kt,TimedSheetManagerTest.kt,WipeWalletUseCaseTest.kt— pairing the offered watch once, the connect recheck, a closed sheet starting nothing, the wipe clearing offered watchesEvidence
4c679f2b7:just compile,just test(with:wear:testDevDebugUnitTest --rerun),just lintall passed.Bitkit_Phone_API36(Android 16) andWear_Large_Round_API37(Wear OS 7) at4c679f2b7on the local./sparkstack; J6's phone log showed "daily spend '350' + '300' exceeds cap '500'".pair-retry-after-cancel.xml,pair-unpair-from-watch.xmlandpair-same-wallet.xmlpassed as part of J8. Both devices showed the same balance (35 734 sats) at the end.Gaps
pair-*.xmlof J8 were not run.lightning:link opened on the phone right after its PIN unlock was queued for later and showed no send review until the app restarted. Not isolated; the phone's deferred deeplink handling predates this stack.Models used
claude-opus-5-5(reasoning:medium)claude-opus-5-5(reasoning:medium),claude-fable-5-2(reasoning:medium)claude-fable-5-2(reasoning:medium),claude-opus-5-5(reasoning:medium)claude-sonnet-5-5(reasoning:medium)🤖 Generated with Claude Code