Skip to content

Commit

Permalink
Add swift framework plists (#536)
Browse files Browse the repository at this point in the history
* Add a Info.plist per framework

* Update dart bindings
  • Loading branch information
dangeross authored Oct 24, 2024
1 parent 4149db2 commit b78d53b
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ void uniffi_breez_sdk_liquid_bindings_fn_init_callback_eventlistener(ForeignCall
);
void uniffi_breez_sdk_liquid_bindings_fn_init_callback_logger(ForeignCallback _Nonnull callback_stub, RustCallStatus *_Nonnull out_status
);
void uniffi_breez_sdk_liquid_bindings_fn_init_callback_signer(ForeignCallback _Nonnull callback_stub, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_breez_sdk_liquid_bindings_fn_func_connect(RustBuffer req, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_breez_sdk_liquid_bindings_fn_func_connect_with_signer(RustBuffer req, uint64_t signer, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_breez_sdk_liquid_bindings_fn_func_default_config(RustBuffer network, RustBuffer breez_api_key, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_breez_sdk_liquid_bindings_fn_func_parse(RustBuffer input, RustCallStatus *_Nonnull out_status
Expand Down Expand Up @@ -263,6 +267,9 @@ void ffi_breez_sdk_liquid_bindings_rust_future_complete_void(void* _Nonnull hand
);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_func_connect(void

);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_func_connect_with_signer(void

);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_func_default_config(void

Expand Down Expand Up @@ -383,6 +390,24 @@ uint16_t uniffi_breez_sdk_liquid_bindings_checksum_method_eventlistener_on_event
);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_method_logger_log(void

);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_method_signer_xpub(void

);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_method_signer_derive_xpub(void

);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa(void

);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa_recoverable(void

);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_method_signer_slip77_master_blinding_key(void

);
uint16_t uniffi_breez_sdk_liquid_bindings_checksum_method_signer_hmac_sha256(void

);
uint32_t ffi_breez_sdk_liquid_bindings_uniffi_contract_version(void

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>breez_sdk_liquidFFI</string>
<key>CFBundleIdentifier</key>
<string>technology.breez.breez-sdk-liquidFFI</string>
<key>CFBundleName</key>
<string>breez_sdk_liquidFFI</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>13.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>breez_sdk_liquidFFI</string>
<key>CFBundleIdentifier</key>
<string>technology.breez.breez-sdk-liquidFFI</string>
<key>CFBundleName</key>
<string>breez_sdk_liquidFFI</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneSimulator</string>
</array>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>13.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>breez_sdk_liquidFFI</string>
<key>CFBundleIdentifier</key>
<string>technology.breez.breez-sdk-liquidFFI</string>
<key>CFBundleName</key>
<string>breez_sdk_liquidFFI</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>15.0</string>
</dict>
</plist>
109 changes: 109 additions & 0 deletions packages/flutter/lib/flutter_breez_liquid_bindings_generated.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2206,6 +2206,23 @@ class FlutterBreezLiquidBindings {
_uniffi_breez_sdk_liquid_bindings_fn_init_callback_loggerPtr
.asFunction<void Function(ForeignCallback, ffi.Pointer<RustCallStatus>)>();

void uniffi_breez_sdk_liquid_bindings_fn_init_callback_signer(
ForeignCallback callback_stub,
ffi.Pointer<RustCallStatus> out_status,
) {
return _uniffi_breez_sdk_liquid_bindings_fn_init_callback_signer(
callback_stub,
out_status,
);
}

late final _uniffi_breez_sdk_liquid_bindings_fn_init_callback_signerPtr =
_lookup<ffi.NativeFunction<ffi.Void Function(ForeignCallback, ffi.Pointer<RustCallStatus>)>>(
'uniffi_breez_sdk_liquid_bindings_fn_init_callback_signer');
late final _uniffi_breez_sdk_liquid_bindings_fn_init_callback_signer =
_uniffi_breez_sdk_liquid_bindings_fn_init_callback_signerPtr
.asFunction<void Function(ForeignCallback, ffi.Pointer<RustCallStatus>)>();

ffi.Pointer<ffi.Void> uniffi_breez_sdk_liquid_bindings_fn_func_connect(
RustBuffer req,
ffi.Pointer<RustCallStatus> out_status,
Expand All @@ -2223,6 +2240,26 @@ class FlutterBreezLiquidBindings {
_uniffi_breez_sdk_liquid_bindings_fn_func_connectPtr
.asFunction<ffi.Pointer<ffi.Void> Function(RustBuffer, ffi.Pointer<RustCallStatus>)>();

ffi.Pointer<ffi.Void> uniffi_breez_sdk_liquid_bindings_fn_func_connect_with_signer(
RustBuffer req,
int signer,
ffi.Pointer<RustCallStatus> out_status,
) {
return _uniffi_breez_sdk_liquid_bindings_fn_func_connect_with_signer(
req,
signer,
out_status,
);
}

late final _uniffi_breez_sdk_liquid_bindings_fn_func_connect_with_signerPtr = _lookup<
ffi.NativeFunction<
ffi.Pointer<ffi.Void> Function(RustBuffer, ffi.Uint64,
ffi.Pointer<RustCallStatus>)>>('uniffi_breez_sdk_liquid_bindings_fn_func_connect_with_signer');
late final _uniffi_breez_sdk_liquid_bindings_fn_func_connect_with_signer =
_uniffi_breez_sdk_liquid_bindings_fn_func_connect_with_signerPtr
.asFunction<ffi.Pointer<ffi.Void> Function(RustBuffer, int, ffi.Pointer<RustCallStatus>)>();

RustBuffer uniffi_breez_sdk_liquid_bindings_fn_func_default_config(
RustBuffer network,
RustBuffer breez_api_key,
Expand Down Expand Up @@ -3221,6 +3258,16 @@ class FlutterBreezLiquidBindings {
late final _uniffi_breez_sdk_liquid_bindings_checksum_func_connect =
_uniffi_breez_sdk_liquid_bindings_checksum_func_connectPtr.asFunction<int Function()>();

int uniffi_breez_sdk_liquid_bindings_checksum_func_connect_with_signer() {
return _uniffi_breez_sdk_liquid_bindings_checksum_func_connect_with_signer();
}

late final _uniffi_breez_sdk_liquid_bindings_checksum_func_connect_with_signerPtr =
_lookup<ffi.NativeFunction<ffi.Uint16 Function()>>(
'uniffi_breez_sdk_liquid_bindings_checksum_func_connect_with_signer');
late final _uniffi_breez_sdk_liquid_bindings_checksum_func_connect_with_signer =
_uniffi_breez_sdk_liquid_bindings_checksum_func_connect_with_signerPtr.asFunction<int Function()>();

int uniffi_breez_sdk_liquid_bindings_checksum_func_default_config() {
return _uniffi_breez_sdk_liquid_bindings_checksum_func_default_config();
}
Expand Down Expand Up @@ -3655,6 +3702,68 @@ class FlutterBreezLiquidBindings {
late final _uniffi_breez_sdk_liquid_bindings_checksum_method_logger_log =
_uniffi_breez_sdk_liquid_bindings_checksum_method_logger_logPtr.asFunction<int Function()>();

int uniffi_breez_sdk_liquid_bindings_checksum_method_signer_xpub() {
return _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_xpub();
}

late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_xpubPtr =
_lookup<ffi.NativeFunction<ffi.Uint16 Function()>>(
'uniffi_breez_sdk_liquid_bindings_checksum_method_signer_xpub');
late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_xpub =
_uniffi_breez_sdk_liquid_bindings_checksum_method_signer_xpubPtr.asFunction<int Function()>();

int uniffi_breez_sdk_liquid_bindings_checksum_method_signer_derive_xpub() {
return _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_derive_xpub();
}

late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_derive_xpubPtr =
_lookup<ffi.NativeFunction<ffi.Uint16 Function()>>(
'uniffi_breez_sdk_liquid_bindings_checksum_method_signer_derive_xpub');
late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_derive_xpub =
_uniffi_breez_sdk_liquid_bindings_checksum_method_signer_derive_xpubPtr.asFunction<int Function()>();

int uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa() {
return _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa();
}

late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsaPtr =
_lookup<ffi.NativeFunction<ffi.Uint16 Function()>>(
'uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa');
late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa =
_uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsaPtr.asFunction<int Function()>();

int uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa_recoverable() {
return _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa_recoverable();
}

late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa_recoverablePtr =
_lookup<ffi.NativeFunction<ffi.Uint16 Function()>>(
'uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa_recoverable');
late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa_recoverable =
_uniffi_breez_sdk_liquid_bindings_checksum_method_signer_sign_ecdsa_recoverablePtr
.asFunction<int Function()>();

int uniffi_breez_sdk_liquid_bindings_checksum_method_signer_slip77_master_blinding_key() {
return _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_slip77_master_blinding_key();
}

late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_slip77_master_blinding_keyPtr =
_lookup<ffi.NativeFunction<ffi.Uint16 Function()>>(
'uniffi_breez_sdk_liquid_bindings_checksum_method_signer_slip77_master_blinding_key');
late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_slip77_master_blinding_key =
_uniffi_breez_sdk_liquid_bindings_checksum_method_signer_slip77_master_blinding_keyPtr
.asFunction<int Function()>();

int uniffi_breez_sdk_liquid_bindings_checksum_method_signer_hmac_sha256() {
return _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_hmac_sha256();
}

late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_hmac_sha256Ptr =
_lookup<ffi.NativeFunction<ffi.Uint16 Function()>>(
'uniffi_breez_sdk_liquid_bindings_checksum_method_signer_hmac_sha256');
late final _uniffi_breez_sdk_liquid_bindings_checksum_method_signer_hmac_sha256 =
_uniffi_breez_sdk_liquid_bindings_checksum_method_signer_hmac_sha256Ptr.asFunction<int Function()>();

int ffi_breez_sdk_liquid_bindings_uniffi_contract_version() {
return _ffi_breez_sdk_liquid_bindings_uniffi_contract_version();
}
Expand Down

0 comments on commit b78d53b

Please sign in to comment.