Skip to content

Commit

Permalink
Bump flutter_rust_bridge to 2.2.0
Browse files Browse the repository at this point in the history
sync API on bindings had caused a regression with 2.1.0 changes: fzyzcjy/flutter_rust_bridge#2194

which is now resolved with 2.2.0.
  • Loading branch information
erdemyerebasmaz committed Aug 12, 2024
1 parent 852b712 commit ae28023
Show file tree
Hide file tree
Showing 15 changed files with 4,166 additions and 29 deletions.
8 changes: 4 additions & 4 deletions cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions lib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/bindings/langs/flutter/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bootstrap frb='true' build='false':
# Install flutter_rust_bridge_codegen dependencies
frb:
cargo install cargo-expand
cargo install flutter_rust_bridge_codegen --version 2.0.0
cargo install flutter_rust_bridge_codegen --version 2.2.0
dart pub global activate ffigen
dart pub global activate ffi
cargo install cargo-xcode
Expand Down
2 changes: 1 addition & 1 deletion lib/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bip39 = "2.0.0"
boltz-client = { git = "https://github.com/dangeross/boltz-rust", branch = "savage-breez-latest" }
chrono = "0.4"
env_logger = "0.11"
flutter_rust_bridge = { version = "=2.0.0", features = ["chrono"], optional = true }
flutter_rust_bridge = { version = "=2.2.0", features = ["chrono"], optional = true }
log = { workspace = true }
lwk_common = "0.7.0"
lwk_signer = "0.7.0"
Expand Down
1 change: 1 addition & 0 deletions lib/core/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ impl BindingLiquidSdk {
self.sdk.rescan_onchain_swaps().await
}

#[frb(name = "sync")]
pub async fn sync(&self) -> Result<(), SdkError> {
self.sdk.sync().await.map_err(Into::into)
}
Expand Down
Loading

0 comments on commit ae28023

Please sign in to comment.