Skip to content

Update Breez SDK Spark to 0.26.1 - #1116

Merged
AleksandarIlic merged 2 commits into
mainfrom
feature/update-breez-sdk-to-0.26.1
Oct 16, 2026
Merged

AleksandarIlic merged 2 commits into
mainfrom
feature/update-breez-sdk-to-0.26.1

Conversation

@akurcubic

@akurcubic akurcubic commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Update Breez SDK Spark to 0.26.1

Bumps technology.breez.spark:breez-sdk-spark-kmp from 0.23.1 to 0.26.1.

Changes

  • gradle/libs.versions.toml: breez-spark-kmp-sdk set to 0.26.1. The iOS breez_sdk_sparkFFI.xcframework download in
    shared/build.gradle.kts derives its version from this entry, so it updates automatically.
  • SparkWalletManagerImpl.kt: handles the new SdkEvent.PaymentMetadataUpdated variant, logging only. SdkEvent is sealed and
    our when has no else, so this branch is required to compile. The event only carries cross-chain receive metadata, and we don't
    enable cross-chain (no crossChainConfig).

Decision already made: early deposit claims

In 0.26.1 the SDK removed Config.maxInstantDepositClaimFeeBps. maxDepositClaimFee now caps both the normal claim at maturity
and the provider's spread for crediting a deposit early, before confirmations.

  • Before: we never set maxInstantDepositClaimFeeBps. It was opt-in, so early claims were off and deposits waited for
    confirmations.
  • Now: our existing maxDepositClaimFee = MaxFee.Fixed(50_000) in BreezSdkInstanceManager.kt also allows automatic early
    claims when the provider's spread is 50,000 sats or less per deposit, without asking the user.
  • Decision: ship with the config unchanged.

Other SDK changes reviewed, no action needed

  • API: all SDK types and functions we use are unchanged: Config fields we set, Payment, PaymentDetails, PaymentStatus,
    listPayments, send/receive requests, LNURL. Changed or removed APIs (ClaimDepositResponse.outcome, getSparkStatus signature,
    ConfirmationStatus, SourceAsset, SourceChain) are not used by the app.
  • New SdkException variants: cross-chain only. They fall into the existing else in toWalletException.
  • SendOnchainFeeQuote.isEstimate: only set when a stable-token conversion funds the send. We don't configure
    stableBalanceConfig.
  • Storage: the SDK's SQLite migrations only add columns and tables, so existing wallets upgrade cleanly. Downgrading to 0.23.1
    on an upgraded wallet DB is not supported.
  • Android native libs: same 4 ABIs. 16KB page alignment is unchanged (arm64-v8a and x86_64 at 16KB). libc++_shared.so is no
    longer bundled, and it was never a dynamic dependency. .so files are about 35% smaller. The AAR minSdk is 24, and ours is 26.
  • Transitive dependencies: identical between 0.23.1 and 0.26.1, and all below our pinned versions.

Verification

  • :data:wallet:repository compiles for Android and iOS simulator arm64 with no new warnings.
  • :shared:linkDebugFrameworkIosSimulatorArm64 links against the 0.26.1 xcframework.
  • testAndroidHostTest: 65 tests, 0 failures. There are no iOS test sources, and no unit tests cover

@AleksandarIlic
AleksandarIlic self-requested a review October 16, 2026 10:26
@AleksandarIlic
AleksandarIlic merged commit be075a4 into main Oct 16, 2026
4 checks passed
@AleksandarIlic
AleksandarIlic deleted the feature/update-breez-sdk-to-0.26.1 branch October 16, 2026 10:27
@josep-nodo

Copy link
Copy Markdown

Update Breez SDK Spark to 0.26.1

Bumps technology.breez.spark:breez-sdk-spark-kmp from 0.23.1 to 0.26.1.

Changes

  • gradle/libs.versions.toml: breez-spark-kmp-sdk set to 0.26.1. The iOS breez_sdk_sparkFFI.xcframework download in
    shared/build.gradle.kts derives its version from this entry, so it updates automatically.
  • SparkWalletManagerImpl.kt: handles the new SdkEvent.PaymentMetadataUpdated variant, logging only. SdkEvent is sealed and
    our when has no else, so this branch is required to compile. The event only carries cross-chain receive metadata, and we don't
    enable cross-chain (no crossChainConfig).

Decision already made: early deposit claims

In 0.26.1 the SDK removed Config.maxInstantDepositClaimFeeBps. maxDepositClaimFee now caps both the normal claim at maturity
and the provider's spread for crediting a deposit early, before confirmations.

  • Before: we never set maxInstantDepositClaimFeeBps. It was opt-in, so early claims were off and deposits waited for
    confirmations.
  • Now: our existing maxDepositClaimFee = MaxFee.Fixed(50_000) in BreezSdkInstanceManager.kt also allows automatic early
    claims when the provider's spread is 50,000 sats or less per deposit, without asking the user.
  • Decision: ship with the config unchanged.

Other SDK changes reviewed, no action needed

  • API: all SDK types and functions we use are unchanged: Config fields we set, Payment, PaymentDetails, PaymentStatus,
    listPayments, send/receive requests, LNURL. Changed or removed APIs (ClaimDepositResponse.outcome, getSparkStatus signature,
    ConfirmationStatus, SourceAsset, SourceChain) are not used by the app.
  • New SdkException variants: cross-chain only. They fall into the existing else in toWalletException.
  • SendOnchainFeeQuote.isEstimate: only set when a stable-token conversion funds the send. We don't configure
    stableBalanceConfig.
  • Storage: the SDK's SQLite migrations only add columns and tables, so existing wallets upgrade cleanly. Downgrading to 0.23.1
    on an upgraded wallet DB is not supported.
  • Android native libs: same 4 ABIs. 16KB page alignment is unchanged (arm64-v8a and x86_64 at 16KB). libc++_shared.so is no
    longer bundled, and it was never a dynamic dependency. .so files are about 35% smaller. The AAR minSdk is 24, and ours is 26.
  • Transitive dependencies: identical between 0.23.1 and 0.26.1, and all below our pinned versions.

Verification

  • :data:wallet:repository compiles for Android and iOS simulator arm64 with no new warnings.
  • :shared:linkDebugFrameworkIosSimulatorArm64 links against the 0.26.1 xcframework.
  • testAndroidHostTest: 65 tests, 0 failures. There are no iOS test sources, and no unit tests cover

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants