@breeztech/breez-sdk-spark-react-native 0.24.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +7 -1
- package/cpp/generated/breez_sdk_spark.cpp +50 -0
- package/cpp/generated/breez_sdk_spark.hpp +8 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +279 -87
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +278 -86
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +2 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +1089 -246
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +2 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +1089 -246
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +4 -4
- package/scripts/post-ubrn.js +29 -0
- package/src/generated/breez_sdk_spark-ffi.ts +5 -0
- package/src/generated/breez_sdk_spark.ts +1793 -305
package/android/build.gradle
CHANGED
|
@@ -26,7 +26,13 @@ def isNewArchitectureEnabled() {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
apply plugin: "com.android.library"
|
|
29
|
-
|
|
29
|
+
// AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
|
|
30
|
+
// itself. Applying the Kotlin plugin on top of it fails configuration with
|
|
31
|
+
// "Cannot add extension with name 'kotlin'". Only apply it when nothing has
|
|
32
|
+
// registered that extension yet.
|
|
33
|
+
if (project.extensions.findByName('kotlin') == null) {
|
|
34
|
+
apply plugin: "kotlin-android"
|
|
35
|
+
}
|
|
30
36
|
|
|
31
37
|
if (isNewArchitectureEnabled()) {
|
|
32
38
|
apply plugin: "com.facebook.react"
|
|
@@ -621,6 +621,9 @@ uniffi_breez_sdk_spark_fn_method_breezsdk_check_lightning_address_available(
|
|
|
621
621
|
uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(void *ptr,
|
|
622
622
|
RustBuffer request);
|
|
623
623
|
/*handle*/ uint64_t
|
|
624
|
+
uniffi_breez_sdk_spark_fn_method_breezsdk_check_unilateral_exit(
|
|
625
|
+
void *ptr, RustBuffer request);
|
|
626
|
+
/*handle*/ uint64_t
|
|
624
627
|
uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(void *ptr,
|
|
625
628
|
RustBuffer request);
|
|
626
629
|
/*handle*/ uint64_t
|
|
@@ -1364,6 +1367,8 @@ uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin();
|
|
|
1364
1367
|
uint16_t
|
|
1365
1368
|
uniffi_breez_sdk_spark_checksum_method_breezsdk_check_lightning_address_available();
|
|
1366
1369
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message();
|
|
1370
|
+
uint16_t
|
|
1371
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_check_unilateral_exit();
|
|
1367
1372
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit();
|
|
1368
1373
|
uint16_t uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment();
|
|
1369
1374
|
uint16_t
|
|
@@ -17577,6 +17582,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
17577
17582
|
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(
|
|
17578
17583
|
rt, thisVal, args, count);
|
|
17579
17584
|
});
|
|
17585
|
+
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_check_unilateral_"
|
|
17586
|
+
"exit"] = jsi::Function::createFromHostFunction(
|
|
17587
|
+
rt,
|
|
17588
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
|
|
17589
|
+
"breezsdk_check_unilateral_exit"),
|
|
17590
|
+
2,
|
|
17591
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
17592
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
17593
|
+
return this
|
|
17594
|
+
->cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_unilateral_exit(
|
|
17595
|
+
rt, thisVal, args, count);
|
|
17596
|
+
});
|
|
17580
17597
|
props["ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit"] =
|
|
17581
17598
|
jsi::Function::createFromHostFunction(
|
|
17582
17599
|
rt,
|
|
@@ -21149,6 +21166,18 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
|
|
|
21149
21166
|
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(
|
|
21150
21167
|
rt, thisVal, args, count);
|
|
21151
21168
|
});
|
|
21169
|
+
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_unilateral_"
|
|
21170
|
+
"exit"] = jsi::Function::createFromHostFunction(
|
|
21171
|
+
rt,
|
|
21172
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
|
|
21173
|
+
"method_breezsdk_check_unilateral_exit"),
|
|
21174
|
+
0,
|
|
21175
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
21176
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
21177
|
+
return this
|
|
21178
|
+
->cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_unilateral_exit(
|
|
21179
|
+
rt, thisVal, args, count);
|
|
21180
|
+
});
|
|
21152
21181
|
props["ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit"] =
|
|
21153
21182
|
jsi::Function::createFromHostFunction(
|
|
21154
21183
|
rt,
|
|
@@ -24179,6 +24208,18 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
24179
24208
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
24180
24209
|
value);
|
|
24181
24210
|
}
|
|
24211
|
+
jsi::Value NativeBreezSdkSpark::
|
|
24212
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_unilateral_exit(
|
|
24213
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24214
|
+
size_t count) {
|
|
24215
|
+
auto value = uniffi_breez_sdk_spark_fn_method_breezsdk_check_unilateral_exit(
|
|
24216
|
+
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
24217
|
+
uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
24218
|
+
args[1]));
|
|
24219
|
+
|
|
24220
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
24221
|
+
value);
|
|
24222
|
+
}
|
|
24182
24223
|
jsi::Value NativeBreezSdkSpark::
|
|
24183
24224
|
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(
|
|
24184
24225
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -27812,6 +27853,15 @@ jsi::Value NativeBreezSdkSpark::
|
|
|
27812
27853
|
|
|
27813
27854
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27814
27855
|
}
|
|
27856
|
+
jsi::Value NativeBreezSdkSpark::
|
|
27857
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_unilateral_exit(
|
|
27858
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
27859
|
+
size_t count) {
|
|
27860
|
+
auto value =
|
|
27861
|
+
uniffi_breez_sdk_spark_checksum_method_breezsdk_check_unilateral_exit();
|
|
27862
|
+
|
|
27863
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
27864
|
+
}
|
|
27815
27865
|
jsi::Value NativeBreezSdkSpark::
|
|
27816
27866
|
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit(
|
|
27817
27867
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -108,6 +108,10 @@ protected:
|
|
|
108
108
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_message(
|
|
109
109
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
110
110
|
size_t count);
|
|
111
|
+
jsi::Value
|
|
112
|
+
cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_check_unilateral_exit(
|
|
113
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
114
|
+
size_t count);
|
|
111
115
|
jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_claim_deposit(
|
|
112
116
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
113
117
|
size_t count);
|
|
@@ -1098,6 +1102,10 @@ protected:
|
|
|
1098
1102
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(
|
|
1099
1103
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1100
1104
|
size_t count);
|
|
1105
|
+
jsi::Value
|
|
1106
|
+
cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_unilateral_exit(
|
|
1107
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1108
|
+
size_t count);
|
|
1101
1109
|
jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit(
|
|
1102
1110
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
1103
1111
|
size_t count);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBreezSdkSpark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/breez_sdk_spark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAw2CA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAC3BL,MAAM,EAErB;AAgvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|