2017-08-03 18:23:43 +00:00
|
|
|
{
|
2017-08-18 14:50:20 +00:00
|
|
|
"name": "rocket-chat-reactnative",
|
2021-07-28 20:20:09 +00:00
|
|
|
"version": "4.19.0",
|
2017-08-03 18:23:43 +00:00
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2019-08-07 13:51:34 +00:00
|
|
|
"start": "react-native start",
|
2017-08-05 18:16:32 +00:00
|
|
|
"test": "jest",
|
2017-11-13 13:07:35 +00:00
|
|
|
"test-update": "jest --updateSnapshot",
|
2017-08-05 18:16:32 +00:00
|
|
|
"lint": "eslint .",
|
2019-05-20 20:51:47 +00:00
|
|
|
"ci": "npm run precommit && codecov",
|
2020-09-11 14:34:10 +00:00
|
|
|
"ios": "npx react-native run-ios",
|
2020-12-16 14:41:02 +00:00
|
|
|
"android": "npx react-native run-android --variant=experimentalPlayDebug",
|
|
|
|
"android-whitelabel": "npx react-native run-android --main-activity chat.rocket.reactnative.MainActivity --variant=experimentalPlayDebug --appId",
|
2017-08-09 13:12:00 +00:00
|
|
|
"log-android": "react-native log-android",
|
2019-05-20 20:51:47 +00:00
|
|
|
"snyk-protect": "snyk protect",
|
2021-07-22 17:46:59 +00:00
|
|
|
"precommit": "lint-staged",
|
2019-08-23 13:18:47 +00:00
|
|
|
"generate-source-maps-ios": "react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ios-release.bundle --sourcemap-output ios-release.bundle.map",
|
2021-05-29 10:26:36 +00:00
|
|
|
"postinstall": "patch-package && jetify",
|
2021-06-27 20:47:57 +00:00
|
|
|
"e2e:android-debug": "detox build -c and.emu.debug && detox test -c and.emu.debug",
|
2021-07-24 21:19:19 +00:00
|
|
|
"e2e:android-release": "detox build -c and.emu.release && detox test -c and.emu.release",
|
2021-07-20 13:23:29 +00:00
|
|
|
"prepare": "husky install"
|
2017-08-03 18:23:43 +00:00
|
|
|
},
|
2021-07-22 17:46:59 +00:00
|
|
|
"lint-staged": {
|
|
|
|
"*.{js,ts,tsx}": [
|
2021-07-26 21:54:31 +00:00
|
|
|
"eslint",
|
2021-07-22 17:46:59 +00:00
|
|
|
"jest --bail --findRelatedTests"
|
|
|
|
]
|
2017-12-08 19:36:03 +00:00
|
|
|
},
|
2017-08-03 18:23:43 +00:00
|
|
|
"dependencies": {
|
2021-07-28 20:36:06 +00:00
|
|
|
"@bugsnag/react-native": "^7.10.5",
|
2020-07-20 16:35:17 +00:00
|
|
|
"@codler/react-native-keyboard-aware-scroll-view": "^1.0.1",
|
2020-09-24 14:00:50 +00:00
|
|
|
"@nozbe/watermelondb": "0.19.0",
|
2020-05-08 16:37:49 +00:00
|
|
|
"@react-native-community/art": "^1.2.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"@react-native-community/async-storage": "1.12.1",
|
2020-12-01 11:58:51 +00:00
|
|
|
"@react-native-community/blur": "^3.6.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"@react-native-community/cameraroll": "4.0.4",
|
|
|
|
"@react-native-community/datetimepicker": "3.5.2",
|
2020-07-20 16:35:17 +00:00
|
|
|
"@react-native-community/hooks": "2.6.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"@react-native-community/masked-view": "0.1.11",
|
|
|
|
"@react-native-community/netinfo": "6.0.0",
|
2020-12-01 11:58:51 +00:00
|
|
|
"@react-native-community/picker": "^1.8.1",
|
2021-07-20 13:23:29 +00:00
|
|
|
"@react-native-community/slider": "3.0.3",
|
|
|
|
"@react-native-cookies/cookies": "6.0.8",
|
2020-07-24 13:19:17 +00:00
|
|
|
"@react-native-firebase/analytics": "^7.3.1",
|
|
|
|
"@react-native-firebase/app": "^8.2.0",
|
|
|
|
"@react-native-firebase/crashlytics": "^8.1.2",
|
2021-07-20 13:23:29 +00:00
|
|
|
"@react-navigation/drawer": "5.12.5",
|
|
|
|
"@react-navigation/native": "5.9.4",
|
|
|
|
"@react-navigation/stack": "5.14.5",
|
2020-11-30 17:00:06 +00:00
|
|
|
"@rocket.chat/react-native-fast-image": "^8.2.0",
|
2020-08-31 20:45:21 +00:00
|
|
|
"@rocket.chat/sdk": "RocketChat/Rocket.Chat.js.SDK#mobile",
|
2020-07-20 16:35:17 +00:00
|
|
|
"@rocket.chat/ui-kit": "0.13.0",
|
2020-09-11 14:31:38 +00:00
|
|
|
"bytebuffer": "^5.0.1",
|
2021-07-20 13:23:29 +00:00
|
|
|
"color2k": "1.2.4",
|
2019-08-27 12:25:38 +00:00
|
|
|
"commonmark": "git+https://github.com/RocketChat/commonmark.js.git",
|
|
|
|
"commonmark-react-renderer": "git+https://github.com/RocketChat/commonmark-react-renderer.git",
|
2021-02-26 16:01:45 +00:00
|
|
|
"dequal": "^2.0.2",
|
2021-07-20 13:23:29 +00:00
|
|
|
"ejson": "2.2.1",
|
2020-05-08 16:37:49 +00:00
|
|
|
"eslint-config-airbnb": "^18.1.0",
|
2020-07-14 16:07:45 +00:00
|
|
|
"expo-apple-authentication": "^2.2.1",
|
2020-07-20 16:35:17 +00:00
|
|
|
"expo-av": "8.2.1",
|
|
|
|
"expo-file-system": "9.0.1",
|
|
|
|
"expo-haptics": "8.2.1",
|
|
|
|
"expo-keep-awake": "8.2.1",
|
|
|
|
"expo-local-authentication": "9.2.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"expo-video-thumbnails": "5.1.0",
|
2020-07-20 16:35:17 +00:00
|
|
|
"expo-web-browser": "8.3.1",
|
2020-05-08 16:37:49 +00:00
|
|
|
"hoist-non-react-statics": "3.3.2",
|
2021-07-20 13:23:29 +00:00
|
|
|
"i18n-js": "3.8.0",
|
|
|
|
"js-base64": "3.6.1",
|
2018-06-13 01:33:00 +00:00
|
|
|
"js-sha256": "^0.9.0",
|
2021-07-22 17:46:59 +00:00
|
|
|
"lint-staged": "^11.1.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"lodash": "4.17.21",
|
|
|
|
"moment": "2.29.1",
|
|
|
|
"pretty-bytes": "5.6.0",
|
2019-04-30 21:56:41 +00:00
|
|
|
"prop-types": "15.7.2",
|
2021-07-21 15:50:39 +00:00
|
|
|
"react": "17.0.1",
|
|
|
|
"react-native": "RocketChat/react-native#0.64.2",
|
2020-05-20 16:33:40 +00:00
|
|
|
"react-native-animatable": "^1.3.3",
|
2020-05-08 16:37:49 +00:00
|
|
|
"react-native-appearance": "0.3.4",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-native-background-timer": "2.4.1",
|
|
|
|
"react-native-bootsplash": "3.2.4",
|
2020-08-31 20:29:44 +00:00
|
|
|
"react-native-config-reader": "^4.1.1",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-native-console-time-polyfill": "1.2.3",
|
|
|
|
"react-native-device-info": "8.1.3",
|
|
|
|
"react-native-document-picker": "5.2.0",
|
2020-05-08 17:04:37 +00:00
|
|
|
"react-native-easy-grid": "^0.2.2",
|
2019-05-15 19:33:30 +00:00
|
|
|
"react-native-easy-toast": "^1.2.0",
|
2021-07-21 15:50:39 +00:00
|
|
|
"react-native-gesture-handler": "^1.10.3",
|
2020-02-13 19:25:28 +00:00
|
|
|
"react-native-image-crop-picker": "RocketChat/react-native-image-crop-picker",
|
2019-12-18 21:13:11 +00:00
|
|
|
"react-native-image-progress": "^1.1.1",
|
2020-11-03 14:18:15 +00:00
|
|
|
"react-native-jitsi-meet": "RocketChat/react-native-jitsi-meet",
|
2019-11-25 20:01:17 +00:00
|
|
|
"react-native-keycommands": "2.0.3",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-native-localize": "2.1.1",
|
2020-06-26 20:45:21 +00:00
|
|
|
"react-native-mime-types": "2.3.0",
|
2020-09-24 14:00:50 +00:00
|
|
|
"react-native-mmkv-storage": "0.3.5",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-native-modal": "11.10.0",
|
2020-05-08 16:37:49 +00:00
|
|
|
"react-native-navigation-bar-color": "2.0.1",
|
|
|
|
"react-native-notifications": "2.1.7",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-native-notifier": "1.6.1",
|
|
|
|
"react-native-orientation-locker": "1.3.1",
|
|
|
|
"react-native-picker-select": "^8.0.4",
|
2020-10-30 13:12:02 +00:00
|
|
|
"react-native-platform-touchable": "1.1.1",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-native-popover-view": "4.0.1",
|
2020-05-08 16:37:49 +00:00
|
|
|
"react-native-progress": "4.1.2",
|
2020-03-03 20:27:38 +00:00
|
|
|
"react-native-prompt-android": "^1.1.0",
|
2020-07-20 16:35:17 +00:00
|
|
|
"react-native-reanimated": "1.9.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-native-restart": "0.0.22",
|
|
|
|
"react-native-safe-area-context": "3.2.0",
|
2020-07-20 16:35:17 +00:00
|
|
|
"react-native-screens": "2.9.0",
|
|
|
|
"react-native-scroll-bottom-sheet": "0.6.2",
|
2019-10-31 23:04:13 +00:00
|
|
|
"react-native-scrollable-tab-view": "^1.0.0",
|
2021-07-21 15:50:39 +00:00
|
|
|
"react-native-simple-crypto": "RocketChat/react-native-simple-crypto#0.5.0",
|
2020-05-08 16:37:49 +00:00
|
|
|
"react-native-slowlog": "^1.0.2",
|
2021-01-15 14:14:25 +00:00
|
|
|
"react-native-ui-lib": "RocketChat/react-native-ui-lib#minor-improvements",
|
2020-07-20 16:35:17 +00:00
|
|
|
"react-native-unimodules": "0.10.1",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-native-vector-icons": "8.1.0",
|
2020-07-20 16:35:17 +00:00
|
|
|
"react-native-webview": "10.3.2",
|
2021-07-20 13:23:29 +00:00
|
|
|
"react-redux": "7.2.4",
|
2020-05-08 16:37:49 +00:00
|
|
|
"reactotron-react-native": "5.0.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"redux": "4.1.0",
|
2020-09-24 18:34:13 +00:00
|
|
|
"redux-immutable-state-invariant": "2.1.0",
|
2019-11-18 17:52:08 +00:00
|
|
|
"redux-saga": "1.1.3",
|
2019-04-25 17:18:49 +00:00
|
|
|
"remove-markdown": "^0.3.0",
|
2020-10-30 13:51:04 +00:00
|
|
|
"reselect": "4.0.0",
|
2021-01-13 20:22:44 +00:00
|
|
|
"rn-extensions-share": "RocketChat/rn-extensions-share",
|
2020-09-30 19:31:59 +00:00
|
|
|
"rn-fetch-blob": "0.12.0",
|
2021-03-05 16:10:21 +00:00
|
|
|
"rn-root-view": "1.0.3",
|
2021-07-20 13:23:29 +00:00
|
|
|
"semver": "7.3.5",
|
|
|
|
"ua-parser-js": "0.7.28",
|
|
|
|
"url-parse": "1.5.1",
|
|
|
|
"use-deep-compare-effect": "1.6.1",
|
|
|
|
"xregexp": "5.0.2"
|
2017-08-03 18:23:43 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-07-21 15:50:39 +00:00
|
|
|
"@babel/core": "^7.12.9",
|
2021-02-26 16:01:45 +00:00
|
|
|
"@babel/eslint-parser": "^7.13.4",
|
|
|
|
"@babel/eslint-plugin": "^7.13.0",
|
2020-07-20 16:35:17 +00:00
|
|
|
"@babel/plugin-proposal-decorators": "^7.8.3",
|
2021-07-21 15:50:39 +00:00
|
|
|
"@babel/runtime": "^7.12.5",
|
2021-07-28 20:36:06 +00:00
|
|
|
"@bugsnag/source-maps": "^2.2.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"@storybook/addon-storyshots": "5.3.21",
|
|
|
|
"@storybook/react-native": "5.3.25",
|
2020-05-08 16:37:49 +00:00
|
|
|
"@types/react-native": "^0.62.7",
|
2021-07-20 13:23:29 +00:00
|
|
|
"axios": "0.21.1",
|
2021-07-21 15:50:39 +00:00
|
|
|
"babel-jest": "27.0.2",
|
2018-07-18 20:34:59 +00:00
|
|
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
2021-07-20 13:23:29 +00:00
|
|
|
"codecov": "3.8.2",
|
|
|
|
"detox": "18.17.0",
|
2021-07-21 15:50:39 +00:00
|
|
|
"eslint": "7.14.0",
|
2020-07-20 16:35:17 +00:00
|
|
|
"eslint-plugin-import": "2.22.0",
|
|
|
|
"eslint-plugin-jsx-a11y": "6.3.1",
|
|
|
|
"eslint-plugin-react": "7.20.3",
|
2020-05-08 16:37:49 +00:00
|
|
|
"eslint-plugin-react-native": "3.8.1",
|
2021-07-20 13:23:29 +00:00
|
|
|
"husky": "^6.0.0",
|
2017-11-13 13:07:35 +00:00
|
|
|
"identity-obj-proxy": "^3.0.0",
|
2021-07-21 15:50:39 +00:00
|
|
|
"jest": "^26.6.3",
|
|
|
|
"jest-cli": "^27.0.6",
|
|
|
|
"metro-react-native-babel-preset": "^0.64.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"mocha": "9.0.1",
|
2019-04-30 21:56:41 +00:00
|
|
|
"otp.js": "1.2.0",
|
2021-07-20 13:23:29 +00:00
|
|
|
"patch-package": "6.4.7",
|
2021-07-21 15:50:39 +00:00
|
|
|
"react-dom": "17.0.1",
|
|
|
|
"react-test-renderer": "17.0.1",
|
2020-05-08 16:37:49 +00:00
|
|
|
"reactotron-redux": "3.1.3",
|
|
|
|
"reactotron-redux-saga": "4.2.3"
|
2017-08-03 18:23:43 +00:00
|
|
|
},
|
|
|
|
"jest": {
|
2018-05-23 13:39:18 +00:00
|
|
|
"testPathIgnorePatterns": [
|
2019-03-01 14:40:22 +00:00
|
|
|
"e2e",
|
|
|
|
"node_modules"
|
2018-05-23 13:39:18 +00:00
|
|
|
],
|
2021-07-20 13:23:29 +00:00
|
|
|
"transformIgnorePatterns": [
|
2021-07-21 15:50:39 +00:00
|
|
|
"node_modules/(?!(jest-)?@?react-native|@react-native-community|@react-navigation)"
|
2021-07-20 13:23:29 +00:00
|
|
|
],
|
2017-08-18 15:50:48 +00:00
|
|
|
"preset": "react-native",
|
|
|
|
"coverageDirectory": "./coverage/",
|
2017-11-13 13:07:35 +00:00
|
|
|
"collectCoverage": true,
|
|
|
|
"moduleNameMapper": {
|
2018-09-11 16:32:52 +00:00
|
|
|
".+\\.(css|styl|less|sass|scss)$": "identity-obj-proxy",
|
|
|
|
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js"
|
2018-07-18 20:34:59 +00:00
|
|
|
},
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
|
2017-11-13 13:07:35 +00:00
|
|
|
}
|
2017-11-06 23:45:48 +00:00
|
|
|
},
|
2017-11-22 14:04:44 +00:00
|
|
|
"snyk": true,
|
2017-11-06 23:45:48 +00:00
|
|
|
"engines": {
|
|
|
|
"node": ">=8.x",
|
2018-04-24 19:34:03 +00:00
|
|
|
"npm": ">=4.x"
|
2018-05-23 13:39:18 +00:00
|
|
|
},
|
|
|
|
"detox": {
|
2020-07-15 16:28:34 +00:00
|
|
|
"runner-config": "e2e/.mocharc.json",
|
|
|
|
"specs": "e2e/tests",
|
2018-05-23 13:39:18 +00:00
|
|
|
"configurations": {
|
|
|
|
"ios.sim.debug": {
|
2020-12-14 16:20:32 +00:00
|
|
|
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/Rocket.Chat Experimental.app",
|
2018-08-10 17:26:36 +00:00
|
|
|
"build": "xcodebuild -workspace ios/RocketChatRN.xcworkspace -scheme RocketChatRN -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
|
|
|
|
"type": "ios.simulator",
|
2020-05-20 16:33:40 +00:00
|
|
|
"device": {
|
2021-04-19 14:31:43 +00:00
|
|
|
"type": "iPhone 11 Pro"
|
2020-05-20 16:33:40 +00:00
|
|
|
}
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
"ios.sim.release": {
|
2020-12-14 16:20:32 +00:00
|
|
|
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/Rocket.Chat Experimental.app",
|
2018-08-10 17:26:36 +00:00
|
|
|
"build": "xcodebuild -workspace ios/RocketChatRN.xcworkspace -scheme RocketChatRN -configuration Release -sdk iphonesimulator -derivedDataPath ios/build",
|
2018-05-23 13:39:18 +00:00
|
|
|
"type": "ios.simulator",
|
2020-05-20 16:33:40 +00:00
|
|
|
"device": {
|
2021-04-19 14:31:43 +00:00
|
|
|
"type": "iPhone 11 Pro"
|
2020-07-22 16:32:21 +00:00
|
|
|
},
|
|
|
|
"artifacts": {
|
|
|
|
"plugins": {
|
|
|
|
"screenshot": {
|
|
|
|
"enabled": true,
|
|
|
|
"shouldTakeAutomaticSnapshots": true,
|
|
|
|
"keepOnlyFailedTestsArtifacts": true,
|
|
|
|
"takeWhen": {
|
|
|
|
"testStart": true,
|
|
|
|
"testDone": true,
|
|
|
|
"appNotReady": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-20 16:33:40 +00:00
|
|
|
}
|
2021-04-05 12:00:56 +00:00
|
|
|
},
|
2021-06-27 20:47:57 +00:00
|
|
|
"and.emu.debug": {
|
2021-05-28 16:05:28 +00:00
|
|
|
"device": "Pixel_API_28_AOSP",
|
|
|
|
"type": "android.emulator",
|
2021-06-27 20:47:57 +00:00
|
|
|
"binaryPath": "android/app/build/outputs/apk/e2ePlay/debug/app-e2e-play-debug.apk",
|
|
|
|
"build": "cd android && ./gradlew app:assembleE2ePlayDebug app:assembleE2ePlayDebugAndroidTest -DtestBuildType=debug && cd .."
|
2021-04-05 12:00:56 +00:00
|
|
|
},
|
2021-06-27 20:47:57 +00:00
|
|
|
"and.emu.release": {
|
2021-05-28 16:05:28 +00:00
|
|
|
"device": "Pixel_API_28_AOSP",
|
|
|
|
"type": "android.emulator",
|
2021-06-27 20:47:57 +00:00
|
|
|
"binaryPath": "android/app/build/outputs/apk/e2ePlay/release/app-e2e-play-release.apk",
|
|
|
|
"build": "cd android && ./gradlew app:assembleE2ePlayRelease app:assembleE2ePlayReleaseAndroidTest -DtestBuildType=release && cd .."
|
2018-05-23 13:39:18 +00:00
|
|
|
}
|
|
|
|
}
|
2017-08-03 18:23:43 +00:00
|
|
|
}
|
|
|
|
}
|