@breeztech/breez-sdk-spark-react-native 0.9.1 → 0.11.0-dev2
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/{breeztech-breez-sdk-spark-react-native.podspec → BreezSdkSparkReactNative.podspec} +2 -2
- package/android/CMakeLists.txt +3 -4
- package/android/proguard-rules.pro +4 -0
- package/cpp/generated/breez_sdk_spark.cpp +1567 -514
- package/cpp/generated/breez_sdk_spark.hpp +73 -25
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +226 -86
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark_bindings.js +4 -2
- package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
- package/lib/commonjs/index.js +11 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +225 -85
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark_bindings.js +4 -2
- package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +95 -71
- 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 +619 -5
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +95 -71
- 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 +619 -5
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/generated/breez_sdk_spark-ffi.ts +163 -95
- package/src/generated/breez_sdk_spark.ts +2371 -818
- package/src/generated/breez_sdk_spark_bindings.ts +2 -2
- package/src/index.tsx +7 -0
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from 'uniffi-bindgen-react-native';
|
|
40
40
|
|
|
41
41
|
// Get converters from the other files, if any.
|
|
42
|
-
const uniffiCaller = new UniffiRustCaller();
|
|
42
|
+
const uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
|
|
43
43
|
|
|
44
44
|
const uniffiIsDebug =
|
|
45
45
|
// @ts-ignore -- The process global might not be defined
|
|
@@ -86,7 +86,7 @@ const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
|
86
86
|
*/
|
|
87
87
|
function uniffiEnsureInitialized() {
|
|
88
88
|
// Get the bindings contract version from our ComponentInterface
|
|
89
|
-
const bindingsContractVersion =
|
|
89
|
+
const bindingsContractVersion = 29;
|
|
90
90
|
// Get the scaffolding contract version by calling the into the dylib
|
|
91
91
|
const scaffoldingContractVersion =
|
|
92
92
|
nativeModule().ubrn_ffi_breez_sdk_spark_bindings_uniffi_contract_version();
|
package/src/index.tsx
CHANGED
|
@@ -30,6 +30,13 @@ if (!initialized) {
|
|
|
30
30
|
initialized = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
// This provides parity with the index.web.ts version of this file.
|
|
34
|
+
// The web version relies on an asynchronous fetch, which this doesn't
|
|
35
|
+
// need, so we just no-op.
|
|
36
|
+
export async function uniffiInitAsync() {
|
|
37
|
+
// NOOP.
|
|
38
|
+
}
|
|
39
|
+
|
|
33
40
|
// Export the crates as individually namespaced objects.
|
|
34
41
|
export default {
|
|
35
42
|
breez_sdk_spark,
|