@functionland/react-native-fula 1.55.0 → 1.55.2
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/LICENSE +20 -20
- package/android/build.gradle +114 -115
- package/android/gradle.properties +8 -8
- package/android/src/main/AndroidManifest.xml +3 -3
- package/android/src/main/AndroidManifestNew.xml +2 -2
- package/android/src/main/java/land/fx/fula/ConfigRef.java +7 -7
- package/android/src/main/java/land/fx/fula/Cryptography.java +62 -62
- package/android/src/main/java/land/fx/fula/FulaModule.java +1991 -1868
- package/android/src/main/java/land/fx/fula/FulaPackage.java +32 -32
- package/android/src/main/java/land/fx/fula/SharedPreferenceHelper.java +65 -65
- package/android/src/main/java/land/fx/fula/StaticHelper.java +13 -13
- package/android/src/main/java/land/fx/fula/ThreadUtils.java +42 -42
- package/ios/Cryptography.swift +59 -59
- package/ios/Fula-Bridging-Header.h +3 -3
- package/ios/UserDataHelper.swift +143 -143
- package/lib/commonjs/index.js +3 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-consts.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-errors.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-events.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-query.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-rpc.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-runtime.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-tx.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api.js.map +1 -1
- package/lib/commonjs/interfaces/augment-types.js.map +1 -1
- package/lib/commonjs/interfaces/definitions.js.map +1 -1
- package/lib/commonjs/interfaces/defintions.js.map +1 -1
- package/lib/commonjs/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/commonjs/interfaces/index.js.map +1 -1
- package/lib/commonjs/interfaces/lookup.js +300 -300
- package/lib/commonjs/interfaces/lookup.js.map +1 -1
- package/lib/commonjs/interfaces/registry.js.map +1 -1
- package/lib/commonjs/interfaces/types-lookup.js.map +1 -1
- package/lib/commonjs/interfaces/types.js.map +1 -1
- package/lib/commonjs/protocols/blockchain.js +66 -66
- package/lib/commonjs/protocols/blockchain.js.map +1 -1
- package/lib/commonjs/protocols/chain-api.js.map +1 -1
- package/lib/commonjs/protocols/fula.js.map +1 -1
- package/lib/commonjs/protocols/fx-ai.js +161 -0
- package/lib/commonjs/protocols/fx-ai.js.map +1 -0
- package/lib/commonjs/protocols/fxblox.js +3 -3
- package/lib/commonjs/protocols/fxblox.js.map +1 -1
- package/lib/commonjs/types/blockchain.js.map +1 -1
- package/lib/commonjs/types/fxblox.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/augment-api-consts.js.map +1 -1
- package/lib/module/interfaces/augment-api-errors.js.map +1 -1
- package/lib/module/interfaces/augment-api-events.js.map +1 -1
- package/lib/module/interfaces/augment-api-query.js.map +1 -1
- package/lib/module/interfaces/augment-api-rpc.js.map +1 -1
- package/lib/module/interfaces/augment-api-runtime.js.map +1 -1
- package/lib/module/interfaces/augment-api-tx.js.map +1 -1
- package/lib/module/interfaces/augment-api.js.map +1 -1
- package/lib/module/interfaces/augment-types.js.map +1 -1
- package/lib/module/interfaces/definitions.js.map +1 -1
- package/lib/module/interfaces/defintions.js.map +1 -1
- package/lib/module/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/module/interfaces/index.js.map +1 -1
- package/lib/module/interfaces/lookup.js +300 -300
- package/lib/module/interfaces/lookup.js.map +1 -1
- package/lib/module/interfaces/registry.js.map +1 -1
- package/lib/module/interfaces/types-lookup.js.map +1 -1
- package/lib/module/interfaces/types.js.map +1 -1
- package/lib/module/protocols/blockchain.js +66 -66
- package/lib/module/protocols/blockchain.js.map +1 -1
- package/lib/module/protocols/chain-api.js.map +1 -1
- package/lib/module/protocols/fula.js.map +1 -1
- package/lib/module/protocols/fx-ai.js +150 -0
- package/lib/module/protocols/fx-ai.js.map +1 -0
- package/lib/module/protocols/fxblox.js +3 -3
- package/lib/module/protocols/fxblox.js.map +1 -1
- package/lib/module/types/blockchain.js.map +1 -1
- package/lib/module/types/fxblox.js.map +1 -1
- package/package.json +176 -176
- package/react-native-fula.podspec +47 -47
- package/src/index.tsx +5 -4
- package/src/interfaces/augment-api-consts.ts +273 -273
- package/src/interfaces/augment-api-errors.ts +474 -474
- package/src/interfaces/augment-api-events.ts +448 -448
- package/src/interfaces/augment-api-query.ts +466 -466
- package/src/interfaces/augment-api-rpc.ts +617 -617
- package/src/interfaces/augment-api-runtime.ts +223 -223
- package/src/interfaces/augment-api-tx.ts +709 -709
- package/src/interfaces/augment-api.ts +9 -9
- package/src/interfaces/augment-types.ts +1322 -1322
- package/src/interfaces/definitions.ts +1 -1
- package/src/interfaces/defintions.ts +1 -1
- package/src/interfaces/fulaNativeModule.ts +175 -168
- package/src/interfaces/index.ts +3 -3
- package/src/interfaces/lookup.ts +2011 -2011
- package/src/interfaces/registry.ts +163 -163
- package/src/interfaces/types-lookup.ts +2165 -2165
- package/src/interfaces/types.ts +2 -2
- package/src/protocols/blockchain.ts +644 -644
- package/src/protocols/fx-ai.ts +182 -0
- package/src/protocols/fxblox.ts +443 -443
package/package.json
CHANGED
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@functionland/react-native-fula",
|
|
3
|
-
"version": "1.55.
|
|
4
|
-
"description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "lib/commonjs/index",
|
|
7
|
-
"module": "lib/module/index",
|
|
8
|
-
"types": "lib/typescript/index.d.ts",
|
|
9
|
-
"react-native": "src/index",
|
|
10
|
-
"source": "src/index",
|
|
11
|
-
"files": [
|
|
12
|
-
"src",
|
|
13
|
-
"lib",
|
|
14
|
-
"android",
|
|
15
|
-
"ios",
|
|
16
|
-
"cpp",
|
|
17
|
-
"*.podspec",
|
|
18
|
-
"!lib/typescript/example",
|
|
19
|
-
"!ios/build",
|
|
20
|
-
"!android/build",
|
|
21
|
-
"!android/gradle",
|
|
22
|
-
"!android/gradlew",
|
|
23
|
-
"!android/gradlew.bat",
|
|
24
|
-
"!android/local.properties",
|
|
25
|
-
"!**/__tests__",
|
|
26
|
-
"!**/__fixtures__",
|
|
27
|
-
"!**/__mocks__",
|
|
28
|
-
"!**/.*"
|
|
29
|
-
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"test": "jest",
|
|
32
|
-
"typecheck": "tsc --noEmit",
|
|
33
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
34
|
-
"prepack": "bob build",
|
|
35
|
-
"release": "release-it",
|
|
36
|
-
"example": "yarn --cwd example",
|
|
37
|
-
"build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
|
|
38
|
-
"build:ios": "cd example/ios && xcodebuild -workspace FulaExample.xcworkspace -scheme FulaExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
|
|
39
|
-
"bootstrap": "yarn example && yarn install && yarn example pods",
|
|
40
|
-
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",
|
|
41
|
-
"build:polkadot": "yarn generate:defs && yarn generate:meta",
|
|
42
|
-
"generate:defs": "node --loader ts-node/esm node_modules/.bin/polkadot-types-from-defs --package fula-polkadotjs-typegen/interfaces --input ./src/interfaces --endpoint ./edgeware.json",
|
|
43
|
-
"generate:meta": "node --loader ts-node/esm node_modules/.bin/polkadot-types-from-chain --package fula-polkadotjs-typegen/interfaces --endpoint ./edgeware.json --output ./src/interfaces"
|
|
44
|
-
},
|
|
45
|
-
"keywords": [
|
|
46
|
-
"react-native",
|
|
47
|
-
"ios",
|
|
48
|
-
"android"
|
|
49
|
-
],
|
|
50
|
-
"repository": "https://github.com/functionland/react-native-fula",
|
|
51
|
-
"author": "Ehsan Shariati <ehsan6sha@gmail.com> (https://github.com/ehsan6sha)",
|
|
52
|
-
"license": "MIT",
|
|
53
|
-
"bugs": {
|
|
54
|
-
"url": "https://github.com/functionland/react-native-fula/issues"
|
|
55
|
-
},
|
|
56
|
-
"homepage": "https://github.com/functionland/react-native-fula#readme",
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"registry": "https://registry.npmjs.org/"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.16.7",
|
|
62
|
-
"@commitlint/config-conventional": "^17.0.2",
|
|
63
|
-
"@evilmartians/lefthook": "^1.2.2",
|
|
64
|
-
"@polkadot/typegen": "^15.0.1",
|
|
65
|
-
"@react-native-community/eslint-config": "^3.0.2",
|
|
66
|
-
"@release-it/conventional-changelog": "^9.0.3",
|
|
67
|
-
"@types/jest": "^28.1.2",
|
|
68
|
-
"@types/react": "~17.0.21",
|
|
69
|
-
"@types/react-native": "0.73.0",
|
|
70
|
-
"commitlint": "^17.0.2",
|
|
71
|
-
"del-cli": "^5.0.0",
|
|
72
|
-
"eslint": "^8.4.1",
|
|
73
|
-
"eslint-config-prettier": "^8.5.0",
|
|
74
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
75
|
-
"jest": "^29.2.5",
|
|
76
|
-
"metro-react-native-babel-preset": "^0.77.0",
|
|
77
|
-
"pod-install": "^0.1.0",
|
|
78
|
-
"prettier": "^2.0.5",
|
|
79
|
-
"react": "18.2.0",
|
|
80
|
-
"react-native": "0.73.11",
|
|
81
|
-
"react-native-builder-bob": "^0.20.0",
|
|
82
|
-
"release-it": "^17.10.0",
|
|
83
|
-
"ts-jest": "^29.2.5",
|
|
84
|
-
"ts-node": "^10.9.1",
|
|
85
|
-
"turbo": "^1.10.7",
|
|
86
|
-
"typescript": "^5.7.2"
|
|
87
|
-
},
|
|
88
|
-
"resolutions": {
|
|
89
|
-
"@types/react": "17.0.21"
|
|
90
|
-
},
|
|
91
|
-
"peerDependencies": {
|
|
92
|
-
"@babel/core": "^7.0.0-0",
|
|
93
|
-
"@babel/preset-env": "^7.1.6",
|
|
94
|
-
"react": "*",
|
|
95
|
-
"react-native": "0.73.11"
|
|
96
|
-
},
|
|
97
|
-
"engines": {
|
|
98
|
-
"node": ">= 16.0.0"
|
|
99
|
-
},
|
|
100
|
-
"packageManager": "yarn@1.22.21",
|
|
101
|
-
"commitlint": {
|
|
102
|
-
"extends": [
|
|
103
|
-
"@commitlint/config-conventional"
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
"release-it": {
|
|
107
|
-
"git": {
|
|
108
|
-
"commitMessage": "chore: release ${version}",
|
|
109
|
-
"tagName": "v${version}"
|
|
110
|
-
},
|
|
111
|
-
"npm": {
|
|
112
|
-
"publish": true
|
|
113
|
-
},
|
|
114
|
-
"github": {
|
|
115
|
-
"release": true
|
|
116
|
-
},
|
|
117
|
-
"plugins": {
|
|
118
|
-
"@release-it/conventional-changelog": {
|
|
119
|
-
"preset": "angular"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"eslintConfig": {
|
|
124
|
-
"root": true,
|
|
125
|
-
"extends": [
|
|
126
|
-
"@react-native-community",
|
|
127
|
-
"prettier"
|
|
128
|
-
],
|
|
129
|
-
"rules": {
|
|
130
|
-
"prettier/prettier": [
|
|
131
|
-
"error",
|
|
132
|
-
{
|
|
133
|
-
"quoteProps": "consistent",
|
|
134
|
-
"singleQuote": true,
|
|
135
|
-
"tabWidth": 2,
|
|
136
|
-
"trailingComma": "es5",
|
|
137
|
-
"useTabs": false
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"eslintIgnore": [
|
|
143
|
-
"node_modules/",
|
|
144
|
-
"lib/"
|
|
145
|
-
],
|
|
146
|
-
"prettier": {
|
|
147
|
-
"quoteProps": "consistent",
|
|
148
|
-
"singleQuote": true,
|
|
149
|
-
"tabWidth": 2,
|
|
150
|
-
"trailingComma": "es5",
|
|
151
|
-
"useTabs": false
|
|
152
|
-
},
|
|
153
|
-
"react-native-builder-bob": {
|
|
154
|
-
"source": "src",
|
|
155
|
-
"output": "lib",
|
|
156
|
-
"targets": [
|
|
157
|
-
"commonjs",
|
|
158
|
-
"module",
|
|
159
|
-
[
|
|
160
|
-
"typescript",
|
|
161
|
-
{
|
|
162
|
-
"project": "tsconfig.build.json"
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
"dependencies": {
|
|
168
|
-
"@polkadot/api": "^15.0.1",
|
|
169
|
-
"@polkadot/keyring": "^13.2.3",
|
|
170
|
-
"@polkadot/typegen": "^15.0.1",
|
|
171
|
-
"@polkadot/util": "^13.2.3",
|
|
172
|
-
"@polkadot/util-crypto": "^13.2.3",
|
|
173
|
-
"text-encoding": "^0.7.0",
|
|
174
|
-
"yarn": "^1.22.21"
|
|
175
|
-
}
|
|
176
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@functionland/react-native-fula",
|
|
3
|
+
"version": "1.55.2",
|
|
4
|
+
"description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/commonjs/index",
|
|
7
|
+
"module": "lib/module/index",
|
|
8
|
+
"types": "lib/typescript/index.d.ts",
|
|
9
|
+
"react-native": "src/index",
|
|
10
|
+
"source": "src/index",
|
|
11
|
+
"files": [
|
|
12
|
+
"src",
|
|
13
|
+
"lib",
|
|
14
|
+
"android",
|
|
15
|
+
"ios",
|
|
16
|
+
"cpp",
|
|
17
|
+
"*.podspec",
|
|
18
|
+
"!lib/typescript/example",
|
|
19
|
+
"!ios/build",
|
|
20
|
+
"!android/build",
|
|
21
|
+
"!android/gradle",
|
|
22
|
+
"!android/gradlew",
|
|
23
|
+
"!android/gradlew.bat",
|
|
24
|
+
"!android/local.properties",
|
|
25
|
+
"!**/__tests__",
|
|
26
|
+
"!**/__fixtures__",
|
|
27
|
+
"!**/__mocks__",
|
|
28
|
+
"!**/.*"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "jest",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
34
|
+
"prepack": "bob build",
|
|
35
|
+
"release": "release-it",
|
|
36
|
+
"example": "yarn --cwd example",
|
|
37
|
+
"build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
|
|
38
|
+
"build:ios": "cd example/ios && xcodebuild -workspace FulaExample.xcworkspace -scheme FulaExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
|
|
39
|
+
"bootstrap": "yarn example && yarn install && yarn example pods",
|
|
40
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",
|
|
41
|
+
"build:polkadot": "yarn generate:defs && yarn generate:meta",
|
|
42
|
+
"generate:defs": "node --loader ts-node/esm node_modules/.bin/polkadot-types-from-defs --package fula-polkadotjs-typegen/interfaces --input ./src/interfaces --endpoint ./edgeware.json",
|
|
43
|
+
"generate:meta": "node --loader ts-node/esm node_modules/.bin/polkadot-types-from-chain --package fula-polkadotjs-typegen/interfaces --endpoint ./edgeware.json --output ./src/interfaces"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"react-native",
|
|
47
|
+
"ios",
|
|
48
|
+
"android"
|
|
49
|
+
],
|
|
50
|
+
"repository": "https://github.com/functionland/react-native-fula",
|
|
51
|
+
"author": "Ehsan Shariati <ehsan6sha@gmail.com> (https://github.com/ehsan6sha)",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/functionland/react-native-fula/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/functionland/react-native-fula#readme",
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"registry": "https://registry.npmjs.org/"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.16.7",
|
|
62
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
63
|
+
"@evilmartians/lefthook": "^1.2.2",
|
|
64
|
+
"@polkadot/typegen": "^15.0.1",
|
|
65
|
+
"@react-native-community/eslint-config": "^3.0.2",
|
|
66
|
+
"@release-it/conventional-changelog": "^9.0.3",
|
|
67
|
+
"@types/jest": "^28.1.2",
|
|
68
|
+
"@types/react": "~17.0.21",
|
|
69
|
+
"@types/react-native": "0.73.0",
|
|
70
|
+
"commitlint": "^17.0.2",
|
|
71
|
+
"del-cli": "^5.0.0",
|
|
72
|
+
"eslint": "^8.4.1",
|
|
73
|
+
"eslint-config-prettier": "^8.5.0",
|
|
74
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
75
|
+
"jest": "^29.2.5",
|
|
76
|
+
"metro-react-native-babel-preset": "^0.77.0",
|
|
77
|
+
"pod-install": "^0.1.0",
|
|
78
|
+
"prettier": "^2.0.5",
|
|
79
|
+
"react": "18.2.0",
|
|
80
|
+
"react-native": "0.73.11",
|
|
81
|
+
"react-native-builder-bob": "^0.20.0",
|
|
82
|
+
"release-it": "^17.10.0",
|
|
83
|
+
"ts-jest": "^29.2.5",
|
|
84
|
+
"ts-node": "^10.9.1",
|
|
85
|
+
"turbo": "^1.10.7",
|
|
86
|
+
"typescript": "^5.7.2"
|
|
87
|
+
},
|
|
88
|
+
"resolutions": {
|
|
89
|
+
"@types/react": "17.0.21"
|
|
90
|
+
},
|
|
91
|
+
"peerDependencies": {
|
|
92
|
+
"@babel/core": "^7.0.0-0",
|
|
93
|
+
"@babel/preset-env": "^7.1.6",
|
|
94
|
+
"react": "*",
|
|
95
|
+
"react-native": "0.73.11"
|
|
96
|
+
},
|
|
97
|
+
"engines": {
|
|
98
|
+
"node": ">= 16.0.0"
|
|
99
|
+
},
|
|
100
|
+
"packageManager": "yarn@1.22.21",
|
|
101
|
+
"commitlint": {
|
|
102
|
+
"extends": [
|
|
103
|
+
"@commitlint/config-conventional"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"release-it": {
|
|
107
|
+
"git": {
|
|
108
|
+
"commitMessage": "chore: release ${version}",
|
|
109
|
+
"tagName": "v${version}"
|
|
110
|
+
},
|
|
111
|
+
"npm": {
|
|
112
|
+
"publish": true
|
|
113
|
+
},
|
|
114
|
+
"github": {
|
|
115
|
+
"release": true
|
|
116
|
+
},
|
|
117
|
+
"plugins": {
|
|
118
|
+
"@release-it/conventional-changelog": {
|
|
119
|
+
"preset": "angular"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"eslintConfig": {
|
|
124
|
+
"root": true,
|
|
125
|
+
"extends": [
|
|
126
|
+
"@react-native-community",
|
|
127
|
+
"prettier"
|
|
128
|
+
],
|
|
129
|
+
"rules": {
|
|
130
|
+
"prettier/prettier": [
|
|
131
|
+
"error",
|
|
132
|
+
{
|
|
133
|
+
"quoteProps": "consistent",
|
|
134
|
+
"singleQuote": true,
|
|
135
|
+
"tabWidth": 2,
|
|
136
|
+
"trailingComma": "es5",
|
|
137
|
+
"useTabs": false
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"eslintIgnore": [
|
|
143
|
+
"node_modules/",
|
|
144
|
+
"lib/"
|
|
145
|
+
],
|
|
146
|
+
"prettier": {
|
|
147
|
+
"quoteProps": "consistent",
|
|
148
|
+
"singleQuote": true,
|
|
149
|
+
"tabWidth": 2,
|
|
150
|
+
"trailingComma": "es5",
|
|
151
|
+
"useTabs": false
|
|
152
|
+
},
|
|
153
|
+
"react-native-builder-bob": {
|
|
154
|
+
"source": "src",
|
|
155
|
+
"output": "lib",
|
|
156
|
+
"targets": [
|
|
157
|
+
"commonjs",
|
|
158
|
+
"module",
|
|
159
|
+
[
|
|
160
|
+
"typescript",
|
|
161
|
+
{
|
|
162
|
+
"project": "tsconfig.build.json"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"dependencies": {
|
|
168
|
+
"@polkadot/api": "^15.0.1",
|
|
169
|
+
"@polkadot/keyring": "^13.2.3",
|
|
170
|
+
"@polkadot/typegen": "^15.0.1",
|
|
171
|
+
"@polkadot/util": "^13.2.3",
|
|
172
|
+
"@polkadot/util-crypto": "^13.2.3",
|
|
173
|
+
"text-encoding": "^0.7.0",
|
|
174
|
+
"yarn": "^1.22.21"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
|
-
|
|
6
|
-
Pod::Spec.new do |s|
|
|
7
|
-
s.name = "react-native-fula"
|
|
8
|
-
s.version = package["version"]
|
|
9
|
-
s.summary = package["description"]
|
|
10
|
-
s.homepage = package["homepage"]
|
|
11
|
-
s.license = package["license"]
|
|
12
|
-
s.authors = package["author"]
|
|
13
|
-
|
|
14
|
-
s.platforms = { :ios => "13.0" }
|
|
15
|
-
s.source = { :git => "https://github.com/functionland/react-native-fula.git", :tag => "v#{s.version}" }
|
|
16
|
-
|
|
17
|
-
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
-
|
|
19
|
-
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
20
|
-
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
21
|
-
if respond_to?(:install_modules_dependencies, true)
|
|
22
|
-
install_modules_dependencies(s)
|
|
23
|
-
else
|
|
24
|
-
s.dependency "React-Core"
|
|
25
|
-
|
|
26
|
-
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
27
|
-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
28
|
-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
29
|
-
s.pod_target_xcconfig = {
|
|
30
|
-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
31
|
-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
32
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
33
|
-
}
|
|
34
|
-
s.dependency "React-Codegen"
|
|
35
|
-
s.dependency "RCT-Folly"
|
|
36
|
-
s.dependency "RCTRequired"
|
|
37
|
-
s.dependency "RCTTypeSafety"
|
|
38
|
-
s.dependency "ReactCommon/turbomodule/core"
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
s.dependency 'Fula','~> 1.54.16'
|
|
42
|
-
s.dependency "Wnfs", "1.1.1"
|
|
43
|
-
s.dependency 'CryptoSwift', '~> 1.7.1'
|
|
44
|
-
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
|
45
|
-
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
|
46
|
-
|
|
47
|
-
end
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
|
+
|
|
6
|
+
Pod::Spec.new do |s|
|
|
7
|
+
s.name = "react-native-fula"
|
|
8
|
+
s.version = package["version"]
|
|
9
|
+
s.summary = package["description"]
|
|
10
|
+
s.homepage = package["homepage"]
|
|
11
|
+
s.license = package["license"]
|
|
12
|
+
s.authors = package["author"]
|
|
13
|
+
|
|
14
|
+
s.platforms = { :ios => "13.0" }
|
|
15
|
+
s.source = { :git => "https://github.com/functionland/react-native-fula.git", :tag => "v#{s.version}" }
|
|
16
|
+
|
|
17
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
+
|
|
19
|
+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
20
|
+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
21
|
+
if respond_to?(:install_modules_dependencies, true)
|
|
22
|
+
install_modules_dependencies(s)
|
|
23
|
+
else
|
|
24
|
+
s.dependency "React-Core"
|
|
25
|
+
|
|
26
|
+
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
27
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
28
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
29
|
+
s.pod_target_xcconfig = {
|
|
30
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
31
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
32
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
33
|
+
}
|
|
34
|
+
s.dependency "React-Codegen"
|
|
35
|
+
s.dependency "RCT-Folly"
|
|
36
|
+
s.dependency "RCTRequired"
|
|
37
|
+
s.dependency "RCTTypeSafety"
|
|
38
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
s.dependency 'Fula','~> 1.54.16'
|
|
42
|
+
s.dependency "Wnfs", "1.1.1"
|
|
43
|
+
s.dependency 'CryptoSwift', '~> 1.7.1'
|
|
44
|
+
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
|
45
|
+
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
|
46
|
+
|
|
47
|
+
end
|
package/src/index.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * as fula from './protocols/fula';
|
|
2
|
-
export * as blockchain from './protocols/blockchain';
|
|
3
|
-
export * as chainApi from './protocols/chain-api';
|
|
4
|
-
export * as fxblox from './protocols/fxblox';
|
|
1
|
+
export * as fula from './protocols/fula';
|
|
2
|
+
export * as blockchain from './protocols/blockchain';
|
|
3
|
+
export * as chainApi from './protocols/chain-api';
|
|
4
|
+
export * as fxblox from './protocols/fxblox';
|
|
5
|
+
export * as fxAi from './protocols/fx-ai';
|