Update dependencies (#5885)

This commit is contained in:
Elias Nahum
2021-12-26 12:38:02 +02:00
committed by GitHub
parent 47e4306361
commit 388a4248a0
12 changed files with 2547 additions and 3384 deletions

View File

@@ -1258,41 +1258,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---
## prop-types
This product contains 'prop-types' by Facebook.
Runtime type checking for React props and similar objects.
* HOMEPAGE:
* https://facebook.github.io/react/
* LICENSE: MIT
MIT License
Copyright (c) 2013-present, Facebook, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---
## react
This product contains 'react' by Facebook.
@@ -2476,31 +2441,6 @@ SOFTWARE.
---
## react-native-status-bar-size
This product contains 'react-native-status-bar-size' by Brent Vatne.
Watch and respond to changes in the iOS status bar height
* HOMEPAGE:
* https://github.com/jgkim/react-native-status-bar-size#readme
* LICENSE: MIT
Note: An original license file for this dependency is not available. We determined the type of license based on the package registry entry for this project. The following text has been prepared using a template from the SPDX Workgroup (https://spdx.org) for this type of license.
MIT License
Copyright (c) 2019 Brent Vatne
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---
## react-native-svg
This product contains 'react-native-svg' by React Native Community.

View File

@@ -44,14 +44,6 @@ module.exports = {
'@websocket': './app/client/websocket',
},
}],
['module:react-native-dotenv', {
moduleName: '@env',
path: '.env',
blacklist: null,
whitelist: null,
safe: false,
allowUndefined: true,
}],
'react-native-reanimated/plugin',
],
exclude: ['**/*.png', '**/*.jpg', '**/*.gif'],

1687
detox/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,20 +4,20 @@
"repository": "git@github.com:mattermost/mattermost-mobile.git",
"author": "Mattermost, Inc.",
"devDependencies": {
"@babel/plugin-proposal-class-properties": "7.16.0",
"@babel/plugin-transform-modules-commonjs": "7.16.0",
"@babel/plugin-transform-runtime": "7.16.4",
"@babel/preset-env": "7.16.4",
"@babel/plugin-proposal-class-properties": "7.16.5",
"@babel/plugin-transform-modules-commonjs": "7.16.5",
"@babel/plugin-transform-runtime": "7.16.5",
"@babel/preset-env": "7.16.5",
"axios": "0.24.0",
"babel-jest": "27.4.4",
"babel-jest": "27.4.5",
"babel-plugin-module-resolver": "4.1.0",
"client-oauth2": "github:larkox/js-client-oauth2#e24e2eb5dfcbbbb3a59d095e831dbe0012b0ac49",
"deepmerge": "4.2.2",
"detox": "19.3.0",
"detox": "19.3.1",
"form-data": "4.0.0",
"jest": "27.4.4",
"jest-circus": "27.4.4",
"jest-cli": "27.4.4",
"jest": "27.4.5",
"jest-circus": "27.4.5",
"jest-cli": "27.4.5",
"jest-html-reporters": "2.1.6",
"jest-junit": "13.0.0",
"sanitize-filename": "1.6.3",

View File

@@ -4,12 +4,13 @@ PODS:
- BVLinearGradient (2.5.6):
- React
- DoubleConversion (1.1.6)
- EXFileSystem (13.0.3):
- EXFileSystem (13.1.0):
- ExpoModulesCore
- Expo (43.0.4):
- Expo (44.0.1):
- ExpoModulesCore
- ExpoModulesCore (0.4.9):
- ExpoModulesCore (0.6.3):
- React-Core
- ReactCommon/turbomodule/core
- FBLazyVector (0.66.4)
- FBReactNativeSpec (0.66.4):
- RCT-Folly (= 2021.06.28.00-v2)
@@ -38,9 +39,9 @@ PODS:
- lottie-react-native (5.0.1):
- lottie-ios (~> 3.2.3)
- React-Core
- Permission-Camera (3.1.0):
- Permission-Camera (3.2.0):
- RNPermissions
- Permission-PhotoLibrary (3.1.0):
- Permission-PhotoLibrary (3.2.0):
- RNPermissions
- RCT-Folly (2021.06.28.00-v2):
- boost
@@ -264,20 +265,20 @@ PODS:
- React-Core
- react-native-cookies (6.0.11):
- React-Core
- react-native-document-picker (7.1.1):
- react-native-document-picker (7.1.3):
- React-Core
- react-native-emm (1.1.7):
- React-Core
- react-native-hw-keyboard-event (0.0.4):
- React
- react-native-netinfo (7.1.5):
- react-native-netinfo (7.1.7):
- React-Core
- react-native-network-client (0.1.0):
- Alamofire (~> 5.4)
- React-Core
- Starscream (~> 4.0.4)
- SwiftyJSON (~> 5.0)
- react-native-notifications (4.1.2):
- react-native-notifications (4.1.3):
- React-Core
- react-native-paste-input (0.3.5):
- React-Core
@@ -362,13 +363,13 @@ PODS:
- React-Core
- ReactNativeKeyboardTrackingView (5.7.0):
- React
- ReactNativeNavigation (7.24.1):
- ReactNativeNavigation (7.24.3):
- HMSegmentedControl
- React-Core
- React-RCTImage
- React-RCTText
- ReactNativeNavigation/Core (= 7.24.1)
- ReactNativeNavigation/Core (7.24.1):
- ReactNativeNavigation/Core (= 7.24.3)
- ReactNativeNavigation/Core (7.24.3):
- HMSegmentedControl
- React-Core
- React-RCTImage
@@ -379,31 +380,27 @@ PODS:
- React-Core
- RNCMaskedView (0.1.11):
- React
- RNDateTimePicker (4.0.1):
- RNDateTimePicker (5.1.0):
- React-Core
- RNDeviceInfo (8.4.8):
- React-Core
- RNDevMenu (4.0.2):
- React-Core
- React-Core/DevSupport
- React-RCTNetwork
- RNFastImage (8.5.11):
- React-Core
- SDWebImage (~> 5.11.1)
- SDWebImageWebPCoder (~> 0.8.4)
- RNFileViewer (2.1.4):
- RNFileViewer (2.1.5):
- React-Core
- RNGestureHandler (2.1.0):
- React-Core
- RNKeychain (8.0.0):
- React-Core
- RNLocalize (2.1.5):
- RNLocalize (2.1.6):
- React-Core
- RNPermissions (3.1.0):
- RNPermissions (3.2.0):
- React-Core
- RNReactNativeHapticFeedback (1.13.0):
- React-Core
- RNReanimated (2.3.0):
- RNReanimated (2.3.1):
- DoubleConversion
- FBLazyVector
- FBReactNativeSpec
@@ -437,9 +434,9 @@ PODS:
- RNScreens (3.10.1):
- React-Core
- React-RCTImage
- RNSentry (3.2.7):
- RNSentry (3.2.10):
- React-Core
- Sentry (= 7.5.4)
- Sentry (= 7.7.0)
- RNShare (7.3.2):
- React-Core
- RNSVG (12.1.1):
@@ -453,9 +450,9 @@ PODS:
- SDWebImageWebPCoder (0.8.4):
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.10)
- Sentry (7.5.4):
- Sentry/Core (= 7.5.4)
- Sentry/Core (7.5.4)
- Sentry (7.7.0):
- Sentry/Core (= 7.7.0)
- Sentry/Core (7.7.0)
- simdjson (1.0.0)
- Starscream (4.0.4)
- SwiftyJSON (5.0.1)
@@ -533,7 +530,6 @@ DEPENDENCIES:
- "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)"
- "RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)"
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
- RNDevMenu (from `../node_modules/react-native-dev-menu`)
- RNFastImage (from `../node_modules/react-native-fast-image`)
- RNFileViewer (from `../node_modules/react-native-file-viewer`)
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
@@ -695,8 +691,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/@react-native-community/datetimepicker"
RNDeviceInfo:
:path: "../node_modules/react-native-device-info"
RNDevMenu:
:path: "../node_modules/react-native-dev-menu"
RNFastImage:
:path: "../node_modules/react-native-fast-image"
RNFileViewer:
@@ -745,9 +739,9 @@ SPEC CHECKSUMS:
boost: a7c83b31436843459a1961bfd74b96033dc77234
BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872
DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
EXFileSystem: 99aac7962c11c680681819dd9cbca24e20e5b1e7
Expo: 363a3f3c60d5a1d4f8badb29a869005487f2d9e4
ExpoModulesCore: e41ed0b72daeac74731816ad7997d639f0115a9d
EXFileSystem: 7d1309ba6b38b82ef7fc9e80174de3f9184ac8b4
Expo: f8cd8811d9aee5bc651a3285e1101358db610e0d
ExpoModulesCore: d04e519b3e8e21523b195bb21a40144e30f1e163
FBLazyVector: e5569e42a1c79ca00521846c223173a57aca1fe1
FBReactNativeSpec: fe08c1cd7e2e205718d77ad14b34957cce949b58
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
@@ -759,8 +753,8 @@ SPEC CHECKSUMS:
libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc
lottie-ios: c058aeafa76daa4cf64d773554bccc8385d0150e
lottie-react-native: a029a86e1689c86a07169c520ae770e84348cd20
Permission-Camera: 0db4fd6e1c556c1cf47f38b989a8084cea3ec3dd
Permission-PhotoLibrary: 9dcf80d1353d81b9f1e210c34291591236aaf2b6
Permission-Camera: 53efcbb755b0e8bdf253dbb27cc7559ccfce8480
Permission-PhotoLibrary: 7bec836dcdd04a0bfb200c314f1aae06d4476357
RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9
RCTRequired: 4bf86c70714490bca4bf2696148638284622644b
RCTTypeSafety: c475a7059eb77935fa53d2c17db299893f057d5d
@@ -777,12 +771,12 @@ SPEC CHECKSUMS:
React-logger: 933f80c97c633ee8965d609876848148e3fef438
react-native-cameraroll: 2957f2bce63ae896a848fbe0d5352c1bd4d20866
react-native-cookies: cd92f3824ed1e32a20802e8185101e14bb5b76da
react-native-document-picker: f4cc4df2eff8c9015d862a59bdaef11a153f1292
react-native-document-picker: ec07866a30707f23660c0f3ae591d669d3e89096
react-native-emm: 702d5ce2b4f43937d78d9bdc9997d068c6466ec6
react-native-hw-keyboard-event: b517cefb8d5c659a38049c582de85ff43337dc53
react-native-netinfo: a3ece35948490a9507da0c56694da525b83357df
react-native-netinfo: 27f287f2d191693f3b9d01a4273137fcf91c3b5d
react-native-network-client: 30ab97e7e6c8d6f2d2b10cc1ebad0cbf9c894c6e
react-native-notifications: 97c14bf84c64bd6a6eb7bdcdb916036d93d33428
react-native-notifications: 805108822ceff3440644d5701944f0cda35f5b4b
react-native-paste-input: 4b73d92119105ffc0a5ec2145c4a217c107bcb3b
react-native-safe-area-context: 584dc04881deb49474363f3be89e4ca0e854c057
react-native-video: a4c2635d0802f983594b7057e1bce8f442f0ad28
@@ -802,31 +796,30 @@ SPEC CHECKSUMS:
ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab
ReactNativeExceptionHandler: b11ff67c78802b2f62eed0e10e75cb1ef7947c60
ReactNativeKeyboardTrackingView: 02137fac3b2ebd330d74fa54ead48b14750a2306
ReactNativeNavigation: 23ac4081ca7439b35412242cb3a0a33adf615887
ReactNativeNavigation: e16d74494fbac09d9ff9681b8089a20fad593aeb
RNCAsyncStorage: ea6b5c280997b2b32a587793163b1f10e580c4f7
RNCClipboard: 41d8d918092ae8e676f18adada19104fa3e68495
RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489
RNDateTimePicker: a654a0ebfa3dd78bbe5389421aa2d3d5b2744e47
RNDateTimePicker: 1dd15d7ed1ab7d999056bc77879a42920d139c12
RNDeviceInfo: 0400a6d0c94186d1120c3cbd97b23abc022187a9
RNDevMenu: fd325b5554b61fe7f48d9205a3877cf5ee88cd7c
RNFastImage: 1f2cab428712a4baaf78d6169eaec7f622556dd7
RNFileViewer: 83cc066ad795b1f986791d03b56fe0ee14b6a69f
RNFileViewer: ce7ca3ac370e18554d35d6355cffd7c30437c592
RNGestureHandler: e5c7cab5f214503dcefd6b2b0cefb050e1f51c4a
RNKeychain: 4f63aada75ebafd26f4bc2c670199461eab85d94
RNLocalize: 74b82db20cc3895ccc25af992c644879bcec2815
RNPermissions: 4b54095940aea8c03fa3e6c92d4ac3647b31ed4e
RNLocalize: f10d91c76a5692d4cf6f218c70f6e4d7dcb42d1c
RNPermissions: f7ebe52db07c00901127966ca080b4ec6a6ceb0a
RNReactNativeHapticFeedback: b83bfb4b537bdd78eb4f6ffe63c6884f7b049ead
RNReanimated: 569c269480a76e39196aa17a5df08ef1561db5ff
RNReanimated: da3860204e5660c0dd66739936732197d359d753
RNRudderSdk: 1a629f815632d62459ea1add0fd4e853598d34a5
RNScreens: 522705f2e5c9d27efb17f24aceb2bf8335bc7b8e
RNSentry: bf1f0970fffd3519a5cf553217f281bbb5b10de4
RNSentry: 04bb48bfdd435f5b218cf363f89e6419e9a2460c
RNShare: d76b8c9c6e6ffb38fc18f40b4338c9d867592ed3
RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f
RNVectorIcons: 4143ba35feebab8fdbe6bc43d1e776b393d47ac8
Rudder: db8cfa8e5757599dfec74a1bdd04dc17b3859789
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: f93010f3f6c031e2f8fb3081ca4ee6966c539815
Sentry: 5c5dd4005f3b7b9765d5a8871232cddbd0d888b7
Sentry: e58e062056a061ae1145e22ad3dff6e506bff177
simdjson: c96317b3a50dff3468a42f586ab7ed22c6ab2fd9
Starscream: 5178aed56b316f13fa3bc55694e583d35dd414d9
SwiftyJSON: 2f33a42c6fbc52764d96f13368585094bfd8aa5e

3792
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,13 +7,12 @@
"license": "Apache 2.0",
"private": true,
"dependencies": {
"@babel/runtime": "7.16.3",
"@formatjs/intl-datetimeformat": "4.2.6",
"@formatjs/intl-datetimeformat": "4.3.0",
"@formatjs/intl-getcanonicallocales": "1.8.0",
"@formatjs/intl-locale": "2.4.41",
"@formatjs/intl-numberformat": "7.2.6",
"@formatjs/intl-pluralrules": "4.1.6",
"@formatjs/intl-relativetimeformat": "9.3.3",
"@formatjs/intl-numberformat": "7.3.0",
"@formatjs/intl-pluralrules": "4.2.0",
"@formatjs/intl-relativetimeformat": "9.4.0",
"@mattermost/react-native-emm": "1.1.7",
"@mattermost/react-native-network-client": "github:mattermost/react-native-network-client",
"@mattermost/react-native-paste-input": "0.3.5",
@@ -23,40 +22,39 @@
"@react-native-community/art": "1.2.0",
"@react-native-community/cameraroll": "4.1.2",
"@react-native-community/clipboard": "1.5.1",
"@react-native-community/datetimepicker": "4.0.1",
"@react-native-community/datetimepicker": "5.1.0",
"@react-native-community/masked-view": "0.1.11",
"@react-native-community/netinfo": "7.1.5",
"@react-native-community/netinfo": "7.1.7",
"@react-native-cookies/cookies": "6.0.11",
"@react-navigation/bottom-tabs": "6.0.9",
"@react-navigation/native": "6.0.6",
"@rudderstack/rudder-sdk-react-native": "1.1.0",
"@sentry/react-native": "3.2.7",
"@sentry/react-native": "3.2.10",
"@types/mime-db": "1.43.1",
"commonmark": "0.30.0",
"commonmark-react-renderer": "4.3.5",
"deep-equal": "2.0.5",
"deepmerge": "4.2.2",
"emoji-regex": "10.0.0",
"expo": "43.0.4",
"fuse.js": "6.4.6",
"expo": "44.0.1",
"fuse.js": "6.5.3",
"jail-monkey": "2.6.0",
"lottie-ios": "3.2.3",
"lottie-react-native": "5.0.1",
"mime-db": "1.51.0",
"moment-timezone": "0.5.34",
"prop-types": "15.7.2",
"react": "17.0.2",
"react-intl": "5.23.0",
"react-intl": "5.24.0",
"react-native": "0.66.4",
"react-native-android-open-settings": "1.3.0",
"react-native-button": "3.0.1",
"react-native-calendars": "1.1271.0",
"react-native-calendars": "1.1274.0",
"react-native-device-info": "8.4.8",
"react-native-document-picker": "7.1.1",
"react-native-document-picker": "7.1.3",
"react-native-elements": "3.4.2",
"react-native-exception-handler": "2.10.10",
"react-native-fast-image": "8.5.11",
"react-native-file-viewer": "2.1.4",
"react-native-file-viewer": "2.1.5",
"react-native-gesture-handler": "2.1.0",
"react-native-haptic-feedback": "1.13.0",
"react-native-hw-keyboard-event": "0.0.4",
@@ -64,12 +62,12 @@
"react-native-keyboard-tracking-view": "5.7.0",
"react-native-keychain": "8.0.0",
"react-native-linear-gradient": "2.5.6",
"react-native-localize": "2.1.5",
"react-native-navigation": "7.24.1",
"react-native-localize": "2.1.6",
"react-native-navigation": "7.24.3",
"react-native-neomorph-shadows": "1.1.2",
"react-native-notifications": "4.1.2",
"react-native-permissions": "3.1.0",
"react-native-reanimated": "2.3.0",
"react-native-notifications": "4.1.3",
"react-native-permissions": "3.2.0",
"react-native-reanimated": "2.3.1",
"react-native-redash": "16.2.3",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "3.10.1",
@@ -91,15 +89,16 @@
},
"devDependencies": {
"@babel/cli": "7.16.0",
"@babel/core": "7.16.0",
"@babel/eslint-parser": "7.16.3",
"@babel/plugin-proposal-class-properties": "7.16.0",
"@babel/plugin-proposal-decorators": "7.16.4",
"@babel/plugin-transform-flow-strip-types": "7.16.0",
"@babel/plugin-transform-runtime": "7.16.4",
"@babel/preset-env": "7.16.4",
"@babel/preset-typescript": "7.16.0",
"@babel/register": "7.16.0",
"@babel/core": "7.16.5",
"@babel/eslint-parser": "7.16.5",
"@babel/plugin-proposal-class-properties": "7.16.5",
"@babel/plugin-proposal-decorators": "7.16.5",
"@babel/plugin-transform-flow-strip-types": "7.16.5",
"@babel/plugin-transform-runtime": "7.16.5",
"@babel/preset-env": "7.16.5",
"@babel/preset-typescript": "7.16.5",
"@babel/register": "7.16.5",
"@babel/runtime": "7.16.5",
"@react-native-community/eslint-config": "3.0.1",
"@testing-library/react-native": "9.0.0",
"@types/commonmark": "0.27.5",
@@ -107,8 +106,8 @@
"@types/deep-equal": "1.0.1",
"@types/jest": "27.0.3",
"@types/lodash": "4.14.178",
"@types/react": "17.0.37",
"@types/react-native": "0.66.8",
"@types/react": "17.0.38",
"@types/react-native": "0.66.10",
"@types/react-native-button": "3.0.1",
"@types/react-native-share": "3.3.3",
"@types/react-native-video": "5.0.11",
@@ -116,40 +115,37 @@
"@types/semver": "7.3.9",
"@types/shallow-equals": "1.0.0",
"@types/tinycolor2": "1.4.3",
"@types/url-parse": "1.4.5",
"@typescript-eslint/eslint-plugin": "5.6.0",
"@typescript-eslint/parser": "5.6.0",
"babel-jest": "27.4.4",
"@types/url-parse": "1.4.6",
"@typescript-eslint/eslint-plugin": "5.8.0",
"@typescript-eslint/parser": "5.8.0",
"babel-jest": "27.4.5",
"babel-loader": "8.2.3",
"babel-plugin-module-resolver": "4.1.0",
"babel-plugin-transform-remove-console": "6.9.4",
"deep-freeze": "0.0.1",
"detox": "19.3.0",
"eslint": "8.4.1",
"detox": "19.3.1",
"eslint": "8.5.0",
"eslint-plugin-header": "3.1.1",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-jest": "25.3.0",
"eslint-plugin-mattermost": "github:mattermost/eslint-plugin-mattermost#23abcf9988f7fa00d26929f11841aab7ccb16b2b",
"eslint-plugin-react": "7.27.1",
"eslint-plugin-react": "7.28.0",
"eslint-plugin-react-hooks": "4.3.0",
"husky": "7.0.4",
"isomorphic-fetch": "3.0.0",
"jest": "27.4.4",
"jest-cli": "27.4.4",
"jest": "27.4.5",
"jest-cli": "27.4.5",
"jetifier": "2.0.0",
"metro-react-native-babel-preset": "0.66.2",
"mmjstool": "github:mattermost/mattermost-utilities#519b99a4e51e6c67a0dbd46a6efdff27dc835aaa",
"mock-async-storage": "2.2.0",
"nock": "13.2.1",
"patch-package": "6.4.7",
"react-native-dev-menu": "4.0.2",
"react-native-dotenv": "3.3.0",
"react-native-storybook-loader": "2.0.4",
"react-native-svg-transformer": "0.14.3",
"react-test-renderer": "17.0.2",
"ts-jest": "27.1.1",
"typescript": "4.5.3",
"underscore": "1.13.1",
"ts-jest": "27.1.2",
"typescript": "4.5.4",
"underscore": "1.13.2",
"util": "0.12.4"
},
"scripts": {

View File

@@ -0,0 +1,166 @@
diff --git a/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt b/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt
index 53bf40f..0ba5d89 100644
--- a/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt
+++ b/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt
@@ -56,6 +56,7 @@ import okhttp3.Callback
import okhttp3.Headers
import okhttp3.JavaNetCookieJar
import okhttp3.MediaType
+import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.MultipartBody
import okhttp3.OkHttpClient
import okhttp3.Request
@@ -63,11 +64,7 @@ import okhttp3.RequestBody
import okhttp3.Response
import okhttp3.ResponseBody
-import okio.Buffer
-import okio.BufferedSource
-import okio.ForwardingSource
-import okio.Okio
-import okio.Source
+import okio.*
import org.apache.commons.codec.binary.Hex
import org.apache.commons.codec.digest.DigestUtils
@@ -766,7 +763,7 @@ open class FileSystemModule(
}
val body = createRequestBody(options, decorator, fileUri.toFile())
- return requestBuilder.method(method, body).build()
+ return method?.let { requestBuilder.method(it, body).build() }
} catch (e: Exception) {
e.message?.let { Log.e(TAG, it) }
promise.reject(e)
@@ -791,7 +788,7 @@ open class FileSystemModule(
} ?: URLConnection.guessContentTypeFromName(file.name)
val fieldName = options["fieldName"]?.let { it as String } ?: file.name
- bodyBuilder.addFormDataPart(fieldName, file.name, decorator.decorate(RequestBody.create(MediaType.parse(mimeType), file)))
+ bodyBuilder.addFormDataPart(fieldName, file.name, decorator.decorate(RequestBody.create(mimeType.toMediaTypeOrNull(), file)))
bodyBuilder.build()
}
else -> {
@@ -816,9 +813,9 @@ open class FileSystemModule(
override fun onResponse(call: Call, response: Response) {
val result = Bundle().apply {
- putString("body", response.body()?.string())
- putInt("status", response.code())
- putBundle("headers", translateHeaders(response.headers()))
+ putString("body", response.body?.string())
+ putInt("status", response.code)
+ putBundle("headers", translateHeaders(response.headers))
}
response.close()
promise.resolve(result)
@@ -866,7 +863,7 @@ open class FileSystemModule(
taskHandlers[uuid] = TaskHandler(call)
call.enqueue(object : Callback {
override fun onFailure(call: Call, e: IOException) {
- if (call.isCanceled) {
+ if (call.isCanceled()) {
promise.resolve(null)
return
}
@@ -876,11 +873,11 @@ open class FileSystemModule(
override fun onResponse(call: Call, response: Response) {
val result = Bundle()
- val body = response.body()
+ val body = response.body
result.apply {
putString("body", body?.string())
- putInt("status", response.code())
- putBundle("headers", translateHeaders(response.headers()))
+ putInt("status", response.code)
+ putBundle("headers", translateHeaders(response.headers))
}
response.close()
promise.resolve(result)
@@ -900,10 +897,10 @@ open class FileSystemModule(
val resources = context.resources
val packageName = context.packageName
val resourceId = resources.getIdentifier(url, "raw", packageName)
- val bufferedSource = Okio.buffer(Okio.source(context.resources.openRawResource(resourceId)))
+ val bufferedSource = context.resources.openRawResource(resourceId).source().buffer()
val file = uri.toFile()
file.delete()
- val sink = Okio.buffer(Okio.sink(file))
+ val sink = file.sink().buffer()
sink.writeAll(bufferedSource)
sink.close()
val result = Bundle()
@@ -934,13 +931,13 @@ open class FileSystemModule(
override fun onResponse(call: Call, response: Response) {
val file = uri.toFile()
file.delete()
- val sink = Okio.buffer(Okio.sink(file))
- sink.writeAll(response.body()!!.source())
+ val sink = file.sink().buffer()
+ sink.writeAll(response.body!!.source())
sink.close()
val result = Bundle().apply {
putString("uri", Uri.fromFile(file).toString())
- putInt("status", response.code())
- putBundle("headers", translateHeaders(response.headers()))
+ putInt("status", response.code)
+ putBundle("headers", translateHeaders(response.headers))
if (options?.get("md5") == true) {
putString("md5", md5(file))
}
@@ -1003,7 +1000,7 @@ open class FileSystemModule(
?.addNetworkInterceptor { chain ->
val originalResponse = chain.proceed(chain.request())
originalResponse.newBuilder()
- .body(ProgressResponseBody(originalResponse.body(), progressListener))
+ .body(ProgressResponseBody(originalResponse.body, progressListener))
.build()
}
?.build()
@@ -1098,7 +1095,7 @@ open class FileSystemModule(
val options = params[0]?.options
return try {
val response = call!!.execute()
- val responseBody = response.body()
+ val responseBody = response.body
val input = BufferedInputStream(responseBody!!.byteStream())
val output = FileOutputStream(file, isResume == true)
val data = ByteArray(1024)
@@ -1108,15 +1105,15 @@ open class FileSystemModule(
}
val result = Bundle().apply {
putString("uri", Uri.fromFile(file).toString())
- putInt("status", response.code())
- putBundle("headers", translateHeaders(response.headers()))
+ putInt("status", response.code)
+ putBundle("headers", translateHeaders(response.headers))
options?.get("md5").takeIf { it == true }?.let { putString("md5", file?.let { md5(it) }) }
}
response.close()
promise?.resolve(result)
null
} catch (e: Exception) {
- if (call?.isCanceled == true) {
+ if (call?.isCanceled() == true) {
promise?.resolve(null)
return null
}
@@ -1139,7 +1136,7 @@ open class FileSystemModule(
override fun contentLength(): Long = responseBody?.contentLength() ?: -1
override fun source(): BufferedSource =
- bufferedSource ?: Okio.buffer(source(responseBody!!.source()))
+ bufferedSource ?: source(responseBody!!.source()).buffer()
private fun source(source: Source): Source {
return object : ForwardingSource(source) {
@@ -1304,7 +1301,7 @@ open class FileSystemModule(
// Copied out of React Native's `NetworkingModule.java`
private fun translateHeaders(headers: Headers): Bundle {
val responseHeaders = Bundle()
- for (i in 0 until headers.size()) {
+ for (i in 0 until headers.size) {
val headerName = headers.name(i)
// multiple values for the same header
if (responseHeaders[headerName] != null) {

View File

@@ -1,29 +0,0 @@
diff --git a/node_modules/react-native-reanimated/android/expo/linking.gradle b/node_modules/react-native-reanimated/android/expo/linking.gradle
index 3a583a6..81ae08b 100644
--- a/node_modules/react-native-reanimated/android/expo/linking.gradle
+++ b/node_modules/react-native-reanimated/android/expo/linking.gradle
@@ -15,12 +15,24 @@ if (isExpoLinked) {
apply plugin: 'com.android.library'
android {
+ // Disable aar bundling to fix the error when running `gradle assembleRelease` over `gradle :app:assembleRelease`
+ // which will throw `Direct local .aar file dependencies are not supported when building an AAR.`
+ tasks.whenTaskAdded { task ->
+ if (['bundleDebugAar', 'bundleReleaseAar'].contains(task.name)) {
+ task.enabled = false
+ }
+ }
+
compileSdkVersion safeExtGet('compileSdkVersion', 30)
sourceSets {
main.manifest.srcFile 'src/AndroidManifest.xml'
main.java.srcDirs = [ 'expo/src/main/java' ]
}
+
+ libraryVariants.all {
+ generateBuildConfigProvider?.get()?.enabled = false
+ }
}
dependencies {