@breeztech/breez-sdk-spark-react-native 0.11.0-dev2 → 0.12.1

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 (42) hide show
  1. package/README.md +16 -0
  2. package/android/CMakeLists.txt +4 -3
  3. package/{BreezSdkSparkReactNative.podspec → breeztech-breez-sdk-spark-react-native.podspec} +2 -2
  4. package/cpp/generated/breez_sdk_spark.cpp +1460 -536
  5. package/cpp/generated/breez_sdk_spark.hpp +94 -25
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +314 -85
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +2 -4
  10. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
  11. package/lib/commonjs/index.js +1 -11
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  14. package/lib/module/generated/breez_sdk_spark.js +313 -84
  15. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  16. package/lib/module/generated/breez_sdk_spark_bindings.js +2 -4
  17. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
  18. package/lib/module/index.js +0 -7
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +94 -66
  21. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +1446 -91
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +0 -1
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +94 -66
  27. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  28. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +1446 -91
  29. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  30. package/lib/typescript/module/src/index.d.ts +0 -1
  31. package/lib/typescript/module/src/index.d.ts.map +1 -1
  32. package/package.json +4 -4
  33. package/plugin/build/index.d.ts +5 -0
  34. package/plugin/build/index.js +2 -2
  35. package/plugin/build/withBinaryArtifacts.d.ts +1 -1
  36. package/plugin/build/withBinaryArtifacts.js +5 -7
  37. package/plugin/build/withIOS.d.ts +5 -1
  38. package/plugin/build/withIOS.js +14 -4
  39. package/src/generated/breez_sdk_spark-ffi.ts +158 -82
  40. package/src/generated/breez_sdk_spark.ts +3012 -1249
  41. package/src/generated/breez_sdk_spark_bindings.ts +2 -2
  42. package/src/index.tsx +0 -7
@@ -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(() => ({ code: 0 }));
42
+ const uniffiCaller = new UniffiRustCaller();
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 = 29;
89
+ const bindingsContractVersion = 26;
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,13 +30,6 @@ 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
-
40
33
  // Export the crates as individually namespaced objects.
41
34
  export default {
42
35
  breez_sdk_spark,