forked from BetterSocial/mobileapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
200 lines (200 loc) · 9.26 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
{
"name": "bettersocial",
"version": "0.0.1",
"private": true,
"scripts": {
"android:dev-debug": "cd android && ./gradlew clean && cd .. && ENVFILE=.env.development npx react-native run-android --variant=devdebug",
"android:prod-debug": "cd android && ./gradlew clean && cd .. && ENVFILE=.env.production npx react-native run-android --variant=proddebug",
"android:dev": "react-native run-android --variant=devDebug --appIdSuffix=dev",
"android:prod": "react-native run-android --variant=prodDebug --appIdSuffix=devprod",
"build:apk-android-dev": "cd android && NODENV=development ENVFILE=.env.development ./gradlew assembledevrelease",
"build:apk-android-dev-update-stream": "yarn update-stream && cd android && ./gradlew clean && ENVFILE=.env.development ./gradlew assembledevrelease",
"build:apk-android-prod": "cd android && ENVFILE=.env.production ./gradlew assembleprodrelease",
"build:apk-android-prod-update-stream": "yarn update-stream && cd android && ./gradlew clean && ENVFILE=.env.production ./gradlew assembleprodrelease",
"build:apk-android-profileable": "cd android && ENVFILE=.env.production ./gradlew assembleprodprofileable",
"build:apk-android-profileable-update-stream": "yarn update-stream && cd android && ./gradlew clean && ENVFILE=.env.production ./gradlew assembleprodprofileable",
"build:bundle-android-dev": "npm run update-env-dev && npm run update-stream && cd android && ./gradlew clean && ENVFILE=.env.development ./gradlew bundledevrelease",
"build:bundle-android-prod": "cd android && ENVFILE=.env.production ./gradlew bundleprodrelease",
"build:bundle-android-prod-update-stream": "npm run update-env-prod && npm run update-stream && cd android && ./gradlew clean && ENVFILE=.env.production ./gradlew bundleprodrelease",
"ios:dev-debug": "npm run update-env-dev && react-native run-ios --scheme 'BetterSocialDev' --simulator='iPhone 13'",
"start": "npm run update-env-dev &&react-native start",
"test": "jest --verbose --collectCoverage",
"testCoverage": "jest --verbose --coverage --collectCoverageFrom=\"./src/**\" __tests__ src",
"test:update-snapshot": "jest __tests__ src -u",
"test:content": "jest __tests__/screens/FeedScreen/ContentPoll.test.js -u && jest __tests__/screens/FeedScreen/ContentLink.test.js -u",
"lint": "eslint .",
"format": "npx prettier --check ./src",
"android:clean": "cd android && ./gradlew clean && ./gradlew cleanBuildCache",
"reinstall": "rm -rf node_modules && yarn install",
"reset": "react-native start --reset-cache",
"prepare": "husky install",
"reset-all": "rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules && npm cache clean --force && npm install && npm start -- --reset-cache",
"update-stream": "rm -rf yarn.lock && yarn cache clean && rm -rf node_modules/stream-chat && rm -rf node_modules/stream-chat-react-native-core && yarn",
"update-env-dev": "doppler secrets download -p bettersocial --no-file --format env-no-quotes --config dev > .env.development",
"update-env-prod": "doppler secrets download -p bettersocial --no-file --format env-no-quotes --config prd > .env.production"
},
"dependencies": {
"@human-internet/react-native-humanid": "^2.4.4",
"@react-native-async-storage/async-storage": "^1.15.2",
"@react-native-community/blur": "^3.6.0",
"@react-native-community/cameraroll": "^4.0.3",
"@react-native-community/checkbox": "^0.5.14",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/netinfo": "6.0.0",
"@react-native-community/push-notification-ios": "^1.10.1",
"@react-native-firebase/analytics": "11.3.1",
"@react-native-firebase/app": "11.3.1",
"@react-native-firebase/crashlytics": "11.2.0",
"@react-native-firebase/dynamic-links": "11.2.0",
"@react-native-firebase/messaging": "11.3.1",
"@react-native-firebase/perf": "11.3.1",
"@react-native-firebase/remote-config": "11.1.2",
"@react-native-picker/picker": "^2.4.7",
"@react-navigation/bottom-tabs": "^5.11.15",
"@react-navigation/core": "^5.16.1",
"@react-navigation/material-top-tabs": "^5.3.15",
"@react-navigation/native": "^5.9.3",
"@react-navigation/stack": "^5.14.3",
"@sentry/react-native": "^5.2.0",
"@stream-io/flat-list-mvcp": "0.10.1",
"@victorzimnikov/react-native-wheel-picker-android": "^3.0.3",
"axios": "^0.21.4",
"getstream": "^7.4.1",
"jwt-decode": "^3.1.2",
"lodash": "^4.17.21",
"metro-config": "^0.73.3",
"moment": "^2.29.1",
"psl": "^1.9.0",
"react": "18.0.0",
"react-native": "0.64.4",
"react-native-activity-feed": "^1.0.3",
"react-native-autolink": "^4.0.0",
"react-native-bundle-splitter": "^2.2.1",
"react-native-card-stack-swiper": "^1.2.5",
"react-native-config": "^1.5.0",
"react-native-device-info": "^8.0.5",
"react-native-document-picker": "5.0.2",
"react-native-emoji-selector": "^0.2.0",
"react-native-fast-image": "^8.5.11",
"react-native-flash-message": "^0.1.23",
"react-native-fs": "^2.16.6",
"react-native-gesture-handler": "^1.10.3",
"react-native-haptic-feedback": "^1.11.0",
"react-native-image-crop-picker": "^0.36.0",
"react-native-image-picker": "^3.2.1",
"react-native-image-resizer": "^1.4.4",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-keyevent": "^0.2.8",
"react-native-linear-gradient": "^2.5.6",
"react-native-modal": "^11.7.0",
"react-native-opengraph-kit": "3.0.1",
"react-native-permissions": "^3.2.0",
"react-native-push-notification": "^8.1.1",
"react-native-raw-bottom-sheet": "^2.2.0",
"react-native-reanimated": "2.2.0",
"react-native-responsive-fontsize": "^0.5.1",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^2.18.1",
"react-native-see-more-inline": "^1.3.0",
"react-native-shadow-2": "^7.0.6",
"react-native-share": "^5.1.6",
"react-native-shimmer-placeholder": "^2.0.8",
"react-native-simple-toast": "1.1.4",
"react-native-snap-carousel": "^3.9.1",
"react-native-splash-screen": "^3.3.0",
"react-native-svg": "^12.1.0",
"react-native-svg-transformer": "^0.14.3",
"react-native-swiper-flatlist": "^3.0.14",
"react-native-tab-view": "^2.16.0",
"react-native-text-size": "^4.0.0-rc.1",
"react-native-toast-message": "^2.1.5",
"react-native-vector-icons": "^8.1.0",
"react-native-version-number": "^0.3.6",
"react-native-walkthrough-tooltip": "^1.2.0",
"react-native-webview": "^11.26.0",
"react-string-replace": "^1.1.0",
"recoil": "^0.5.2",
"recyclerlistview": "^3.0.5",
"stream-chat": "github:kevinnath1007/stream-chat-js",
"stream-chat-react-native": "github:agit26milan/stream-chat-react-native",
"stream-chat-react-native-core": "github:agit26milan/stream-chat-react-native-core",
"toggle-switch-react-native": "^3.2.0",
"uri-scheme": "^1.0.120"
},
"devDependencies": {
"@babel/core": "7.13.10",
"@babel/plugin-transform-typescript": "^7.14.6",
"@babel/preset-env": "^7.14.8",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "7.13.10",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@react-native-community/eslint-config": "2.0.0",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "^9.1.0",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^29.2.3",
"@types/react": "^17.0.47",
"@types/react-native": "^0.64.10",
"babel-eslint": "^10.1.0",
"babel-jest": "^27.0.2",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-plugin-transform-remove-console": "^6.9.4",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
"eslint": "^7.31.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-babel-module": "5.3.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "6.6.0",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react-native": "^3.11.0",
"generate-changelog": "^1.8.0",
"husky": "^7.0.0",
"jest": "25.5.4",
"lint-staged": ">=10",
"metro-react-native-babel-preset": "0.64.0",
"prettier": "^2.3.2",
"prop-types": "^15.7.2",
"react-devtools": "^4.10.1",
"react-dom": "18.0.0",
"react-test-renderer": "18.0.0",
"reactotron-react-native": "5.0.2",
"reactotron-recoil-plugin": "^1.1.0",
"ts-jest": "^29.0.3"
},
"resolutions": {
"stream-chat": "github:kevinnath1007/stream-chat-js",
"stream-chat-react-native-core": "github:agit26milan/stream-chat-react-native-core"
},
"jest": {
"preset": "react-native",
"setupFilesAfterEnv": [
"<rootDir>/jestSetup.js"
],
"moduleDirectories": [
"<rootDir>/node_modules",
"<rootDir>/src"
],
"moduleNameMapper": {
"\\.svg": "<rootDir>/__mocks__/svgMock.js"
},
"collectCoverageFrom": [
"__tests__",
"src/**/*.{js,jsx}"
]
},
"lint-staged": {
"src/**/*.{js,ts,jsx,tsx}": [
"yarn eslint --cache --fix"
],
"*.json": [
"prettier --write"
]
}
}