Upgrade react-native-fast-image, react-native-localize, react-native-vector-icons, react-native-video & dev dependencies (#4698)
This commit is contained in:
parent
c095d45330
commit
3fce45f308
9 changed files with 1965 additions and 1820 deletions
|
|
@ -35,7 +35,7 @@ class SettingDrawerButton extends PureComponent {
|
|||
|
||||
const icon = (
|
||||
<Icon
|
||||
name='md-more'
|
||||
name='ellipsis-vertical'
|
||||
size={25}
|
||||
color={theme.sidebarHeaderTextColor}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ exports[`ImagePreview should match snapshot 1`] = `
|
|||
<Icon
|
||||
allowFontScaling={false}
|
||||
color="#fff"
|
||||
name="ios-download"
|
||||
name="download-outline"
|
||||
size={26}
|
||||
/>
|
||||
</ForwardRef>
|
||||
|
|
@ -248,7 +248,7 @@ exports[`ImagePreview should match snapshot, renderDownloadButton 1`] = `
|
|||
<Icon
|
||||
allowFontScaling={false}
|
||||
color="#fff"
|
||||
name="ios-download"
|
||||
name="download-outline"
|
||||
size={26}
|
||||
/>
|
||||
</ForwardRef>
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ export default class Downloader extends PureComponent {
|
|||
if (realFill === 100) {
|
||||
component = (
|
||||
<Icon
|
||||
name='ios-checkmark'
|
||||
name='checkmark'
|
||||
size={64}
|
||||
color='white'
|
||||
/>
|
||||
|
|
@ -169,7 +169,7 @@ export default class Downloader extends PureComponent {
|
|||
<TouchableOpacity onPress={this.startDownload}>
|
||||
<View style={styles.manualDownloadContainer}>
|
||||
<Icon
|
||||
name='md-download'
|
||||
name='download-outline'
|
||||
size={48}
|
||||
color='white'
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ export default class ImagePreview extends PureComponent {
|
|||
if (Platform.OS === 'android') {
|
||||
icon = (
|
||||
<Icon
|
||||
name='md-more'
|
||||
name='ellipsis-vertical'
|
||||
size={32}
|
||||
color='#fff'
|
||||
/>
|
||||
|
|
@ -260,7 +260,7 @@ export default class ImagePreview extends PureComponent {
|
|||
} else if (file.source || isVideo(file.data)) {
|
||||
icon = (
|
||||
<Icon
|
||||
name='ios-download'
|
||||
name='download-outline'
|
||||
size={26}
|
||||
color='#fff'
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ PODS:
|
|||
- libwebp/webp (1.1.0)
|
||||
- MMKV (1.2.1):
|
||||
- MMKVCore (~> 1.2.1)
|
||||
- MMKVCore (1.2.1)
|
||||
- MMKVCore (1.2.2)
|
||||
- Permission-Camera (2.1.5):
|
||||
- RNPermissions
|
||||
- Permission-PhotoLibrary (2.1.5):
|
||||
|
|
@ -233,10 +233,10 @@ PODS:
|
|||
- React
|
||||
- react-native-safe-area-context (1.0.0):
|
||||
- React
|
||||
- react-native-video (5.0.2):
|
||||
- react-native-video (5.1.0-alpha7):
|
||||
- React
|
||||
- react-native-video/Video (= 5.0.2)
|
||||
- react-native-video/Video (5.0.2):
|
||||
- react-native-video/Video (= 5.1.0-alpha7)
|
||||
- react-native-video/Video (5.1.0-alpha7):
|
||||
- React
|
||||
- react-native-webview (7.0.1):
|
||||
- React
|
||||
|
|
@ -318,17 +318,17 @@ PODS:
|
|||
- React
|
||||
- RNDeviceInfo (5.6.4):
|
||||
- React
|
||||
- RNFastImage (8.1.5):
|
||||
- RNFastImage (8.3.2):
|
||||
- React
|
||||
- SDWebImage (~> 5.0)
|
||||
- SDWebImageWebPCoder (~> 0.4.1)
|
||||
- SDWebImage (~> 5.8)
|
||||
- SDWebImageWebPCoder (~> 0.6.1)
|
||||
- RNFileViewer (2.1.1):
|
||||
- React
|
||||
- RNGestureHandler (1.6.1):
|
||||
- React
|
||||
- RNKeychain (4.0.5):
|
||||
- React
|
||||
- RNLocalize (1.4.0):
|
||||
- RNLocalize (1.4.1):
|
||||
- React
|
||||
- RNPermissions (2.1.5):
|
||||
- React
|
||||
|
|
@ -346,15 +346,15 @@ PODS:
|
|||
- Sentry (~> 5.2.0)
|
||||
- RNSVG (12.1.0):
|
||||
- React
|
||||
- RNVectorIcons (6.6.0):
|
||||
- RNVectorIcons (7.0.0):
|
||||
- React
|
||||
- Rudder (1.0.3-beta.4)
|
||||
- SDWebImage (5.8.4):
|
||||
- SDWebImage/Core (= 5.8.4)
|
||||
- SDWebImage/Core (5.8.4)
|
||||
- SDWebImageWebPCoder (0.4.1):
|
||||
- SDWebImageWebPCoder (0.6.1):
|
||||
- libwebp (~> 1.0)
|
||||
- SDWebImage/Core (~> 5.5)
|
||||
- SDWebImage/Core (~> 5.7)
|
||||
- Sentry (5.2.0):
|
||||
- Sentry/Core (= 5.2.0)
|
||||
- Sentry/Core (5.2.0)
|
||||
|
|
@ -594,7 +594,7 @@ SPEC CHECKSUMS:
|
|||
jail-monkey: d7c5048b2336f22ee9c9e0efa145f1f917338ea9
|
||||
libwebp: 946cb3063cea9236285f7e9a8505d806d30e07f3
|
||||
MMKV: 67253edee25a34edf332f91d73fa94a9e038b971
|
||||
MMKVCore: fe398984acac1fa33f92795d1b5fd0a334c944af
|
||||
MMKVCore: 6225324fe5006026bc86ef8641d567e00c6582f3
|
||||
Permission-Camera: 53d46bd722aea28d796e20f05fb3cbe6cde6ccb6
|
||||
Permission-PhotoLibrary: 3400b260e5f80e0dd9c04d00c2ceab233bf88427
|
||||
RCTRequired: f13f25e7b12f925f1f6a6a8c69d929a03c0129fe
|
||||
|
|
@ -620,7 +620,7 @@ SPEC CHECKSUMS:
|
|||
react-native-passcode-status: 88c4f6e074328bc278bd127646b6c694ad5a530a
|
||||
react-native-safe-area: e8230b0017d76c00de6b01e2412dcf86b127c6a3
|
||||
react-native-safe-area-context: 5f3e081f937ab7c44c179d551f332fa494cfcf8f
|
||||
react-native-video: 961749da457e73bf0b5565edfbaffc25abfb8974
|
||||
react-native-video: 184f7d5107582e7def6dafdd3ddc0f795dc33f6a
|
||||
react-native-webview: 0d1c2b4e7ffb0543a74fa0512f2f8dc5fb0e49e2
|
||||
React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5
|
||||
React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6
|
||||
|
|
@ -640,11 +640,11 @@ SPEC CHECKSUMS:
|
|||
RNCClipboard: 5f3218dcdc28405aa2ae72b78e388f150b826dd3
|
||||
RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459
|
||||
RNDeviceInfo: b4e7cc649b2258a60490c7ac096efbf85fbe65c3
|
||||
RNFastImage: 35ae972d6727c84ee3f5c6897e07f84d0a3445e9
|
||||
RNFastImage: e19ba191922e7dab9d932a4d59d62d76660aa222
|
||||
RNFileViewer: db62d60dd19007c54b2c959b5e675a46d59f8a43
|
||||
RNGestureHandler: 8f09cd560f8d533eb36da5a6c5a843af9f056b38
|
||||
RNKeychain: 840f8e6f13be0576202aefcdffd26a4f54bfe7b5
|
||||
RNLocalize: fc27ee5878ce5a3af73873fb2d8e866e0d1e6d84
|
||||
RNLocalize: c388679af021ddd6069c215f7fdd2acf4e77ede5
|
||||
RNPermissions: 1888705aebcc81714efa5dbff94351e4388ae012
|
||||
RNReactNativeHapticFeedback: 22c5ecf474428766c6b148f96f2ff6155cd7225e
|
||||
RNReanimated: 955cf4068714003d2f1a6e2bae3fb1118f359aff
|
||||
|
|
@ -652,10 +652,10 @@ SPEC CHECKSUMS:
|
|||
RNScreens: cf198f915f8a2bf163de94ca9f5bfc8d326c3706
|
||||
RNSentry: 2bae4ffee2e66376ef42cb845a494c3bde17bc56
|
||||
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
|
||||
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
|
||||
RNVectorIcons: da6fe858f5a65d7bbc3379540a889b0b12aa5976
|
||||
Rudder: 358a71278045a608ae4b081b37a465ffb65c129d
|
||||
SDWebImage: cf6922231e95550934da2ada0f20f2becf2ceba9
|
||||
SDWebImageWebPCoder: 36f8f47bd9879a8aea6044765c1351120fd8e3a8
|
||||
SDWebImageWebPCoder: d0dac55073088d24b2ac1b191a71a8f8d0adac21
|
||||
Sentry: 6e04bc3e11bf771ca79140a112de64dcfbc7d8cb
|
||||
Swime: d7b2c277503b6cea317774aedc2dce05613f8b0b
|
||||
XCDYouTubeKit: 79baadb0560673a67c771eba45f83e353fd12c1f
|
||||
|
|
|
|||
3665
package-lock.json
generated
3665
package-lock.json
generated
File diff suppressed because it is too large
Load diff
60
package.json
60
package.json
|
|
@ -7,7 +7,7 @@
|
|||
"license": "Apache 2.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "7.10.4",
|
||||
"@babel/runtime": "7.11.2",
|
||||
"@react-native-community/async-storage": "1.11.0",
|
||||
"@react-native-community/cameraroll": "4.0.0",
|
||||
"@react-native-community/clipboard": "1.2.3",
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
"react-native-document-picker": "3.5.4",
|
||||
"react-native-elements": "2.2.0",
|
||||
"react-native-exception-handler": "2.10.8",
|
||||
"react-native-fast-image": "8.1.5",
|
||||
"react-native-fast-image": "8.3.2",
|
||||
"react-native-file-viewer": "2.1.1",
|
||||
"react-native-gesture-handler": "1.6.1",
|
||||
"react-native-haptic-feedback": "1.10.0",
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
"react-native-keychain": "4.0.5",
|
||||
"react-native-linear-gradient": "2.5.6",
|
||||
"react-native-local-auth": "1.6.0",
|
||||
"react-native-localize": "1.4.0",
|
||||
"react-native-localize": "1.4.1",
|
||||
"react-native-mmkv-storage": "0.3.5",
|
||||
"react-native-navigation": "6.4.0",
|
||||
"react-native-notifications": "2.1.7",
|
||||
|
|
@ -71,11 +71,11 @@
|
|||
"react-native-status-bar-size": "0.3.3",
|
||||
"react-native-svg": "12.1.0",
|
||||
"react-native-v8": "0.62.2-patch.1",
|
||||
"react-native-vector-icons": "6.6.0",
|
||||
"react-native-video": "5.0.2",
|
||||
"react-native-vector-icons": "7.0.0",
|
||||
"react-native-video": "5.1.0-alpha7",
|
||||
"react-native-webview": "github:mattermost/react-native-webview#b5e22940a613869d3999feac9451ee65352f4fbe",
|
||||
"react-native-youtube": "2.0.1",
|
||||
"react-redux": "7.2.0",
|
||||
"react-redux": "7.2.1",
|
||||
"redux": "4.0.5",
|
||||
"redux-action-buffer": "1.2.0",
|
||||
"redux-batched-actions": "0.5.0",
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
"redux-thunk": "2.3.0",
|
||||
"reselect": "4.0.0",
|
||||
"rn-fetch-blob": "0.12.0",
|
||||
"rn-placeholder": "3.0.0",
|
||||
"rn-placeholder": "3.0.1",
|
||||
"semver": "7.3.2",
|
||||
"serialize-error": "7.0.1",
|
||||
"shallow-equals": "1.0.0",
|
||||
|
|
@ -92,48 +92,48 @@
|
|||
"url-parse": "1.4.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.10.4",
|
||||
"@babel/core": "7.10.4",
|
||||
"@babel/plugin-transform-runtime": "7.10.4",
|
||||
"@babel/preset-env": "7.10.4",
|
||||
"@babel/register": "7.10.4",
|
||||
"@react-native-community/eslint-config": "1.1.0",
|
||||
"@babel/cli": "7.10.5",
|
||||
"@babel/core": "7.11.1",
|
||||
"@babel/plugin-transform-runtime": "7.11.0",
|
||||
"@babel/preset-env": "7.11.0",
|
||||
"@babel/register": "7.10.5",
|
||||
"@react-native-community/eslint-config": "2.0.0",
|
||||
"@types/enzyme": "3.10.5",
|
||||
"@types/enzyme-adapter-react-16": "1.0.6",
|
||||
"@types/jest": "26.0.4",
|
||||
"@types/moment-timezone": "0.5.13",
|
||||
"@types/react": "16.9.43",
|
||||
"@types/react-native": "0.62.18",
|
||||
"@types/react-test-renderer": "16.9.2",
|
||||
"@types/jest": "26.0.10",
|
||||
"@types/moment-timezone": "0.5.30",
|
||||
"@types/react": "16.9.46",
|
||||
"@types/react-native": "0.63.8",
|
||||
"@types/react-test-renderer": "16.9.3",
|
||||
"@types/shallow-equals": "1.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "3.6.0",
|
||||
"@typescript-eslint/parser": "3.6.0",
|
||||
"@typescript-eslint/eslint-plugin": "3.9.1",
|
||||
"@typescript-eslint/parser": "3.9.1",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-jest": "26.1.0",
|
||||
"babel-jest": "26.3.0",
|
||||
"babel-plugin-module-resolver": "4.0.0",
|
||||
"babel-plugin-transform-remove-console": "6.9.4",
|
||||
"deep-freeze": "0.0.1",
|
||||
"enzyme": "3.11.0",
|
||||
"enzyme-adapter-react-16": "1.15.2",
|
||||
"enzyme-adapter-react-16": "1.15.3",
|
||||
"enzyme-to-json": "3.5.0",
|
||||
"eslint": "7.4.0",
|
||||
"eslint": "7.7.0",
|
||||
"eslint-plugin-header": "3.0.0",
|
||||
"eslint-plugin-jest": "23.18.0",
|
||||
"eslint-plugin-jest": "23.20.0",
|
||||
"eslint-plugin-mattermost": "github:mattermost/eslint-plugin-mattermost#070ce792d105482ffb2b27cfc0b7e78b3d20acee",
|
||||
"eslint-plugin-react": "7.20.3",
|
||||
"harmony-reflect": "1.6.1",
|
||||
"husky": "4.2.5",
|
||||
"isomorphic-fetch": "2.2.1",
|
||||
"jest": "26.1.0",
|
||||
"jest-cli": "26.1.0",
|
||||
"jest": "26.4.0",
|
||||
"jest-cli": "26.4.0",
|
||||
"jest-enzyme": "7.1.2",
|
||||
"jetifier": "1.6.6",
|
||||
"jsdom-global": "3.0.2",
|
||||
"metro-react-native-babel-preset": "0.60.0",
|
||||
"metro-react-native-babel-preset": "0.62.0",
|
||||
"mmjstool": "github:mattermost/mattermost-utilities#086f4ffdca4e31a0be22f6bcdfa093ed83fb29e",
|
||||
"mock-async-storage": "2.2.0",
|
||||
"mock-socket": "9.0.3",
|
||||
"nock": "13.0.2",
|
||||
"nock": "13.0.4",
|
||||
"nyc": "15.1.0",
|
||||
"patch-package": "6.2.2",
|
||||
"react-dom": "16.13.1",
|
||||
|
|
@ -141,8 +141,8 @@
|
|||
"redux-mock-store": "1.5.4",
|
||||
"redux-persist-node-storage": "2.0.0",
|
||||
"socketcluster": "16.0.1",
|
||||
"ts-jest": "26.1.1",
|
||||
"typescript": "3.9.6",
|
||||
"ts-jest": "26.2.0",
|
||||
"typescript": "3.9.7",
|
||||
"underscore": "1.10.2",
|
||||
"util": "0.12.3"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
diff --git a/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java b/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java
|
||||
index ddb740c..3738367 100755
|
||||
index 9e666b4..5d5830b 100755
|
||||
--- a/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java
|
||||
+++ b/node_modules/react-native-vector-icons/android/src/main/java/com/oblador/vectoricons/VectorIconsModule.java
|
||||
@@ -43,7 +43,8 @@ public class VectorIconsModule extends ReactContextBaseJavaModule {
|
||||
public void getImageForFont(String fontFamily, String glyph, Integer fontSize, Integer color, Callback callback) {
|
||||
@@ -46,7 +46,8 @@ public class VectorIconsModule extends ReactContextBaseJavaModule {
|
||||
protected String createGlyphImagePath(String fontFamily, String glyph, Integer fontSize, Integer color) throws java.io.IOException, FileNotFoundException {
|
||||
Context context = getReactApplicationContext();
|
||||
File cacheFolder = context.getCacheDir();
|
||||
- String cacheFolderPath = cacheFolder.getAbsolutePath() + "/";
|
||||
|
|
@ -12,7 +12,7 @@ index ddb740c..3738367 100755
|
|||
|
||||
float scale = context.getResources().getDisplayMetrics().density;
|
||||
String scaleSuffix = "@" + (scale == (int) scale ? Integer.toString((int) scale) : Float.toString(scale)) + "x";
|
||||
@@ -54,6 +55,10 @@ public class VectorIconsModule extends ReactContextBaseJavaModule {
|
||||
@@ -57,6 +58,10 @@ public class VectorIconsModule extends ReactContextBaseJavaModule {
|
||||
String cacheFileUrl = "file://" + cacheFilePath;
|
||||
File cacheFile = new File(cacheFilePath);
|
||||
|
||||
|
|
@ -21,5 +21,5 @@ index ddb740c..3738367 100755
|
|||
+ }
|
||||
+
|
||||
if(cacheFile.exists()) {
|
||||
callback.invoke(null, cacheFileUrl);
|
||||
} else {
|
||||
return cacheFileUrl;
|
||||
}
|
||||
Loading…
Reference in a new issue