Repository navigation
chore(breez): remove the Breez Liquid SDK and its Spark migration - #754
Merged
Merged
Conversation
Breez has retired the Breez SDK - Liquid, and its GitHub repos now return 404. CocoaPods can no longer download BreezSDKLiquid or breez_sdk_liquidFFI, so every fresh iOS `pod install` fails. The app used the SDK for one job only: moving a phone's old Liquid balance to Spark at launch. Take the Liquid side out. - Delete the migration (`app/utils/breez-sdk/migration.ts`), its popup, the Liquid wrapper (`app/utils/breez-sdk-liquid/`), the migration doc and the patch-package patch for the Liquid package. - BreezProvider no longer runs the migration after Spark starts. Its init guard stays, since it also stops overlapping starts. - Drop `sparkMigrationCompleted` from the persisted-state type and from wallet import, and `MIGRATION_FEE_LNURL_W` from the env declaration and its test mock. Phones that saved the flag keep it, unused. - Remove `@breeztech/react-native-breez-sdk-liquid`. yarn.lock and Podfile.lock lose only its entries (three pods). Also drop two app header search paths that pointed at its pod, and the README mention. - Add a BreezProvider test: a phone that never finished the migration starts the BTC wallet like any other, with one balance read, no alert, and only the balance saved. A phone that never finished the migration no longer sees or moves its Liquid balance in the app. The coins stay under the same recovery phrase, which the Liquid and Spark wallets share. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Breez SDK list now names the Spark SDK, but three of its bullets (node management, payment channels, channel backups) described the old node-based Breez SDK. Spark runs no node and no channels on the phone, so those lines sent the next maintainer looking for code that doesn't exist. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review fix. The Breez SDK list still said the SDK enables "WebLN standard support for web application integration". WebLN isn't a Spark SDK feature, and nothing in app/ imports webln or react-native-webln, so the line sent the next maintainer looking for code that doesn't exist, as the node and channel bullets did. Co-Authored-By: Claude Opus 5.5 <[email protected]>
islandbitcoin
pushed a commit
that referenced
this pull request
Oct 5, 2026
Replaces the static flashcard.png with the Flash Card physical design
(Concept A, Bearer) as vector art: app/components/flashcard-v2-art/
cardArtV2.tsx is a byte-for-byte copy of flash-pos's card face, and the
parity spec pins the file's SHA-256, the node digest and the rendered
trees so the two apps cannot drift without a test failing. The card is
drawn in flow (centred, 10 dp above, 16 dp below) instead of the old
PNG's absolute placement, so the balance and the action row sit where
they did on main. In dark mode a 1 dp outline keeps the near-black card
visible on the black page. The accessibility label says the card's
masked id letter by letter ("Flashcard ending 0 C 6 7"); the printed id
derives from the pubkey's last four hex digits as in flash-pos.
FLASH, BEARER CARD and ₿ are outlined Inter glyph paths; the bundled
Sora fonts and those glyphs are credited in THIRD_PARTY_NOTICES.md. The
shared file keeps flash-pos's Prettier style through a self-contained
override. New i18n key FlashcardV2.cardEnding; translations regenerated.
Rebased onto main after #748-#754; the branch's own copy of #748's
action-row move was dropped in favour of main's.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
islandbitcoin
added a commit
that referenced
this pull request
Oct 6, 2026
* feat(flashcard): draw the Bearer card on the Cashu card screen
Replaces the static flashcard.png with the Flash Card physical design
(Concept A, Bearer) as vector art: app/components/flashcard-v2-art/
cardArtV2.tsx is a byte-for-byte copy of flash-pos's card face, and the
parity spec pins the file's SHA-256, the node digest and the rendered
trees so the two apps cannot drift without a test failing. The card is
drawn in flow (centred, 10 dp above, 16 dp below) instead of the old
PNG's absolute placement, so the balance and the action row sit where
they did on main. In dark mode a 1 dp outline keeps the near-black card
visible on the black page. The accessibility label says the card's
masked id letter by letter ("Flashcard ending 0 C 6 7"); the printed id
derives from the pubkey's last four hex digits as in flash-pos.
FLASH, BEARER CARD and ₿ are outlined Inter glyph paths; the bundled
Sora fonts and those glyphs are credited in THIRD_PARTY_NOTICES.md. The
shared file keeps flash-pos's Prettier style through a self-contained
override. New i18n key FlashcardV2.cardEnding; translations regenerated.
Rebased onto main after #748-#754; the branch's own copy of #748's
action-row move was dropped in favour of main's.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
* feat(flashcard): draw the Bearer card as the home row's thumbnail
The home screen's Cashu card row used the BoltCard's flag icon. It now shows
the Flashcard v2 art (FlashcardV2Art) at the icon's width, without the card
screen's drop shadow, and hidden from screen readers: the row's title and
amount already say what it is. `Balance` takes an optional `iconNode` to
draw in place of its icon; the BoltCard row keeps its icon.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Dread <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
This removes the Breez SDK - Liquid from the app, along with the one feature that used it: moving a phone's old Liquid balance to Spark at launch.
Breez has retired the Liquid SDK, and its GitHub repos now return 404. CocoaPods can no longer download
BreezSDKLiquidorbreez_sdk_liquidFFI, so every fresh iOSpod installfails. That has turned the iOS Build Check red on every PR since 4 October. #753 tried a mirror of the pods; this PR replaces it by removing the dependency.What changes
app/utils/breez-sdk/migration.ts) and its popup (app/components/spark-migration-modal/);app/utils/breez-sdk-liquid/);spark-migration.md). This PR carries out its cleanup list, apart from the init guard (kept, see below) and two steps outside the code: the.envkey (see Ops) and launching the app (see Before release);BreezProvider: no longer runs the migration after Spark starts. Its init guard stays, because it also stops overlapping starts.sparkMigrationCompletedfrom the persisted-state type and from wallet import, andMIGRATION_FEE_LNURL_Wfrom the env declaration and its test mock. Phones that saved the flag keep it, unused.@breeztech/react-native-breez-sdk-liquidis gone.yarn.lockandPodfile.locklose only its entries; the three Liquid pods take the total from 151 to 148. Also removed: two app header search paths pointing at its pod.app/imports it.For anyone who never migrated
The app no longer sees or moves an old Liquid balance. Migration status is stored only on the phone, so we can't count who is left. Their coins stay under the recovery phrase that the Liquid and Spark wallets share, and support can recover them by importing that phrase into a Liquid wallet. That works only while the phrase exists.
The app can delete the phrase before anyone backs it up. It keeps the phrase on the phone and deletes it, without checking
backedUpBtcWallet, on logout, on the automatic logout after three wrong PINs, on account deletion, and when another phrase is imported. Until now, an advanced-mode launch tried to move the old balance and, when the move failed, showed it in an error ("Your liquid wallet balance is N sats"). After this PR nothing in the app mentions the Liquid balance. A user whose coins sit in Liquid sees only their Spark balance, which may be 0, and has no reason to back up. If they log out before backing up, those coins are lost.A one-time "back up your phrase or contact support" notice would close this gap. Whether to add one is a product call for a separate PR. To reach everyone below, it belongs where the migration used to run: after Spark starts in
getBreezInfo, keyed on the same savedsparkMigrationCompletedflag, with Import Wallet resetting the flag as it used to.Also affected: a Liquid-era phrase brought to any phone by Import Wallet or QR sign-in. Both used to start the migration and now show only the Spark balance. Import Wallet set
sparkMigrationCompletedtofalse, so the app ran the migration on the imported phrase. QR sign-in, offered only on the login screen, writes the phrase and turns on advanced mode, and on a phone with no saved flag, such as a fresh install or one that has logged out, the missing flag started the migration. A user who moves phones by QR sign-in and then resets the old phone keeps the only copy of the phrase on the new one, where the deletion paths above apply.An iOS reinstall likely does the same. iOS normally keeps Keychain items after an app is deleted, nothing in the app clears the saved phrase on a fresh install, and "Show Bitcoin account" in settings turns on advanced mode with any saved phrase, on a phone that now has no saved flag. That comes from reading the code; it wasn't tried on a phone.
Also affected: upgraders who hid the Bitcoin account. The migration ran only in advanced mode, and "Hide Bitcoin account" keeps the phrase. These users never ran the migration and never saw their Liquid balance in an error. Showing the account again used to start the migration; now it shows only the Spark balance.
A 7→8 step in
state-migrations.tskeyed onisAdvanceMode && sparkMigrationCompleted !== truewould reach none of these. It skips upgraders who hid the Bitcoin account. That step runs once, when the upgraded app first loads its saved state, before the user can do any of the above, and a fresh install has no saved state for it to run on.Verified
yarn tsc:checkis clean. The full Jest suite passed before the new spec was added: 158 suites, 1,855 tests. Lint (changed lines), prettier on the new and edited code, typos andcheck:translationsare all clean. Prettier still flagsREADME.mdand__mocks__/@env.js, as it did on main; they weren't reformatted here.__tests__/contexts/breez-provider.spec.tsx: a phone that never finished the migration starts the BTC wallet like any other. That means:pod installran against the updated lockfiles and removed exactly the three Liquid pods. Before that,jetifyandpatch-packagewere re-run:yarn remove --ignore-scriptshad dropped the Geetest patch, which briefly changed an unrelated pod.project.pbxprojandPodfile.lockedits build. The built app has 0 matches for the Breez Liquid SDK's symbol names and 3,236 for the Spark SDK's, which shows the search finds SDK symbols. The app was not launched.Not verified
xcodebuildintoxcprettywithoutpipefail. Since at least 25 September, main's runs have logged** BUILD FAILED **at the Hermes "Replace Hermes" script phase and still passed. This PR's first run did the same: job 111561718120 installed 148 pods, failed at that phase and passed. Addingpipefailhere would turn this PR red on a failure main already has, soset -o pipefailand the Hermes fix belong together in a separate PR.Before merge
assembleDebugbuilt the app and uploaded the debug APK.Before release
{isAdvanceMode: true, sparkMigrationCompleted: false}, and record the result under Verified.Ops
MIGRATION_FEE_LNURL_Wis the LNURL-withdraw link the migration used to refund swap fees, and this PR removes its last use. Disable or empty it on the server, and remove the key from theDOT_ENVsecret, whichandroid-deploy.yml,ios-deploy.ymlandios-alt-deploy.ymlwrite to.env. Installed builds don't need it to finish a migration: a failed refund still marks the migration complete and shows a "contact support" message for the fee.Rollback
Revert this PR. The pods can then come from the mirror in #753's branch (
jabariennis/ios-breez-liquid-pod-mirror) andlnflash/breez-sdk-liquid-swift, both kept for that purpose.🤖 Generated with Claude Code