Update flutter_rust_bridge to version 2.9.0 (#789)

chore: update dependencies to latest resolvable on Dart/Flutter packages
This commit is contained in:
Erdem Yerebasmaz
2025-03-19 13:42:15 +03:00
committed by GitHub
parent 573a345801
commit 6d5aa3fc82
18 changed files with 5297 additions and 7287 deletions

8
cli/Cargo.lock generated
View File

@@ -1459,9 +1459,9 @@ dependencies = [
[[package]] [[package]]
name = "flutter_rust_bridge" name = "flutter_rust_bridge"
version = "2.8.0" version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdc62f583dff79c7ea34b775b2cc4158adc17cb69ad4c1d276be7fe95c63d597" checksum = "2f8c0dee6249225e815dcff3f3a39b98d9f66fdb3c392a432715b646bfa4da02"
dependencies = [ dependencies = [
"allo-isolate", "allo-isolate",
"android_logger", "android_logger",
@@ -1489,9 +1489,9 @@ dependencies = [
[[package]] [[package]]
name = "flutter_rust_bridge_macros" name = "flutter_rust_bridge_macros"
version = "2.8.0" version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac75354933904c334c13a7c9e08c65be528f0820ab587e03f255203a28d5efec" checksum = "8e88d604908d9eccb4ca9c26640ce41033165cbef041460e704ae28bd5208bce"
dependencies = [ dependencies = [
"hex", "hex",
"md-5", "md-5",

8
lib/Cargo.lock generated
View File

@@ -1631,9 +1631,9 @@ dependencies = [
[[package]] [[package]]
name = "flutter_rust_bridge" name = "flutter_rust_bridge"
version = "2.8.0" version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdc62f583dff79c7ea34b775b2cc4158adc17cb69ad4c1d276be7fe95c63d597" checksum = "2f8c0dee6249225e815dcff3f3a39b98d9f66fdb3c392a432715b646bfa4da02"
dependencies = [ dependencies = [
"allo-isolate", "allo-isolate",
"android_logger", "android_logger",
@@ -1661,9 +1661,9 @@ dependencies = [
[[package]] [[package]]
name = "flutter_rust_bridge_macros" name = "flutter_rust_bridge_macros"
version = "2.8.0" version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac75354933904c334c13a7c9e08c65be528f0820ab587e03f255203a28d5efec" checksum = "8e88d604908d9eccb4ca9c26640ce41033165cbef041460e704ae28bd5208bce"
dependencies = [ dependencies = [
"hex", "hex",
"md-5", "md-5",

View File

@@ -22,7 +22,7 @@ clean:
# Install flutter_rust_bridge_codegen dependencies # Install flutter_rust_bridge_codegen dependencies
frb: frb:
cargo install cargo-expand cargo install cargo-expand
cargo install flutter_rust_bridge_codegen --version 2.8.0 cargo install flutter_rust_bridge_codegen --version 2.9.0
dart pub global activate ffigen dart pub global activate ffigen
dart pub global activate ffi dart pub global activate ffi
cargo install cargo-xcode cargo install cargo-xcode

View File

@@ -24,7 +24,7 @@ boltz-client = { git = "https://github.com/SatoshiPortal/boltz-rust", rev = "f78
chrono = "0.4" chrono = "0.4"
derivative = "2.2.0" derivative = "2.2.0"
env_logger = "0.11" env_logger = "0.11"
flutter_rust_bridge = { version = "=2.8.0", features = [ flutter_rust_bridge = { version = "=2.9.0", features = [
"chrono", "chrono",
], optional = true } ], optional = true }
log = { workspace = true } log = { workspace = true }

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
#![allow( #![allow(
non_camel_case_types, non_camel_case_types,
@@ -38,7 +38,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
default_rust_opaque = RustOpaqueNom, default_rust_opaque = RustOpaqueNom,
default_rust_auto_opaque = RustAutoOpaqueNom, default_rust_auto_opaque = RustAutoOpaqueNom,
); );
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.8.0"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.9.0";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1264782025; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1264782025;
// Section: executor // Section: executor
@@ -9252,7 +9252,7 @@ impl SseEncode for crate::model::WalletInfo {
#[cfg(not(target_family = "wasm"))] #[cfg(not(target_family = "wasm"))]
mod io { mod io {
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// Section: imports // Section: imports

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
@@ -50,7 +50,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig; ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig;
@override @override
String get codegenVersion => '2.8.0'; String get codegenVersion => '2.9.0';
@override @override
int get rustContentHash => 1264782025; int get rustContentHash => 1264782025;

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.8.0. // @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import

File diff suppressed because it is too large Load Diff

View File

@@ -11,19 +11,19 @@ platforms:
macos: macos:
environment: environment:
sdk: '>=3.7.0 <4.0.0' sdk: '>=3.7.0 <4.0.0' # ffi: 2.1.4 requires Dart 3.7.0 or greater
dev_dependencies: dev_dependencies:
build_runner: ^2.4.14 build_runner: ^2.4.15
ffigen: ">=8.0.0 <=17.0.0" ffigen: ^18.0.0
freezed: ^2.5.8 freezed: ^3.0.4
lints: ">=2.0.0 <=5.1.1" lints: ^5.1.1
path: ^1.9.1 path: ^1.9.1
test: ^1.25.15 test: ^1.25.15
dependencies: dependencies:
ffi: ^2.1.4 ffi: ^2.1.4
flutter_rust_bridge: ">=2.4.0 <=2.8.0" flutter_rust_bridge: ">=2.4.0 <=2.9.0"
freezed_annotation: ^2.4.4 freezed_annotation: ^3.0.0
logging: ^1.3.0 logging: ^1.3.0
meta: ^1.12.0 # meta is pinned to version 1.12.0 by integration_test from the flutter SDK. meta: ^1.16.0

View File

@@ -4113,6 +4113,9 @@ class FlutterBreezLiquidBindings {
final class DartCObject extends ffi.Opaque {} final class DartCObject extends ffi.Opaque {}
/// EXTRA BEGIN
typedef WireSyncRust2DartDco = ffi.Pointer<DartCObject>;
final class WireSyncRust2DartSse extends ffi.Struct { final class WireSyncRust2DartSse extends ffi.Struct {
external ffi.Pointer<ffi.Uint8> ptr; external ffi.Pointer<ffi.Uint8> ptr;
@@ -4120,12 +4123,12 @@ final class WireSyncRust2DartSse extends ffi.Struct {
external int len; external int len;
} }
typedef DartPostCObjectFnType = ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>; typedef DartPort = ffi.Int64;
typedef DartDartPort = int;
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(DartPort port_id, ffi.Pointer<ffi.Void> message); typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(DartPort port_id, ffi.Pointer<ffi.Void> message);
typedef DartDartPostCObjectFnTypeFunction = bool Function( typedef DartDartPostCObjectFnTypeFunction = bool Function(
DartDartPort port_id, ffi.Pointer<ffi.Void> message); DartDartPort port_id, ffi.Pointer<ffi.Void> message);
typedef DartPort = ffi.Int64; typedef DartPostCObjectFnType = ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
typedef DartDartPort = int;
final class _Dart_Handle extends ffi.Opaque {} final class _Dart_Handle extends ffi.Opaque {}
@@ -5701,9 +5704,6 @@ final class wire_cst_sign_message_response extends ffi.Struct {
external ffi.Pointer<wire_cst_list_prim_u_8_strict> signature; external ffi.Pointer<wire_cst_list_prim_u_8_strict> signature;
} }
/// EXTRA BEGIN
typedef WireSyncRust2DartDco = ffi.Pointer<DartCObject>;
/// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️ /// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
/// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️ /// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
final class RustBuffer extends ffi.Struct { final class RustBuffer extends ffi.Struct {
@@ -5731,6 +5731,17 @@ final class RustCallStatus extends ffi.Struct {
external RustBuffer errorBuf; external RustBuffer errorBuf;
} }
typedef UniffiRustFutureContinuationCallbackFunction = ffi.Void Function(ffi.Uint64, ffi.Int8);
typedef DartUniffiRustFutureContinuationCallbackFunction = void Function(int, int);
typedef UniffiRustFutureContinuationCallback
= ffi.Pointer<ffi.NativeFunction<UniffiRustFutureContinuationCallbackFunction>>;
typedef UniffiForeignFutureFreeFunction = ffi.Void Function(ffi.Uint64);
typedef DartUniffiForeignFutureFreeFunction = void Function(int);
typedef UniffiForeignFutureFree = ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureFreeFunction>>;
typedef UniffiCallbackInterfaceFreeFunction = ffi.Void Function(ffi.Uint64);
typedef DartUniffiCallbackInterfaceFreeFunction = void Function(int);
typedef UniffiCallbackInterfaceFree = ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceFreeFunction>>;
final class UniffiForeignFuture extends ffi.Struct { final class UniffiForeignFuture extends ffi.Struct {
@ffi.Uint64() @ffi.Uint64()
external int handle; external int handle;
@@ -5738,10 +5749,6 @@ final class UniffiForeignFuture extends ffi.Struct {
external UniffiForeignFutureFree free; external UniffiForeignFutureFree free;
} }
typedef UniffiForeignFutureFree = ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureFreeFunction>>;
typedef UniffiForeignFutureFreeFunction = ffi.Void Function(ffi.Uint64);
typedef DartUniffiForeignFutureFreeFunction = void Function(int);
final class UniffiForeignFutureStructU8 extends ffi.Struct { final class UniffiForeignFutureStructU8 extends ffi.Struct {
@ffi.Uint8() @ffi.Uint8()
external int returnValue; external int returnValue;
@@ -5749,6 +5756,11 @@ final class UniffiForeignFutureStructU8 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteU8Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructU8);
typedef DartUniffiForeignFutureCompleteU8Function = void Function(int, UniffiForeignFutureStructU8);
typedef UniffiForeignFutureCompleteU8
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteU8Function>>;
final class UniffiForeignFutureStructI8 extends ffi.Struct { final class UniffiForeignFutureStructI8 extends ffi.Struct {
@ffi.Int8() @ffi.Int8()
external int returnValue; external int returnValue;
@@ -5756,6 +5768,11 @@ final class UniffiForeignFutureStructI8 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteI8Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructI8);
typedef DartUniffiForeignFutureCompleteI8Function = void Function(int, UniffiForeignFutureStructI8);
typedef UniffiForeignFutureCompleteI8
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteI8Function>>;
final class UniffiForeignFutureStructU16 extends ffi.Struct { final class UniffiForeignFutureStructU16 extends ffi.Struct {
@ffi.Uint16() @ffi.Uint16()
external int returnValue; external int returnValue;
@@ -5763,6 +5780,11 @@ final class UniffiForeignFutureStructU16 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteU16Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructU16);
typedef DartUniffiForeignFutureCompleteU16Function = void Function(int, UniffiForeignFutureStructU16);
typedef UniffiForeignFutureCompleteU16
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteU16Function>>;
final class UniffiForeignFutureStructI16 extends ffi.Struct { final class UniffiForeignFutureStructI16 extends ffi.Struct {
@ffi.Int16() @ffi.Int16()
external int returnValue; external int returnValue;
@@ -5770,6 +5792,11 @@ final class UniffiForeignFutureStructI16 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteI16Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructI16);
typedef DartUniffiForeignFutureCompleteI16Function = void Function(int, UniffiForeignFutureStructI16);
typedef UniffiForeignFutureCompleteI16
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteI16Function>>;
final class UniffiForeignFutureStructU32 extends ffi.Struct { final class UniffiForeignFutureStructU32 extends ffi.Struct {
@ffi.Uint32() @ffi.Uint32()
external int returnValue; external int returnValue;
@@ -5777,6 +5804,11 @@ final class UniffiForeignFutureStructU32 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteU32Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructU32);
typedef DartUniffiForeignFutureCompleteU32Function = void Function(int, UniffiForeignFutureStructU32);
typedef UniffiForeignFutureCompleteU32
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteU32Function>>;
final class UniffiForeignFutureStructI32 extends ffi.Struct { final class UniffiForeignFutureStructI32 extends ffi.Struct {
@ffi.Int32() @ffi.Int32()
external int returnValue; external int returnValue;
@@ -5784,6 +5816,11 @@ final class UniffiForeignFutureStructI32 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteI32Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructI32);
typedef DartUniffiForeignFutureCompleteI32Function = void Function(int, UniffiForeignFutureStructI32);
typedef UniffiForeignFutureCompleteI32
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteI32Function>>;
final class UniffiForeignFutureStructU64 extends ffi.Struct { final class UniffiForeignFutureStructU64 extends ffi.Struct {
@ffi.Uint64() @ffi.Uint64()
external int returnValue; external int returnValue;
@@ -5791,6 +5828,11 @@ final class UniffiForeignFutureStructU64 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteU64Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructU64);
typedef DartUniffiForeignFutureCompleteU64Function = void Function(int, UniffiForeignFutureStructU64);
typedef UniffiForeignFutureCompleteU64
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteU64Function>>;
final class UniffiForeignFutureStructI64 extends ffi.Struct { final class UniffiForeignFutureStructI64 extends ffi.Struct {
@ffi.Int64() @ffi.Int64()
external int returnValue; external int returnValue;
@@ -5798,6 +5840,11 @@ final class UniffiForeignFutureStructI64 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteI64Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructI64);
typedef DartUniffiForeignFutureCompleteI64Function = void Function(int, UniffiForeignFutureStructI64);
typedef UniffiForeignFutureCompleteI64
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteI64Function>>;
final class UniffiForeignFutureStructF32 extends ffi.Struct { final class UniffiForeignFutureStructF32 extends ffi.Struct {
@ffi.Float() @ffi.Float()
external double returnValue; external double returnValue;
@@ -5805,6 +5852,11 @@ final class UniffiForeignFutureStructF32 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteF32Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructF32);
typedef DartUniffiForeignFutureCompleteF32Function = void Function(int, UniffiForeignFutureStructF32);
typedef UniffiForeignFutureCompleteF32
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteF32Function>>;
final class UniffiForeignFutureStructF64 extends ffi.Struct { final class UniffiForeignFutureStructF64 extends ffi.Struct {
@ffi.Double() @ffi.Double()
external double returnValue; external double returnValue;
@@ -5812,51 +5864,118 @@ final class UniffiForeignFutureStructF64 extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteF64Function = ffi.Void Function(ffi.Uint64, UniffiForeignFutureStructF64);
typedef DartUniffiForeignFutureCompleteF64Function = void Function(int, UniffiForeignFutureStructF64);
typedef UniffiForeignFutureCompleteF64
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteF64Function>>;
final class UniffiForeignFutureStructPointer extends ffi.Struct { final class UniffiForeignFutureStructPointer extends ffi.Struct {
external ffi.Pointer<ffi.Void> returnValue; external ffi.Pointer<ffi.Void> returnValue;
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompletePointerFunction = ffi.Void Function(
ffi.Uint64, UniffiForeignFutureStructPointer);
typedef DartUniffiForeignFutureCompletePointerFunction = void Function(int, UniffiForeignFutureStructPointer);
typedef UniffiForeignFutureCompletePointer
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompletePointerFunction>>;
final class UniffiForeignFutureStructRustBuffer extends ffi.Struct { final class UniffiForeignFutureStructRustBuffer extends ffi.Struct {
external RustBuffer returnValue; external RustBuffer returnValue;
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteRustBufferFunction = ffi.Void Function(
ffi.Uint64, UniffiForeignFutureStructRustBuffer);
typedef DartUniffiForeignFutureCompleteRustBufferFunction = void Function(
int, UniffiForeignFutureStructRustBuffer);
typedef UniffiForeignFutureCompleteRustBuffer
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteRustBufferFunction>>;
final class UniffiForeignFutureStructVoid extends ffi.Struct { final class UniffiForeignFutureStructVoid extends ffi.Struct {
external RustCallStatus callStatus; external RustCallStatus callStatus;
} }
typedef UniffiForeignFutureCompleteVoidFunction = ffi.Void Function(
ffi.Uint64, UniffiForeignFutureStructVoid);
typedef DartUniffiForeignFutureCompleteVoidFunction = void Function(int, UniffiForeignFutureStructVoid);
typedef UniffiForeignFutureCompleteVoid
= ffi.Pointer<ffi.NativeFunction<UniffiForeignFutureCompleteVoidFunction>>;
typedef UniffiCallbackInterfaceEventListenerMethod0Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<ffi.Void>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceEventListenerMethod0Function = void Function(
int, RustBuffer, ffi.Pointer<ffi.Void>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceEventListenerMethod0
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceEventListenerMethod0Function>>;
typedef UniffiCallbackInterfaceLoggerMethod0Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<ffi.Void>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceLoggerMethod0Function = void Function(
int, RustBuffer, ffi.Pointer<ffi.Void>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceLoggerMethod0
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceLoggerMethod0Function>>;
typedef UniffiCallbackInterfaceSignerMethod0Function = ffi.Void Function(
ffi.Uint64, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod0Function = void Function(
int, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod0
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod0Function>>;
typedef UniffiCallbackInterfaceSignerMethod1Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod1Function = void Function(
int, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod1
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod1Function>>;
typedef UniffiCallbackInterfaceSignerMethod2Function = ffi.Void Function(
ffi.Uint64, RustBuffer, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod2Function = void Function(
int, RustBuffer, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod2
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod2Function>>;
typedef UniffiCallbackInterfaceSignerMethod3Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod3Function = void Function(
int, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod3
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod3Function>>;
typedef UniffiCallbackInterfaceSignerMethod4Function = ffi.Void Function(
ffi.Uint64, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod4Function = void Function(
int, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod4
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod4Function>>;
typedef UniffiCallbackInterfaceSignerMethod5Function = ffi.Void Function(
ffi.Uint64, RustBuffer, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod5Function = void Function(
int, RustBuffer, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod5
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod5Function>>;
typedef UniffiCallbackInterfaceSignerMethod6Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod6Function = void Function(
int, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod6
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod6Function>>;
typedef UniffiCallbackInterfaceSignerMethod7Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod7Function = void Function(
int, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod7
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod7Function>>;
final class UniffiVTableCallbackInterfaceEventListener extends ffi.Struct { final class UniffiVTableCallbackInterfaceEventListener extends ffi.Struct {
external UniffiCallbackInterfaceEventListenerMethod0 onEvent; external UniffiCallbackInterfaceEventListenerMethod0 onEvent;
external UniffiCallbackInterfaceFree uniffiFree; external UniffiCallbackInterfaceFree uniffiFree;
} }
typedef UniffiCallbackInterfaceEventListenerMethod0
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceEventListenerMethod0Function>>;
typedef UniffiCallbackInterfaceEventListenerMethod0Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<ffi.Void>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceEventListenerMethod0Function = void Function(
int, RustBuffer, ffi.Pointer<ffi.Void>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceFree = ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceFreeFunction>>;
typedef UniffiCallbackInterfaceFreeFunction = ffi.Void Function(ffi.Uint64);
typedef DartUniffiCallbackInterfaceFreeFunction = void Function(int);
final class UniffiVTableCallbackInterfaceLogger extends ffi.Struct { final class UniffiVTableCallbackInterfaceLogger extends ffi.Struct {
external UniffiCallbackInterfaceLoggerMethod0 log; external UniffiCallbackInterfaceLoggerMethod0 log;
external UniffiCallbackInterfaceFree uniffiFree; external UniffiCallbackInterfaceFree uniffiFree;
} }
typedef UniffiCallbackInterfaceLoggerMethod0
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceLoggerMethod0Function>>;
typedef UniffiCallbackInterfaceLoggerMethod0Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<ffi.Void>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceLoggerMethod0Function = void Function(
int, RustBuffer, ffi.Pointer<ffi.Void>, ffi.Pointer<RustCallStatus>);
final class UniffiVTableCallbackInterfaceSigner extends ffi.Struct { final class UniffiVTableCallbackInterfaceSigner extends ffi.Struct {
external UniffiCallbackInterfaceSignerMethod0 xpub; external UniffiCallbackInterfaceSignerMethod0 xpub;
@@ -5877,59 +5996,6 @@ final class UniffiVTableCallbackInterfaceSigner extends ffi.Struct {
external UniffiCallbackInterfaceFree uniffiFree; external UniffiCallbackInterfaceFree uniffiFree;
} }
typedef UniffiCallbackInterfaceSignerMethod0
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod0Function>>;
typedef UniffiCallbackInterfaceSignerMethod0Function = ffi.Void Function(
ffi.Uint64, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod0Function = void Function(
int, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod1
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod1Function>>;
typedef UniffiCallbackInterfaceSignerMethod1Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod1Function = void Function(
int, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod2
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod2Function>>;
typedef UniffiCallbackInterfaceSignerMethod2Function = ffi.Void Function(
ffi.Uint64, RustBuffer, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod2Function = void Function(
int, RustBuffer, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod3
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod3Function>>;
typedef UniffiCallbackInterfaceSignerMethod3Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod3Function = void Function(
int, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod4
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod4Function>>;
typedef UniffiCallbackInterfaceSignerMethod4Function = ffi.Void Function(
ffi.Uint64, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod4Function = void Function(
int, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod5
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod5Function>>;
typedef UniffiCallbackInterfaceSignerMethod5Function = ffi.Void Function(
ffi.Uint64, RustBuffer, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod5Function = void Function(
int, RustBuffer, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod6
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod6Function>>;
typedef UniffiCallbackInterfaceSignerMethod6Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod6Function = void Function(
int, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiCallbackInterfaceSignerMethod7
= ffi.Pointer<ffi.NativeFunction<UniffiCallbackInterfaceSignerMethod7Function>>;
typedef UniffiCallbackInterfaceSignerMethod7Function = ffi.Void Function(
ffi.Uint64, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef DartUniffiCallbackInterfaceSignerMethod7Function = void Function(
int, RustBuffer, ffi.Pointer<RustBuffer>, ffi.Pointer<RustCallStatus>);
typedef UniffiRustFutureContinuationCallback
= ffi.Pointer<ffi.NativeFunction<UniffiRustFutureContinuationCallbackFunction>>;
typedef UniffiRustFutureContinuationCallbackFunction = ffi.Void Function(ffi.Uint64, ffi.Int8);
typedef DartUniffiRustFutureContinuationCallbackFunction = void Function(int, int);
const int ESTIMATED_BTC_CLAIM_TX_VSIZE = 111; const int ESTIMATED_BTC_CLAIM_TX_VSIZE = 111;
const int ESTIMATED_BTC_LOCKUP_TX_VSIZE = 154; const int ESTIMATED_BTC_LOCKUP_TX_VSIZE = 154;

View File

@@ -6,8 +6,8 @@ repository: https://github.com/breez/breez-sdk-liquid-flutter
publish_to: 'none' publish_to: 'none'
environment: environment:
sdk: '>=3.4.0 <4.0.0' sdk: '>=3.6.0 <4.0.0'
flutter: ">=3.24.0" flutter: ">=3.27.0"
dependencies: dependencies:
flutter: flutter:
@@ -15,7 +15,7 @@ dependencies:
breez_liquid: breez_liquid:
git: git:
url: https://github.com/breez/breez-sdk-liquid-dart url: https://github.com/breez/breez-sdk-liquid-dart
ffigen: ">=8.0.0 <=11.0.0" ffigen: ^18.0.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
@@ -24,23 +24,7 @@ dev_dependencies:
sdk: flutter sdk: flutter
flutter_lints: ^5.0.0 flutter_lints: ^5.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter: flutter:
# This section identifies this Flutter project as a plugin project.
# The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.)
# which should be registered in the plugin registry. This is required for
# using method channels.
# The Android 'package' specifies package in which the registered class is.
# This is required for using method channels on Android.
# The 'ffiPlugin' specifies that native code should be built and bundled.
# This is required for using `dart:ffi`.
# All these are used by the tooling to maintain consistency when
# adding or updating assets for this project.
#
# Please refer to README.md for a detailed explanation.
plugin: plugin:
platforms: platforms:
android: android:
@@ -52,34 +36,3 @@ flutter:
ffiPlugin: true ffiPlugin: true
macos: macos:
ffiPlugin: true ffiPlugin: true
# To add assets to your plugin package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.dev/assets-and-images/#from-packages
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# To add custom fonts to your plugin package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts in packages, see
# https://flutter.dev/custom-fonts/#from-packages