@breeztech/breez-sdk-spark-react-native 0.11.0-dev2 → 0.11.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/README.md +16 -0
- package/android/CMakeLists.txt +4 -3
- package/{BreezSdkSparkReactNative.podspec → breeztech-breez-sdk-spark-react-native.podspec} +2 -2
- package/cpp/generated/breez_sdk_spark.cpp +1464 -539
- package/cpp/generated/breez_sdk_spark.hpp +96 -25
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +314 -85
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark_bindings.js +2 -4
- package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
- package/lib/commonjs/index.js +1 -11
- 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 +313 -84
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark_bindings.js +2 -4
- package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
- package/lib/module/index.js +0 -7
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +94 -66
- 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 +1446 -91
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +94 -66
- 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 +1446 -91
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +0 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/plugin/build/index.d.ts +5 -0
- package/plugin/build/index.js +2 -2
- package/plugin/build/withBinaryArtifacts.d.ts +1 -1
- package/plugin/build/withBinaryArtifacts.js +5 -7
- package/plugin/build/withIOS.d.ts +5 -1
- package/plugin/build/withIOS.js +14 -4
- package/src/generated/breez_sdk_spark-ffi.ts +158 -82
- package/src/generated/breez_sdk_spark.ts +3008 -1245
- package/src/generated/breez_sdk_spark_bindings.ts +2 -2
- package/src/index.tsx +0 -7
package/README.md
CHANGED
|
@@ -38,6 +38,22 @@ Then add the plugin to your `app.json` or `app.config.js`:
|
|
|
38
38
|
}
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
#### Plugin Options
|
|
42
|
+
|
|
43
|
+
To enable [Passkey](https://sdk-doc-spark.breez.technology/guide/passkey.html) support, set `enablePasskey` to `true`. This adds `webcredentials:keys.breez.technology` to the iOS Associated Domains entitlement:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"expo": {
|
|
48
|
+
"plugins": [
|
|
49
|
+
["@breeztech/breez-sdk-spark-react-native", {
|
|
50
|
+
"enablePasskey": true
|
|
51
|
+
}]
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
41
57
|
After adding the plugin, rebuild your app:
|
|
42
58
|
|
|
43
59
|
```sh
|
package/android/CMakeLists.txt
CHANGED
|
@@ -11,9 +11,10 @@ execute_process(
|
|
|
11
11
|
OUTPUT_VARIABLE UNIFFI_BINDGEN_PATH
|
|
12
12
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
13
13
|
)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
string(REGEX
|
|
15
|
+
REPLACE "/package\\.json$" ""
|
|
16
|
+
UNIFFI_BINDGEN_PATH ${UNIFFI_BINDGEN_PATH}
|
|
17
|
+
)
|
|
17
18
|
|
|
18
19
|
# Specifies a path to native header files.
|
|
19
20
|
include_directories(
|
|
@@ -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 = "breeztech-breez-sdk-spark-react-native"
|
|
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.28.3-5"
|
|
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.
|