@breeztech/breez-sdk-spark-react-native 0.12.2-dev1 → 0.12.2-dev3
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/README.md +6 -6
- package/android/CMakeLists.txt +3 -4
- package/cpp/generated/breez_sdk_spark.cpp +661 -452
- package/cpp/generated/breez_sdk_spark.hpp +49 -29
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +366 -155
- 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 +365 -154
- 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 +77 -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 +1037 -116
- 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 +77 -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 +1037 -116
- 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 +106 -91
- package/src/generated/breez_sdk_spark.ts +2796 -1030
- package/src/generated/breez_sdk_spark_bindings.ts +2 -2
- package/src/index.tsx +7 -0
|
@@ -5,7 +5,7 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
|
5
5
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
6
6
|
|
|
7
7
|
Pod::Spec.new do |s|
|
|
8
|
-
s.name = "
|
|
8
|
+
s.name = "BreezSdkSparkReactNative"
|
|
9
9
|
s.version = package["version"]
|
|
10
10
|
s.summary = package["description"]
|
|
11
11
|
s.homepage = package["homepage"]
|
|
@@ -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/RnBreezSdkSpark.xcframework"
|
|
20
|
-
s.dependency "uniffi-bindgen-react-native", "0.
|
|
20
|
+
s.dependency "uniffi-bindgen-react-native", "0.29.3-1"
|
|
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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Breez SDK -
|
|
1
|
+
# Breez SDK - Spark
|
|
2
2
|
|
|
3
|
-
## **What
|
|
3
|
+
## **What is the Breez SDK?**
|
|
4
4
|
|
|
5
5
|
The Breez SDK provides developers with an end-to-end solution for integrating self-custodial Lightning into their apps and services. It eliminates the need for third parties, simplifies the complexities of Bitcoin and Lightning, and enables seamless onboarding for billions of users to the future of value transfer.
|
|
6
6
|
|
|
7
|
-
## **What
|
|
7
|
+
## **What is the Breez SDK - Spark?**
|
|
8
8
|
|
|
9
9
|
It’s a nodeless integration that offers a self-custodial, end-to-end solution for integrating Lightning payments, utilizing Spark with on-chain interoperability and third-party fiat on-ramps.
|
|
10
10
|
|
|
@@ -66,7 +66,7 @@ npx expo run:android
|
|
|
66
66
|
|
|
67
67
|
## Usage
|
|
68
68
|
|
|
69
|
-
Head over to the Breez SDK -
|
|
69
|
+
Head over to the Breez SDK - Spark [documentation](https://sdk-doc-spark.breez.technology/) to start implementing Lightning in your app.
|
|
70
70
|
|
|
71
71
|
```js
|
|
72
72
|
import { connect, defaultConfig } from '@breeztech/breez-sdk-spark-react-native';
|
|
@@ -97,6 +97,6 @@ Have a question for the team? Join us on [Telegram](https://t.me/breezsdk) or em
|
|
|
97
97
|
|
|
98
98
|
## Information for Maintainers and Contributors
|
|
99
99
|
|
|
100
|
-
This repository is used to publish a NPM package providing React Native bindings to the Breez SDK -
|
|
100
|
+
This repository is used to publish a NPM package providing React Native bindings to the Breez SDK - Spark's [underlying Rust implementation](https://github.com/breez/spark-sdk). The React Native bindings are generated using [UniFFi Bindgen React Native](https://github.com/jhugman/uniffi-bindgen-react-native).
|
|
101
101
|
|
|
102
|
-
Any changes to Breez SDK -
|
|
102
|
+
Any changes to Breez SDK - Spark, the React Native bindings, and the configuration of this React Native package must be made via the [spark-sdk](https://github.com/breez/spark-sdk) repository.
|
package/android/CMakeLists.txt
CHANGED
|
@@ -11,10 +11,9 @@ execute_process(
|
|
|
11
11
|
OUTPUT_VARIABLE UNIFFI_BINDGEN_PATH
|
|
12
12
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
13
13
|
)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
)
|
|
14
|
+
# Get the directory; get_filename_component and cmake_path will normalize
|
|
15
|
+
# paths with Windows path separators.
|
|
16
|
+
get_filename_component(UNIFFI_BINDGEN_PATH "${UNIFFI_BINDGEN_PATH}" DIRECTORY)
|
|
18
17
|
|
|
19
18
|
# Specifies a path to native header files.
|
|
20
19
|
include_directories(
|