@secondts/bark-react-native 0.23.0 → 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/BarkReactNative.podspec +1 -1
- package/README.md +3 -1
- package/android/src/main/java/com/barkreactnative/BarkReactNativePackage.kt +2 -2
- package/cpp/generated/bark.cpp +362 -82
- package/cpp/generated/bark.hpp +9 -2
- package/lib/commonjs/generated/bark-ffi.js +2 -29
- package/lib/commonjs/generated/bark-ffi.js.map +1 -1
- package/lib/commonjs/generated/bark.js +1291 -6635
- package/lib/commonjs/generated/bark.js.map +1 -1
- package/lib/module/generated/bark-ffi.js +2 -29
- package/lib/module/generated/bark-ffi.js.map +1 -1
- package/lib/module/generated/bark.js +1291 -6619
- package/lib/module/generated/bark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +215 -263
- package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/bark.d.ts +2105 -1870
- package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark-ffi.d.ts +215 -263
- package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/bark.d.ts +2105 -1870
- package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
- package/package.json +7 -6
- package/src/generated/bark-ffi.ts +434 -500
- package/src/generated/bark.ts +7228 -5573
package/cpp/generated/bark.hpp
CHANGED
|
@@ -19,8 +19,9 @@ class NativeBark : public jsi::HostObject {
|
|
|
19
19
|
protected:
|
|
20
20
|
std::map<std::string,jsi::Value> props;
|
|
21
21
|
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
22
|
-
jsi::Value
|
|
23
|
-
jsi::Value
|
|
22
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
23
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_from_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
24
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__read_string_from_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
24
25
|
jsi::Value cpp_uniffi_bark_ffi_fn_clone_notificationholder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
25
26
|
jsi::Value cpp_uniffi_bark_ffi_fn_free_notificationholder(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
26
27
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -101,6 +102,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
101
102
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_history(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
102
103
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
103
104
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
105
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_import_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
104
106
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
105
107
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_lightning_receive_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
106
108
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_lightning_send_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -162,8 +164,10 @@ class NativeBark : public jsi::HostObject {
|
|
|
162
164
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
163
165
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_vtxo_encoded(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
164
166
|
jsi::Value cpp_uniffi_bark_ffi_fn_method_wallet_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
167
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_func_default_vtxo_key_gap_limit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
165
168
|
jsi::Value cpp_uniffi_bark_ffi_fn_func_extract_tx_from_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
166
169
|
jsi::Value cpp_uniffi_bark_ffi_fn_func_generate_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
170
|
+
jsi::Value cpp_uniffi_bark_ffi_fn_func_max_vtxo_key_gap_limit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
167
171
|
jsi::Value cpp_uniffi_bark_ffi_fn_func_validate_ark_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
168
172
|
jsi::Value cpp_uniffi_bark_ffi_fn_func_validate_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
169
173
|
jsi::Value cpp_uniffi_bark_ffi_fn_func_set_logger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -216,8 +220,10 @@ class NativeBark : public jsi::HostObject {
|
|
|
216
220
|
jsi::Value cpp_ffi_bark_ffi_rust_future_cancel_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
217
221
|
jsi::Value cpp_ffi_bark_ffi_rust_future_free_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
218
222
|
jsi::Value cpp_ffi_bark_ffi_rust_future_complete_void(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
223
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_func_default_vtxo_key_gap_limit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
219
224
|
jsi::Value cpp_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
220
225
|
jsi::Value cpp_uniffi_bark_ffi_checksum_func_generate_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
226
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_func_max_vtxo_key_gap_limit(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
221
227
|
jsi::Value cpp_uniffi_bark_ffi_checksum_func_validate_ark_address(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
222
228
|
jsi::Value cpp_uniffi_bark_ffi_checksum_func_validate_mnemonic(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
223
229
|
jsi::Value cpp_uniffi_bark_ffi_checksum_func_set_logger(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -287,6 +293,7 @@ class NativeBark : public jsi::HostObject {
|
|
|
287
293
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_history(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
288
294
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
289
295
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
296
|
+
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_import_vtxos(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
290
297
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
291
298
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
292
299
|
jsi::Value cpp_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
@@ -11,38 +11,11 @@ exports.default = void 0;
|
|
|
11
11
|
/* eslint-disable */
|
|
12
12
|
// @ts-nocheck
|
|
13
13
|
|
|
14
|
-
// Casting globalThis to any allows us to look for `NativeBark`
|
|
15
|
-
// if it was added via JSI.
|
|
16
|
-
//
|
|
17
|
-
// We use a getter here rather than simply `globalThis.NativeBark` so that
|
|
18
|
-
// if/when the startup sequence isn't just so, an empty value isn't inadvertantly cached.
|
|
19
14
|
const getter = () => globalThis.NativeBark;
|
|
20
15
|
var _default = exports.default = getter; // Structs and function types for calling back into Typescript from Rust.
|
|
21
16
|
// UniffiRustFutureContinuationCallback is generated as part of the component interface's
|
|
22
17
|
// ffi_definitions. However, we need it in the runtime.
|
|
23
|
-
// We
|
|
24
|
-
//
|
|
25
|
-
// (b) import the generated declaration into the runtime (m a y b e) or…
|
|
26
|
-
// (c) generate the declaration anyway, and use a different declaration in the runtime.
|
|
27
|
-
//
|
|
28
|
-
// We chose (c) here as the simplest. In addition, we perform a compile time check that
|
|
29
|
-
// the two versions of `UniffiRustFutureContinuationCallback` are structurally equivalent.
|
|
30
|
-
//
|
|
31
|
-
// If you see the error:
|
|
32
|
-
// ```
|
|
33
|
-
// Type 'true' is not assignable to type 'false'.(2322)
|
|
34
|
-
// ```
|
|
35
|
-
// Then a new version of uniffi has changed the signature of the callback. Most likely, code in
|
|
36
|
-
// `typescript/src/async-rust-call.ts` will need to be changed.
|
|
37
|
-
//
|
|
38
|
-
// If you see the error:
|
|
39
|
-
// ```
|
|
40
|
-
// Cannot find name 'UniffiRustFutureContinuationCallback'. Did you mean 'RuntimeUniffiRustFutureContinuationCallback'?(2552)
|
|
41
|
-
// ```
|
|
42
|
-
// then you may not be using callbacks or promises, and uniffi is now not generating Futures and callbacks.
|
|
43
|
-
// You should not generate this if that is the case.
|
|
44
|
-
//
|
|
45
|
-
// ('You' being the bindings generator maintainer).
|
|
18
|
+
// We chose to generate the declaration anyway, and use a different declaration in the runtime.
|
|
19
|
+
// We perform a compile time check that the two versions are structurally equivalent.
|
|
46
20
|
const isRustFutureContinuationCallbackTypeCompatible = true;
|
|
47
|
-
const isUniffiForeignFutureTypeCompatible = true;
|
|
48
21
|
//# sourceMappingURL=bark-ffi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible"
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeBark","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AAo4BA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAClBL,MAAM,EAErB;AAsFA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI","ignoreList":[]}
|