Skip to content

Commit b8c088c

Browse files
authored
Upgrade RN as well as update or replace other dependencies (#8011)
* start upgrade to RN 74 * migrate react-native-fs to expo-file-system * exclude expo-asset module * fix database manager remove directory * fix: android network helper * include expo on android * temporarily disable android dep lock * replace react-native-create-thumbnail with expo-video-thumnails * update patches file version * fix android build on 74 * create local library to replace MattermostManaged, Notifications and SplitView modules with new arch support * migrate app to use new mattermost-rnutils library * remove unused flipper class for android unsigned * fix mattermost-rnutils android foldedObserver lifecycle * use mattermost-rnutils on Android * use mattermost-rnutils on iOS * path react-native-navigation to not crash when activity is not NavigationActivity * create local library for android share extension with new arch support * Replace ShareModule with @mattermost/rnshare library * remove ShareModule from android native code * update react-intl * update nodejs to 20.x.x npm to 10.x.x and dev deps * update @gorhom/bottom-sheet * use MattermostShare conditionally based on the platform * update @react-native-camera-roll/camera-roll * remove unused react-native-calendars * fix metro config * fix terminate session race condition * remove unused analytics * replace react-native-device-info with expo-application and expo-device * update @react-native-clipboard/clipboard * update @react-native-community/datetimepicker * update @react-native-community/netinfo * update @sentry/react-native * update react-native-document-picker * update react-native-gesture-handler * update react-native-share * update react-native-svg and react-native-svg-transformer * update react-native-vector-icons * update babel * update react-native-shadow-2 * update semver * remove react-native-svg-transformer and convert svg files to svg components * fix @mattermost/rnshare new-arch build on android * remove react-native-create-thumbnail resolution in build.gradle * create @mattermost/hardware-keyboard library to replace hw-keyboard-events * fix hardware-keyboard library * fix rnutils library * create @mattermost/keyboard-tracker library * replace react-native-keyboard-tracking-view with @mattermost/keyboard-tracker * fix: rnutils to not crash on lateinit context * fix: rnutils delete database * revert changes to session_manager * Removed react-native-webview and added expo-web-browser instead With expo-web-browser we no longer need the webview for SSO login the SSO login is now done by using "custom Chrome tabs" on Android and ASWebAuthenticationSession on iOS * remove patch for react-native-keyboard-tracking-view * replace react-native-linear-gradient with expo-linear-gradient * replace react-native-in-app-review with expo-store-review * fix: shared group database directory on ios * replace react-native-fast-image with expo-image * remove unusued type def for react-native-keyboard-tracking-view * replace react-native-elements and react-native-button with @rneui * node version * update sizzling methods * fix tests using jest-expo * replace jail-monkey with expo-device * update babel deps * update typescript eslint * update rn and expo * react-native-document-picker @react-native-camera-roll/camera-roll @react-native-community/datetimepicker react-native-reanimated react-native-safe-area-context * update patches * update @sentry/react-native * upgrade react-native-navigation * update expo & expo-image * upgrade to working version of @sentry/react-native * update node, cocoapods, bundler, fastlane versions * @testing-library/react-native and eslint-plugin-jest * fix: FloatingTextInput causing a crash with reanimated * update sentry, localize, @types/lodash and uuid * fix floating text input label * update react-native-video * fix: cannot calculate shadow efficiently on some components * fix: reduce motion warning for bottomSheet * fix: shadow on YouTube component * update react-native-webrtc expo and @typescript-eslint * audit fix * fix swizzling bad merge * temp use of github dependency for @mattermost libraries * feedback review * feedback review * npm audit fix * update bundle deps * update @mattermost/react-native-turbo-log * update deps
1 parent 1f2a71c commit b8c088c

File tree

313 files changed

+26956
-18094
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+26956
-18094
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"newlines-between": "always",
7070
"pathGroups": [
7171
{
72-
"pattern": "{@(@actions|@app|@assets|@calls|@client|@components|@constants|@context|@database|@helpers|@hooks|@init|@managers|@queries|@screens|@selectors|@share|@store|@telemetry|@typings|@test|@utils)/**,@(@constants|@i18n|@notifications|@store|@websocket)}",
72+
"pattern": "{@(@actions|@app|@assets|@calls|@client|@components|@constants|@context|@database|@helpers|@hooks|@init|@managers|@queries|@screens|@selectors|@share|@store|@telemetry|@typings|@test|@utils)/**,@(@constants|@i18n|@store|@websocket)}",
7373
"group": "external",
7474
"position": "after"
7575
},

.github/workflows/build-android-beta.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- build-beta-android-[0-9]+
99

1010
env:
11-
NODE_VERSION: 18.7.0
11+
NODE_VERSION: 20.13.1
1212
TERM: xterm
1313

1414
jobs:

.github/workflows/build-android-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- build-release-android-[0-9]+
99

1010
env:
11-
NODE_VERSION: 18.7.0
11+
NODE_VERSION: 20.13.1
1212
TERM: xterm
1313

1414
jobs:

.github/workflows/build-ios-beta.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- build-beta-sim-[0-9]+
1010

1111
env:
12-
NODE_VERSION: 18.7.0
12+
NODE_VERSION: 20.13.1
1313
TERM: xterm
1414

1515
jobs:

.github/workflows/build-ios-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- build-release-sim-[0-9]+
1010

1111
env:
12-
NODE_VERSION: 18.7.0
12+
NODE_VERSION: 20.13.1
1313
TERM: xterm
1414

1515
jobs:

.github/workflows/build-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- labeled
77

88
env:
9-
NODE_VERSION: 18.7.0
9+
NODE_VERSION: 20.13.1
1010
TERM: xterm
1111

1212
jobs:

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
pull_request:
99

1010
env:
11-
NODE_VERSION: 18.7.0
11+
NODE_VERSION: 20.13.1
1212
TERM: xterm
1313

1414
jobs:

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,6 @@ launch.json
115115

116116
# Temporary files created by Metro to check the health of the file watcher
117117
.metro-health-check*
118+
119+
libraries/**/**/build
120+
libraries/**/**/.build

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17
1+
20.13.1

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17
1+
20.13.1

.solidarity

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{
4040
"rule": "cli",
4141
"binary": "pod",
42-
"semver": "1.14.3",
42+
"semver": "1.15.2",
4343
"platform": "darwin"
4444
}
4545
],

ios/Gemfile Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
source "https://rubygems.org"
22

3-
gem "cocoapods", "1.14.3"
3+
gem "cocoapods", "1.15.2"

ios/Gemfile.lock Gemfile.lock

+22-19
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.6)
4+
CFPropertyList (3.0.7)
5+
base64
6+
nkf
57
rexml
6-
activesupport (7.1.2)
8+
activesupport (7.1.3.4)
79
base64
810
bigdecimal
911
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -13,19 +15,19 @@ GEM
1315
minitest (>= 5.1)
1416
mutex_m
1517
tzinfo (~> 2.0)
16-
addressable (2.8.5)
18+
addressable (2.8.6)
1719
public_suffix (>= 2.0.2, < 6.0)
1820
algoliasearch (1.27.5)
1921
httpclient (~> 2.8, >= 2.8.3)
2022
json (>= 1.5.1)
2123
atomos (0.1.3)
2224
base64 (0.2.0)
23-
bigdecimal (3.1.4)
25+
bigdecimal (3.1.8)
2426
claide (1.1.0)
25-
cocoapods (1.14.3)
27+
cocoapods (1.15.2)
2628
addressable (~> 2.8)
2729
claide (>= 1.0.2, < 2.0)
28-
cocoapods-core (= 1.14.3)
30+
cocoapods-core (= 1.15.2)
2931
cocoapods-deintegrate (>= 1.0.3, < 2.0)
3032
cocoapods-downloader (>= 2.1, < 3.0)
3133
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -40,7 +42,7 @@ GEM
4042
nap (~> 1.0)
4143
ruby-macho (>= 2.3.0, < 3.0)
4244
xcodeproj (>= 1.23.0, < 2.0)
43-
cocoapods-core (1.14.3)
45+
cocoapods-core (1.15.2)
4446
activesupport (>= 5.0, < 8)
4547
addressable (~> 2.8)
4648
algoliasearch (~> 1.0)
@@ -60,36 +62,37 @@ GEM
6062
netrc (~> 0.11)
6163
cocoapods-try (1.2.0)
6264
colored2 (3.1.2)
63-
concurrent-ruby (1.2.2)
65+
concurrent-ruby (1.3.3)
6466
connection_pool (2.4.1)
65-
drb (2.2.0)
66-
ruby2_keywords
67+
drb (2.2.1)
6768
escape (0.0.4)
6869
ethon (0.16.0)
6970
ffi (>= 1.15.0)
70-
ffi (1.16.3)
71+
ffi (1.17.0)
7172
fourflusher (2.3.1)
7273
fuzzy_match (2.0.4)
7374
gh_inspector (1.1.3)
7475
httpclient (2.8.3)
75-
i18n (1.14.1)
76+
i18n (1.14.5)
7677
concurrent-ruby (~> 1.0)
77-
json (2.6.3)
78-
minitest (5.20.0)
78+
json (2.7.2)
79+
minitest (5.23.1)
7980
molinillo (0.8.0)
8081
mutex_m (0.2.0)
8182
nanaimo (0.3.0)
8283
nap (1.1.0)
8384
netrc (0.11.0)
85+
nkf (0.2.0)
8486
public_suffix (4.0.7)
85-
rexml (3.2.6)
87+
rexml (3.2.9)
88+
strscan
8689
ruby-macho (2.5.1)
87-
ruby2_keywords (0.0.5)
90+
strscan (3.1.0)
8891
typhoeus (1.4.1)
8992
ethon (>= 0.9.0)
9093
tzinfo (2.0.6)
9194
concurrent-ruby (~> 1.0)
92-
xcodeproj (1.23.0)
95+
xcodeproj (1.24.0)
9396
CFPropertyList (>= 2.3.3, < 4.0)
9497
atomos (~> 0.1.3)
9598
claide (>= 1.0.2, < 2.0)
@@ -101,7 +104,7 @@ PLATFORMS
101104
ruby
102105

103106
DEPENDENCIES
104-
cocoapods (= 1.14.3)
107+
cocoapods (= 1.15.2)
105108

106109
BUNDLED WITH
107-
2.3.26
110+
2.5.11

0 commit comments

Comments
 (0)