@breeztech/breez-sdk-spark-react-native 0.1.8-dev1

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.
Files changed (103) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +54 -0
  3. package/android/CMakeLists.txt +79 -0
  4. package/android/build.gradle +143 -0
  5. package/android/cpp-adapter.cpp +63 -0
  6. package/android/generated/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeBreezSdkSparkReactNativeSpec.java +41 -0
  7. package/android/generated/android/app/build/generated/source/codegen/jni/BreezSdkSparkReactNativeSpec-generated.cpp +38 -0
  8. package/android/generated/android/app/build/generated/source/codegen/jni/BreezSdkSparkReactNativeSpec.h +31 -0
  9. package/android/generated/android/app/build/generated/source/codegen/jni/CMakeLists.txt +36 -0
  10. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/BreezSdkSparkReactNativeSpecJSI-generated.cpp +32 -0
  11. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/BreezSdkSparkReactNativeSpecJSI.h +80 -0
  12. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/ComponentDescriptors.cpp +22 -0
  13. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/ComponentDescriptors.h +24 -0
  14. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/EventEmitters.cpp +16 -0
  15. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/EventEmitters.h +17 -0
  16. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/Props.cpp +19 -0
  17. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/Props.h +18 -0
  18. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/ShadowNodes.cpp +17 -0
  19. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/ShadowNodes.h +23 -0
  20. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/States.cpp +16 -0
  21. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/BreezSdkSparkReactNativeSpec/States.h +19 -0
  22. package/android/gradle.properties +5 -0
  23. package/android/src/main/AndroidManifest.xml +5 -0
  24. package/android/src/main/AndroidManifestNew.xml +2 -0
  25. package/android/src/main/java/com/breeztech/breezsdkspark/BreezSdkSparkReactNativeModule.kt +43 -0
  26. package/android/src/main/java/com/breeztech/breezsdkspark/BreezSdkSparkReactNativePackage.kt +34 -0
  27. package/breeztech-breez-sdk-spark-react-native.podspec +44 -0
  28. package/cpp/breeztech-breez-sdk-spark-react-native.cpp +20 -0
  29. package/cpp/breeztech-breez-sdk-spark-react-native.h +15 -0
  30. package/cpp/generated/breez_sdk_common.cpp +3834 -0
  31. package/cpp/generated/breez_sdk_common.hpp +251 -0
  32. package/cpp/generated/breez_sdk_spark.cpp +8722 -0
  33. package/cpp/generated/breez_sdk_spark.hpp +589 -0
  34. package/cpp/generated/breez_sdk_spark_bindings.cpp +1750 -0
  35. package/cpp/generated/breez_sdk_spark_bindings.hpp +65 -0
  36. package/ios/BreezSdkSparkReactNative.h +16 -0
  37. package/ios/BreezSdkSparkReactNative.mm +66 -0
  38. package/ios/generated/build/generated/ios/BreezSdkSparkReactNativeSpec/BreezSdkSparkReactNativeSpec-generated.mm +46 -0
  39. package/ios/generated/build/generated/ios/BreezSdkSparkReactNativeSpec/BreezSdkSparkReactNativeSpec.h +63 -0
  40. package/ios/generated/build/generated/ios/BreezSdkSparkReactNativeSpecJSI-generated.cpp +32 -0
  41. package/ios/generated/build/generated/ios/BreezSdkSparkReactNativeSpecJSI.h +80 -0
  42. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/ComponentDescriptors.cpp +22 -0
  43. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/ComponentDescriptors.h +24 -0
  44. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/EventEmitters.cpp +16 -0
  45. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/EventEmitters.h +17 -0
  46. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/Props.cpp +19 -0
  47. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/Props.h +18 -0
  48. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/RCTComponentViewHelpers.h +18 -0
  49. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/ShadowNodes.cpp +17 -0
  50. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/ShadowNodes.h +23 -0
  51. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/States.cpp +16 -0
  52. package/ios/generated/build/generated/ios/react/renderer/components/BreezSdkSparkReactNativeSpec/States.h +19 -0
  53. package/lib/commonjs/NativeBreezSdkSparkReactNative.js +10 -0
  54. package/lib/commonjs/NativeBreezSdkSparkReactNative.js.map +1 -0
  55. package/lib/commonjs/generated/breez_sdk_common-ffi.js +44 -0
  56. package/lib/commonjs/generated/breez_sdk_common-ffi.js.map +1 -0
  57. package/lib/commonjs/generated/breez_sdk_common.js +3948 -0
  58. package/lib/commonjs/generated/breez_sdk_common.js.map +1 -0
  59. package/lib/commonjs/generated/breez_sdk_spark-ffi.js +44 -0
  60. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -0
  61. package/lib/commonjs/generated/breez_sdk_spark.js +5775 -0
  62. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -0
  63. package/lib/commonjs/generated/breez_sdk_spark_bindings-ffi.js +44 -0
  64. package/lib/commonjs/generated/breez_sdk_spark_bindings-ffi.js.map +1 -0
  65. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +51 -0
  66. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -0
  67. package/lib/commonjs/index.js +81 -0
  68. package/lib/commonjs/index.js.map +1 -0
  69. package/lib/commonjs/package.json +1 -0
  70. package/lib/module/NativeBreezSdkSparkReactNative.js +7 -0
  71. package/lib/module/NativeBreezSdkSparkReactNative.js.map +1 -0
  72. package/lib/module/generated/breez_sdk_common-ffi.js +43 -0
  73. package/lib/module/generated/breez_sdk_common-ffi.js.map +1 -0
  74. package/lib/module/generated/breez_sdk_common.js +3942 -0
  75. package/lib/module/generated/breez_sdk_common.js.map +1 -0
  76. package/lib/module/generated/breez_sdk_spark-ffi.js +43 -0
  77. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -0
  78. package/lib/module/generated/breez_sdk_spark.js +5759 -0
  79. package/lib/module/generated/breez_sdk_spark.js.map +1 -0
  80. package/lib/module/generated/breez_sdk_spark_bindings-ffi.js +43 -0
  81. package/lib/module/generated/breez_sdk_spark_bindings-ffi.js.map +1 -0
  82. package/lib/module/generated/breez_sdk_spark_bindings.js +46 -0
  83. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -0
  84. package/lib/module/index.js +44 -0
  85. package/lib/module/index.js.map +1 -0
  86. package/lib/module/package.json +1 -0
  87. package/lib/typescript/commonjs/package.json +1 -0
  88. package/lib/typescript/commonjs/src/NativeBreezSdkSparkReactNative.d.ts +8 -0
  89. package/lib/typescript/commonjs/src/NativeBreezSdkSparkReactNative.d.ts.map +1 -0
  90. package/lib/typescript/module/package.json +1 -0
  91. package/lib/typescript/module/src/NativeBreezSdkSparkReactNative.d.ts +8 -0
  92. package/lib/typescript/module/src/NativeBreezSdkSparkReactNative.d.ts.map +1 -0
  93. package/package.json +189 -0
  94. package/react-native.config.js +12 -0
  95. package/scripts/postinstall.sh +14 -0
  96. package/src/NativeBreezSdkSparkReactNative.ts +10 -0
  97. package/src/generated/breez_sdk_common-ffi.ts +394 -0
  98. package/src/generated/breez_sdk_common.ts +5502 -0
  99. package/src/generated/breez_sdk_spark-ffi.ts +751 -0
  100. package/src/generated/breez_sdk_spark.ts +9179 -0
  101. package/src/generated/breez_sdk_spark_bindings-ffi.ts +185 -0
  102. package/src/generated/breez_sdk_spark_bindings.ts +103 -0
  103. package/src/index.tsx +42 -0
@@ -0,0 +1,251 @@
1
+ // This file was autogenerated by some hot garbage in the
2
+ // `uniffi-bindgen-react-native` crate. Trust me, you don't want to mess with
3
+ // it!
4
+ #pragma once
5
+ #include "UniffiCallInvoker.h"
6
+ #include <ReactCommon/CallInvoker.h>
7
+ #include <iostream>
8
+ #include <jsi/jsi.h>
9
+ #include <map>
10
+ #include <memory>
11
+
12
+ namespace react = facebook::react;
13
+ namespace jsi = facebook::jsi;
14
+
15
+ class NativeBreezSdkCommon : public jsi::HostObject {
16
+ private:
17
+ // For calling back into JS from Rust.
18
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker;
19
+
20
+ protected:
21
+ std::map<std::string, jsi::Value> props;
22
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(
23
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
24
+ size_t count);
25
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(
26
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
27
+ size_t count);
28
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
29
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
30
+ size_t count);
31
+ jsi::Value cpp_uniffi_breez_sdk_common_fn_clone_restclient(
32
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
33
+ size_t count);
34
+ jsi::Value cpp_uniffi_breez_sdk_common_fn_free_restclient(
35
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
36
+ size_t count);
37
+ jsi::Value cpp_uniffi_breez_sdk_common_fn_method_restclient_get(
38
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
39
+ size_t count);
40
+ jsi::Value cpp_uniffi_breez_sdk_common_fn_method_restclient_post(
41
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
42
+ size_t count);
43
+ jsi::Value cpp_uniffi_breez_sdk_common_fn_method_restclient_delete(
44
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
45
+ size_t count);
46
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_u8(
47
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
48
+ size_t count);
49
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_u8(
50
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
51
+ size_t count);
52
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_u8(
53
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
54
+ size_t count);
55
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_u8(
56
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
57
+ size_t count);
58
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_i8(
59
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
60
+ size_t count);
61
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_i8(
62
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
63
+ size_t count);
64
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_i8(
65
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
66
+ size_t count);
67
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_i8(
68
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
69
+ size_t count);
70
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_u16(
71
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
72
+ size_t count);
73
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_u16(
74
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
75
+ size_t count);
76
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_u16(
77
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
78
+ size_t count);
79
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_u16(
80
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
81
+ size_t count);
82
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_i16(
83
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
84
+ size_t count);
85
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_i16(
86
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
87
+ size_t count);
88
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_i16(
89
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
90
+ size_t count);
91
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_i16(
92
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
93
+ size_t count);
94
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_u32(
95
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
96
+ size_t count);
97
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_u32(
98
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
99
+ size_t count);
100
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_u32(
101
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
102
+ size_t count);
103
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_u32(
104
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
105
+ size_t count);
106
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_i32(
107
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
108
+ size_t count);
109
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_i32(
110
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
111
+ size_t count);
112
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_i32(
113
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
114
+ size_t count);
115
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_i32(
116
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
117
+ size_t count);
118
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_u64(
119
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
120
+ size_t count);
121
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_u64(
122
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
123
+ size_t count);
124
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_u64(
125
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
126
+ size_t count);
127
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_u64(
128
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
129
+ size_t count);
130
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_i64(
131
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
132
+ size_t count);
133
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_i64(
134
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
135
+ size_t count);
136
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_i64(
137
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
138
+ size_t count);
139
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_i64(
140
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
141
+ size_t count);
142
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_f32(
143
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
144
+ size_t count);
145
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_f32(
146
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
147
+ size_t count);
148
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_f32(
149
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
150
+ size_t count);
151
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_f32(
152
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
153
+ size_t count);
154
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_f64(
155
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
156
+ size_t count);
157
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_f64(
158
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
159
+ size_t count);
160
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_f64(
161
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
162
+ size_t count);
163
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_f64(
164
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
165
+ size_t count);
166
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_pointer(
167
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
168
+ size_t count);
169
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_pointer(
170
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
171
+ size_t count);
172
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_pointer(
173
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
174
+ size_t count);
175
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_pointer(
176
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
177
+ size_t count);
178
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_rust_buffer(
179
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
180
+ size_t count);
181
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_rust_buffer(
182
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
183
+ size_t count);
184
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_rust_buffer(
185
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
186
+ size_t count);
187
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_rust_buffer(
188
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
189
+ size_t count);
190
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_void(
191
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
192
+ size_t count);
193
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_cancel_void(
194
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
195
+ size_t count);
196
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_free_void(
197
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
198
+ size_t count);
199
+ jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_void(
200
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
201
+ size_t count);
202
+ jsi::Value cpp_uniffi_breez_sdk_common_checksum_method_restclient_get(
203
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
204
+ size_t count);
205
+ jsi::Value cpp_uniffi_breez_sdk_common_checksum_method_restclient_post(
206
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
207
+ size_t count);
208
+ jsi::Value cpp_uniffi_breez_sdk_common_checksum_method_restclient_delete(
209
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
210
+ size_t count);
211
+ jsi::Value cpp_ffi_breez_sdk_common_uniffi_contract_version(
212
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
213
+ size_t count);
214
+ jsi::Value cpp_uniffi_breez_sdk_common_fn_init_callback_vtable_restclient(
215
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
216
+ size_t count);
217
+ jsi::Value cpp_uniffi_internal_fn_method_restclient_ffi__bless_pointer(
218
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
219
+ size_t count);
220
+
221
+ public:
222
+ NativeBreezSdkCommon(
223
+ jsi::Runtime &rt,
224
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker);
225
+ virtual ~NativeBreezSdkCommon();
226
+
227
+ /**
228
+ * The entry point into the crate.
229
+ *
230
+ * React Native must call `NativeBreezSdkCommon.registerModule(rt,
231
+ * callInvoker)` before using the Javascript interface.
232
+ */
233
+ static void registerModule(jsi::Runtime &rt,
234
+ std::shared_ptr<react::CallInvoker> callInvoker);
235
+
236
+ /**
237
+ * Some cleanup into the crate goes here.
238
+ *
239
+ * Current implementation is empty, however, this is not guaranteed to always
240
+ * be the case.
241
+ *
242
+ * Clients should call `NativeBreezSdkCommon.unregisterModule(rt)` after final
243
+ * use where possible.
244
+ */
245
+ static void unregisterModule(jsi::Runtime &rt);
246
+
247
+ virtual jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name);
248
+ virtual void set(jsi::Runtime &rt, const jsi::PropNameID &name,
249
+ const jsi::Value &value);
250
+ virtual std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt);
251
+ };