@secondts/bark-react-native 0.3.3 → 0.4.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/BarkReactNative.podspec +1 -1
- package/README.md +1 -1
- package/cpp/generated/bark.cpp +36 -0
- package/cpp/generated/bark.hpp +2 -0
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +143 -355
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +143 -355
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +2 -0
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +105 -316
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +2 -0
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +105 -316
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/generated/bark-ffi.ts +5 -0
- package/src/generated/bark.ts +596 -722
package/BarkReactNative.podspec
CHANGED
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
|
|
18
18
|
s.source_files = "ios/*.{h,m,mm,swift}", "ios/generated/**/*.{h}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
|
|
19
19
|
s.vendored_frameworks = "build/RnBark.xcframework"
|
|
20
|
-
s.dependency "uniffi-bindgen-react-native", "0.
|
|
20
|
+
s.dependency "uniffi-bindgen-react-native", "0.31.0-2"
|
|
21
21
|
|
|
22
22
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
23
23
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ npx expo install @secondts/bark-react-native@beta
|
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
62
|
# Or install a specific beta version
|
|
63
|
-
npx expo install @secondts/bark-react-native@0.
|
|
63
|
+
npx expo install @secondts/bark-react-native@0.4.0
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
For bare React Native projects, use:
|
package/cpp/generated/bark.cpp
CHANGED
|
@@ -307,6 +307,10 @@ extern "C" {
|
|
|
307
307
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(
|
|
308
308
|
/*handle*/ uint64_t ptr
|
|
309
309
|
);
|
|
310
|
+
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(
|
|
311
|
+
/*handle*/ uint64_t ptr,
|
|
312
|
+
RustBuffer payment_hash
|
|
313
|
+
);
|
|
310
314
|
/*handle*/ uint64_t uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(
|
|
311
315
|
/*handle*/ uint64_t ptr,
|
|
312
316
|
uint32_t round_id
|
|
@@ -839,6 +843,8 @@ extern "C" {
|
|
|
839
843
|
);
|
|
840
844
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds(
|
|
841
845
|
);
|
|
846
|
+
uint16_t uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive(
|
|
847
|
+
);
|
|
842
848
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round(
|
|
843
849
|
);
|
|
844
850
|
uint16_t uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment(
|
|
@@ -4214,6 +4220,14 @@ NativeBark::NativeBark(
|
|
|
4214
4220
|
return this->cpp_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(rt, thisVal, args, count);
|
|
4215
4221
|
}
|
|
4216
4222
|
);
|
|
4223
|
+
props["ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive"] = jsi::Function::createFromHostFunction(
|
|
4224
|
+
rt,
|
|
4225
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive"),
|
|
4226
|
+
2,
|
|
4227
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4228
|
+
return this->cpp_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(rt, thisVal, args, count);
|
|
4229
|
+
}
|
|
4230
|
+
);
|
|
4217
4231
|
props["ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round"] = jsi::Function::createFromHostFunction(
|
|
4218
4232
|
rt,
|
|
4219
4233
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round"),
|
|
@@ -5382,6 +5396,14 @@ NativeBark::NativeBark(
|
|
|
5382
5396
|
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds(rt, thisVal, args, count);
|
|
5383
5397
|
}
|
|
5384
5398
|
);
|
|
5399
|
+
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive"] = jsi::Function::createFromHostFunction(
|
|
5400
|
+
rt,
|
|
5401
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive"),
|
|
5402
|
+
0,
|
|
5403
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value {
|
|
5404
|
+
return this->cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive(rt, thisVal, args, count);
|
|
5405
|
+
}
|
|
5406
|
+
);
|
|
5385
5407
|
props["ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round"] = jsi::Function::createFromHostFunction(
|
|
5386
5408
|
rt,
|
|
5387
5409
|
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round"),
|
|
@@ -6431,6 +6453,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_r
|
|
|
6431
6453
|
);
|
|
6432
6454
|
|
|
6433
6455
|
|
|
6456
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
6457
|
+
}
|
|
6458
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
6459
|
+
auto value = uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker, args[0]), uniffi::bark::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1])
|
|
6460
|
+
);
|
|
6461
|
+
|
|
6462
|
+
|
|
6434
6463
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker, value);
|
|
6435
6464
|
}
|
|
6436
6465
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
@@ -7522,6 +7551,13 @@ jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pen
|
|
|
7522
7551
|
);
|
|
7523
7552
|
|
|
7524
7553
|
|
|
7554
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
7555
|
+
}
|
|
7556
|
+
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
|
7557
|
+
auto value = uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive(
|
|
7558
|
+
);
|
|
7559
|
+
|
|
7560
|
+
|
|
7525
7561
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
7526
7562
|
}
|
|
7527
7563
|
jsi::Value NativeBark::cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count) {
|
package/cpp/generated/bark.hpp
CHANGED
|
@@ -48,6 +48,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
48
48
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
49
49
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_broadcast_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
50
50
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
51
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
51
52
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
52
53
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
53
54
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -194,6 +195,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
194
195
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
195
196
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
196
197
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
198
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
197
199
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
198
200
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
199
201
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AA+oBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AA8JA;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":[]}
|