Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade RN as well as update or replace other dependencies #8011

Merged
merged 95 commits into from
Jun 19, 2024
Merged

Upgrade RN as well as update or replace other dependencies #8011

merged 95 commits into from
Jun 19, 2024

Conversation

enahum
Copy link
Contributor

@enahum enahum commented Jun 12, 2024

Summary

This is a long PR that is aiming to not only upgrade react native but also lay the ground work to start using the new architecture, this is being held back at the moment by the navigation library there is a draft PR in the works.

Part of this PR updates some libraries, replaces others with maintained ones and there are 4 local libraries as well.

Probably the easiest way to review the PR is by looking at the individual commits.

Here a list of the replaced libraries:

  • MattermostManaged, Notifications and SplitView was moved to libraries/@mattermost/rnutils
  • MattermostShared was moved to libraries/@mattermost/rnshare
  • react-native-hw-keyboard moved to libraries/@mattermost/hardward-keyboard
  • react-native-keyboard-tracking-view to libraries/@mattermost/keyboard-tracker

Replaced libraries

  • react-native-fs with expo-file-system
  • react-native-create-thumbnail with expo-video-thumbnails
  • react-native-fast-image with expo-image
  • react-native-webview with expo-web-browser
  • react-native-device-info with expo-device and expo-application
  • jail-monkey with expo-device
  • react-native-elements with @rneui/base as this is the same but renamed up to date library
  • react-native-linear-gradient with expo-linear-gradient
  • react-native-in-app-review with expo-store-review

Removed libraries

  • react-native-svvg-transformer
  • react-native-calendars

Upgrade to Node 20+
Upgrade cocoapods to 1.15.2
upgrade bundler to 2.5.11
upgraded fastlane
upgraded all other dependencies

Checklist

  • Added or updated unit tests (required for all new features)
  • Includes text changes and localization file updates
  • Have tested against the 5 core themes to ensure consistency between them.

Device Information

This PR was tested on: iOS similators and device as well as Android

Release Note

Need to add some release notes at the end

enahum added 30 commits June 11, 2024 05:20
@enahum enahum added the 2: Dev Review Requires review by a core commiter label Jun 12, 2024
@enahum enahum requested a review from larkox June 12, 2024 08:37
Copy link
Contributor

@larkox larkox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still have around 70files to review (mainly in the libraries folder) but I leave a few comments.

app/components/files/video_file.tsx Outdated Show resolved Hide resolved
app/components/post_draft/archived/index.tsx Show resolved Hide resolved
app/screens/home/index.tsx Outdated Show resolved Hide resolved
app/screens/invite/summary.tsx Outdated Show resolved Hide resolved
app/screens/login/sso_options.tsx Outdated Show resolved Hide resolved
app/screens/sso/sso.tsx Outdated Show resolved Hide resolved
app/utils/file/index.ts Outdated Show resolved Hide resolved
app/utils/file/index.ts Show resolved Hide resolved
package.json Outdated
"react-native-walkthrough-tooltip": "1.6.0",
"react-native-webrtc": "111.0.6",
"react-native-webview": "13.8.4",
"react-native-webrtc": "124.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpoile I know the last time I tried to update react-native-webrtc you had some concerns about it. You may want to check if there is any library update done here that you may want reverted before we merge this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please do check @cpoile

Copy link
Contributor

@larkox larkox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@enahum
Copy link
Contributor Author

enahum commented Jun 19, 2024

@cpoile @larkox I'll be merging this PR so that it can be included in the 2.19 release.. if we find anything causing problems we can always open another PR to fix it.

@rahimrahman FYI as now we will need to use node 20

@enahum enahum merged commit b8c088c into main Jun 19, 2024
4 checks passed
@enahum enahum deleted the 74 branch June 19, 2024 01:33
@amyblais amyblais added this to the v2.19.0 milestone Jun 19, 2024
fewva pushed a commit to fewva/mattermost-mobile that referenced this pull request Jul 4, 2024
@amyblais
Copy link
Member

@enahum The Release Note says "Need to add some release notes at the end" - can you help fill in the missing release notes?

@enahum
Copy link
Contributor Author

enahum commented Jul 12, 2024

no release notes needed really

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core commiter release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants