forked from GaloyMoney/blink-mobile
-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
327 lines (327 loc) · 14.9 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
{
"name": "LNFlash",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "yarn watchman:del && react-native start",
"ios": "react-native run-ios",
"android": "react-native run-android",
"watchman:del": "if which watchman >/dev/null; then watchman watch-del $(pwd) >/dev/null; fi",
"tsc:check": "tsc -p .",
"eslint:check": "eslint . --ext .js,.ts,.tsx",
"eslint:fix": "eslint . --ext .js,.ts,.tsx --fix",
"check-code": "yarn tsc:check && yarn eslint:check && yarn check:translations && yarn check:codegen && yarn graphql-check",
"check:translations": "yarn update-translations && if git diff --name-only | grep -q 'app/i18n/i18n-types.ts'; then echo 'Error: app/i18n/i18n-types.ts has changes, run `yarn update-translations` and re-recommit' >&2; exit 1; fi",
"check:codegen": "yarn dev:codegen && if git diff --name-only | grep -q 'app/graphql/generated.ts'; then echo 'Error: app/graphql/generated.ts has changes, run `yarn dev:codegen` and re-recommit' >&2; exit 1; fi",
"test": "LOGLEVEL=warn jest --runInBand",
"graphql-check": "npx -f @graphql-inspector/cli validate app/graphql/generated.gql $(grep 'schema:' codegen.yml | cut -d' ' -f2 | tr -d '\"') --apollo --noStrictFragments --method=GET --header=apollo-require-preflight",
"coverage": "jest --runInBand --coverage",
"fastlane-update": "(cd ios && bundle update fastlane && cd ../android && bundle update fastlane)",
"increment": "(cd ios && fastlane ios increment && cd ../android && echo 'fastlane android increment')",
"get-stories": "sb-rn-get-stories --config-path=./.storybook",
"storybook-watcher": "sb-rn-watcher --config-path=./.storybook",
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 9001",
"sb-server": "NODE_OPTIONS=--openssl-legacy-provider yarn storybook-server",
"dev:codegen": "graphql-codegen --config codegen.yml && yarn dev:gengql",
"dev:gengql": "yarn node utils/create-gql.ts",
"adb": "adb reverse tcp:9090 tcp:9090 && adb reverse tcp:3000 tcp:3000 && adb reverse tcp:4000 tcp:4000 && adb reverse tcp:9001 tcp:9001 && adb reverse tcp:8081 tcp:8081 && adb reverse tcp:4002 tcp:4002 && adb reverse tcp:4455 tcp:4455",
"patch": "patch-package",
"postinstall": "jetify && yarn patch-package && if which pod >/dev/null; then (cd ios; bundle install; bundle exec pod install); fi",
"hack:types-react-native": "rimraf node_modules/@types/react-native/node_modules/@types",
"prepare": "npm-run-all patch hack:*",
"client:dev": "yalc add @galoymoney/client",
"yalc:check": "yalc check",
"update-translations": "yarn typesafe-i18n && yarn typesafe-i18n:export",
"typesafe-i18n": "typesafe-i18n --no-watch",
"typesafe-i18n:export": "tsx utils/export-language.ts",
"fonts": "npx react-native-asset",
"apk:debug": "cd android && ./gradlew assembleDebug",
"start:appium": "appium",
"fix:appium": "yarn appium-doctor",
"e2e": "yarn test:e2e:android && yarn test:e2e:ios",
"test:get:device": "./bin/get-testing-device.sh",
"test:e2e:android": ". ./bin/get-testing-device.sh && E2E_DEVICE=\"android\" ./node_modules/.bin/wdio e2e/config/wdio.conf.js",
"test:sb:android": ". ./bin/get-testing-device.sh && E2E_DEVICE=\"android\" ./node_modules/.bin/wdio e2e/config/story-book.wdio.conf.js",
"test:e2e:ios": ". ./bin/get-testing-device.sh && E2E_DEVICE=\"ios\" ./node_modules/.bin/wdio e2e/config/wdio.conf.js",
"test:browserstack:android": "E2E_DEVICE=\"android\" ./node_modules/.bin/wdio e2e/config/browserstack.conf.js",
"test:browserstack:ios": "E2E_DEVICE=\"ios\" ./node_modules/.bin/wdio e2e/config/browserstack.conf.js",
"test-android": ". ./bin/get-testing-device.sh && E2E_DEVICE=\"android\" NO_RESET=true ./node_modules/.bin/wdio e2e/config/wdio.conf.js --spec e2e/config/single-test-runner.js",
"test-ios": ". ./bin/get-testing-device.sh && E2E_DEVICE=\"ios\" NO_RESET=true ./node_modules/.bin/wdio e2e/config/wdio.conf.js --spec e2e/config/single-test-runner.js",
"cache:clear": "watchman watch-del-all && rm -rf node_modules && rm -rf /tmp/metro-* && rm -rf ios/Pods && rm -rf ~/Library/Developer/Xcode/DerivedData",
"android:prepareAssets": "./android/gradlew clean -b ./android/build.gradle && npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res",
"android:buildDebug": "yarn android:prepareAssets && ./android/gradlew -b ./android/build.gradle assembleDebug -Dorg.gradle.jvmargs='-Xmx4g -XX:MaxPermSize=512m'",
"ios:prepareAssets": "react-native bundle --entry-file index.js --bundle-output ./ios/main.jsbundle --assets-dest ./ios/ --platform ios --dev false",
"bundle-visualizer": "yarn run react-native-bundle-visualizer",
"splash": "yarn react-native generate-bootsplash --background-color \"#000\" --logo-width 300 app/assets/logo/app-logo-dark.svg",
"aab-android": "cd android && ./gradlew bundleRelease && cd ..",
"apk-android": "cd android && ./gradlew app:assembleRelease && cd .."
},
"dependencies": {
"@apollo/client": "3.9.0-alpha.5",
"@bitcoinerlab/secp256k1": "^1.0.5",
"@breeztech/react-native-breez-sdk-liquid": "^0.3.0",
"@flash/client": "git+https://github.com/lnflash/flash-client.git",
"@flyerhq/react-native-chat-ui": "^1.4.3",
"@flyerhq/react-native-link-preview": "^1.6.0",
"@formatjs/intl-getcanonicallocales": "^2.3.0",
"@formatjs/intl-locale": "^3.4.3",
"@formatjs/intl-relativetimeformat": "^11.2.10",
"@galoymoney/client": "^0.2.8",
"@galoymoney/react-native-geetest-module": "^0.1.3",
"@noble/curves": "^1.1.0",
"@noble/secp256k1": "^2.0.0",
"@nostr-dev-kit/ndk": "^2.2.0",
"@nostr-dev-kit/ndk-cache-redis": "^2.0.5",
"@notifee/react-native": "^7.8.2",
"@react-native-async-storage/async-storage": "^1.19.3",
"@react-native-clipboard/clipboard": "^1.12.1",
"@react-native-firebase/analytics": "^18.6.0",
"@react-native-firebase/app": "^18.6.0",
"@react-native-firebase/app-check": "^18.6.0",
"@react-native-firebase/crashlytics": "^18.6.0",
"@react-native-firebase/messaging": "^18.6.0",
"@react-native-firebase/remote-config": "^18.6.0",
"@react-navigation/bottom-tabs": "^6.5.11",
"@react-navigation/material-top-tabs": "^6.6.6",
"@react-navigation/native": "^6.1.9",
"@react-navigation/stack": "^6.3.20",
"@reduxjs/toolkit": "^2.2.1",
"@rneui/base": "^4.0.0-rc.8",
"@rneui/themed": "^4.0.0-rc.8",
"@sinonjs/text-encoding": "^0.7.2",
"@snort/system": "^1.1.8",
"@stablelib/xchacha20": "^1.0.1",
"apollo3-cache-persist": "^0.14.1",
"axios": "^1.6.2",
"bech32": "^2.0.0",
"bip39": "^3.1.0",
"bitcoinjs-lib": "^6.1.5",
"bolt11": "^1.4.0",
"byte-base64": "^1.1.0",
"crypto-browserify": "^3.12.0",
"date-fns": "^3.6.0",
"dotenv": "^16.3.1",
"fuse.js": "^7.0.0",
"graphql": "^16.8.1",
"graphql-ws": "^5.14.2",
"intl": "^1.2.5",
"intl-pluralrules": "^2.0.1",
"js-lnurl": "0.5.1",
"js-sha256": "^0.9.0",
"jsc-android": "245459.0.0",
"jwt-decode": "^3.1.2",
"libphonenumber-js": "^1.10.30",
"lnurl-pay": "^3.0.1",
"lodash.merge": "^4.6.2",
"long": "^5.2.3",
"moment": "^2.29.3",
"ndk-cli": "^0.5.2",
"node-forge": "^1.3.1",
"node-libs-react-native": "^1.2.1",
"nostr-tools": "^2.3.1",
"react": "18.2.0",
"react-content-loader": "^6.2.0",
"react-dom": "^18.0.0",
"react-native": "0.72.7",
"react-native-aes-crypto": "^2.1.1",
"react-native-base64": "^0.2.1",
"react-native-bootsplash": "^4.6.0",
"react-native-config": "^1.5.1",
"react-native-countdown-circle-timer": "^3.2.1",
"react-native-country-picker-modal": "^2.0.0",
"react-native-crypto": "^2.2.0",
"react-native-currency-input": "^1.1.1",
"react-native-date-picker": "^5.0.5",
"react-native-device-info": "^10.11.0",
"react-native-document-picker": "^9.0.1",
"react-native-dotenv": "^3.4.9",
"react-native-error-boundary": "^1.2.3",
"react-native-file-viewer": "^2.1.5",
"react-native-fingerprint-scanner": "git+https://github.com/hieuvp/react-native-fingerprint-scanner.git#9cecc0db326471c571553ea85f7c016fee2f803d",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.14.0",
"react-native-get-random-values": "^1.9.0",
"react-native-gradle-plugin": "^0.71.19",
"react-native-haptic-feedback": "^2.0.3",
"react-native-html-to-pdf": "^0.12.0",
"react-native-image-crop-picker": "^0.39.0",
"react-native-image-picker": "^7.0.0",
"react-native-in-app-review": "^4.3.3",
"react-native-inappbrowser-reborn": "^3.7.0",
"react-native-indicators": "^0.17.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-keychain": "^8.1.1",
"react-native-linear-gradient": "^2.8.2",
"react-native-localize": "^2.2.2",
"react-native-maps": "^1.4.0",
"react-native-modal": "^13.0.1",
"react-native-nfc-manager": "^3.14.8",
"react-native-pager-view": "^6.2.3",
"react-native-permissions": "^4.1.5",
"react-native-push-notification": "^8.1.1",
"react-native-qrcode-svg": "^6.2.0",
"react-native-quick-crypto": "^0.7.4",
"react-native-randombytes": "^3.6.1",
"react-native-rate": "^1.2.12",
"react-native-reanimated": "^3.5.4",
"react-native-reanimated-carousel": "^3.5.1",
"react-native-root-siblings": "^4.1.1",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "^3.25.0",
"react-native-secure-key-store": "^2.0.9",
"react-native-securerandom": "^1.0.1",
"react-native-share": "^10.2.1",
"react-native-svg": "^14.0.0",
"react-native-swiper": "^1.6.0",
"react-native-tab-view": "^3.5.2",
"react-native-toast-message": "^2.1.5",
"react-native-url-polyfill": "^2.0.0",
"react-native-vector-icons": "^10.0.2",
"react-native-video": "^5.2.1",
"react-native-view-shot": "^3.7.0",
"react-native-vision-camera": "3.6.4",
"react-native-walkthrough-tooltip": "^1.4.0",
"react-native-webln": "^0.1.11",
"react-native-webview": "^13.8.1",
"react-native-webview-crypto": "^0.0.25",
"react-redux": "^9.1.0",
"rn-qr-generator": "^1.2.1",
"styled-components": "^6.1.8",
"subscriptions-transport-ws": "^0.11.0",
"text-encoding": "^0.7.0",
"typesafe-i18n": "^5.26.2",
"url": "^0.11.0",
"use-count-up": "^3.0.1",
"uuid": "^9.0.0",
"validator": "^13.9.0",
"victory-native": "^36.5.0",
"webln": "^0.3.2"
},
"devDependencies": {
"@babel/core": "^7.21.8",
"@babel/preset-env": "^7.20.2",
"@babel/runtime": "^7.20.13",
"@graphql-codegen/add": "^4.0.0",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
"@graphql-codegen/typescript-resolvers": "^4.0.1",
"@graphql-inspector/cli": "^3.4.19",
"@graphql-tools/graphql-tag-pluck": "^8.0.2",
"@react-native-community/datetimepicker": "^6.7.3",
"@react-native-community/eslint-config": "^3.2.0",
"@react-native-community/slider": "^4.4.2",
"@react-native/eslint-config": "^0.72.2",
"@react-native/metro-config": "^0.72.11",
"@storybook/addon-actions": "6.5.16",
"@storybook/addon-backgrounds": "6.5.16",
"@storybook/addon-controls": "6.5.16",
"@storybook/addon-essentials": "6.5.16",
"@storybook/addon-knobs": "6.4.0",
"@storybook/addon-links": "6.5.16",
"@storybook/addon-ondevice-actions": "6.5.2",
"@storybook/addon-ondevice-backgrounds": "6.5.2",
"@storybook/addon-ondevice-controls": "6.5.2",
"@storybook/addon-ondevice-knobs": "6.5.2",
"@storybook/addon-ondevice-notes": "6.5.2",
"@storybook/addons": "6.5.16",
"@storybook/docs-tools": "6.5.16",
"@storybook/eslint-config-storybook": "3.1.2",
"@storybook/linter-config": "3.1.2",
"@storybook/react": "7.0.7",
"@storybook/react-native": "6.5.2",
"@storybook/react-native-server": "6.5.3",
"@storybook/test-runner": "^0.9.4",
"@testing-library/jest-native": "^5.4.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/react-native": "^11.5.1",
"@tsconfig/react-native": "^3.0.0",
"@types/jest": "^29.5.10",
"@types/lodash.debounce": "^4.0.9",
"@types/lodash.merge": "^4.6.7",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.17",
"@types/react-native": "0.71.1",
"@types/react-native-base64": "^0.2.0",
"@types/react-native-get-random-values": "^1.8.0",
"@types/react-native-indicators": "^0.16.6",
"@types/react-native-share": "^3.3.3",
"@types/react-native-vector-icons": "^6.4.18",
"@types/react-native-video": "^5.0.20",
"@types/react-test-renderer": "^18.0.0",
"@types/uuid": "^9.0.2",
"@types/validator": "^13.7.17",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.50.0",
"@typescript-eslint/typescript-estree": "^5.59.7",
"@wdio/cli": "^8.11.2",
"@wdio/devtools-service": "^8.10.5",
"@wdio/globals": "^8.10.5",
"@wdio/local-runner": "^8.10.5",
"@wdio/mocha-framework": "^8.12.1",
"@wdio/spec-reporter": "^8.10.5",
"babel-jest": "^29.4.1",
"babel-loader": "^9.1.2",
"babel-plugin-module-resolver": "^5.0.0",
"browserstack-local": "^1.5.1",
"cross-fetch": "^3.1.6",
"csv-parse": "^5.3.5",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-react-native": "^4.0.0",
"jest": "^29.7.0",
"jest-circus": "^29.4.1",
"jest-transform-stub": "^2.0.0",
"jest-ts-auto-mock": "^2.1.0",
"jetifier": "^2.0.0",
"jimp": "^0.22.8",
"jsqr": "^1.4.0",
"metro-config": "0.76.1",
"metro-react-native-babel-preset": "0.76.8",
"mocha": "^10.2.0",
"npm-run-all": "4.1.5",
"patch-package": "6.5.1",
"prettier": "^2.8.7",
"react-native-asset": "^2.0.1",
"react-native-bundle-visualizer": "^3.1.3",
"react-native-svg-transformer": "^1.1.0",
"react-test-renderer": "18.2.0",
"rimraf": "4.4.1",
"sharp": "^0.32.5",
"solidarity": "^3.0.0",
"ts-auto-mock": "^3.6.4",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.2",
"tsx": "^3.12.7",
"ttypescript": "^1.5.15",
"typescript": "4.9.x",
"webdriverio": "^8.15.4",
"yalc": "^1.0.0-pre.53"
},
"peerDependencies": {
"solidarity": "^2.3.1"
},
"config": {
"react-native-storybook-loader": {
"searchDir": [
"app"
],
"pattern": "**/*.stories.tsx",
"outputFile": "./.storybook/storyLoader.ts"
}
},
"resolutions": {
"types-ramda": "0.29.4"
},
"engines": {
"node": ">=16"
}
}