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

chore(react-native-example): upgrade example app & fix detox tests #231

Merged
merged 9 commits into from
Dec 10, 2024

Conversation

thomas-pearson-mattr
Copy link
Contributor

@thomas-pearson-mattr thomas-pearson-mattr commented Dec 5, 2024

Patch react-native wrapper example by migrating to react native 0.72.14 package.json was updated to use the newer react-native version but Android and IOS where not migrated accidentally.

We will need to update the core react-native wrapper this is just for the example have already gone out of scope so can pick this up later 😄

Have applied the diff from the migration tool
https://react-native-community.github.io/upgrade-helper/?from=0.68.2&to=0.72.14 and have left comments to explain any outliers outside of this diff that we need for this project 😄, to help with reviews.

In addition to this:

  1. Have removed Flipper for both Android & IOS due to a licensing issue OpenSSL-Universal (= 1.1.1100)
  2. Have patched and re-enabled detox tests CI for Android & IOS to help identify breaking changes.
  3. Have updated detox for better support with React Native 0.72 for IOS [RN 72] iOS Simulator cannot terminate app  wix/Detox#4148
  • chore(react-native-example): migrate IOS to react native 0.72.14
  • ci(detox-ios): fix and re-enable ios detox tests
  • chore(react-native-example): migrate Android to react native 0.72.14
  • ci(detox-android): fix and re-enable android detox tests
  • chore(react-native-example): remove flipper for android
  • chore(react-native-example): remove flipper for IOS
  • build(deps): upgrade & migrate to detox 20

@thomas-pearson-mattr thomas-pearson-mattr changed the title chore(react-native-example): patch and remove flippter chore(react-native-example): patch and remove flipper Dec 5, 2024
@thomas-pearson-mattr thomas-pearson-mattr force-pushed the tp/SNYK-1397/fix-example-plus-flipper branch 3 times, most recently from a4f67c3 to 4b0bdf1 Compare December 6, 2024 10:36
@thomas-pearson-mattr thomas-pearson-mattr force-pushed the tp/SNYK-1397/fix-example-plus-flipper branch from 81c425b to 21ade55 Compare December 9, 2024 08:07
@thomas-pearson-mattr thomas-pearson-mattr changed the title chore(react-native-example): patch and remove flipper chore(react-native-example): upgrade example app & fix detox tests Dec 9, 2024
React native was upgraded but wasn't migrated when updating from 0.68.2

Have applied the changes for IOS
https://react-native-community.github.io/upgrade-helper/?from=0.68.2&to=0.72.14
- Pin rust toolchain as getting undefined symbols for aarch64-apple-ios
  + #231 (comment)
- Install iPhone 11
- Use headless emulation for CI

ci(detox-ios): try removing xcode pin
React native was upgraded but wasn't migrated when updating from 0.68.2

Have applied the changes for Android
https://react-native-community.github.io/upgrade-helper/?from=0.68.2&to=0.72.14
- Switch to using ubuntu for the runner
- Replace deprecated joschi/setup-jdk with standard java Github action helper.
- Use reactivecircus/android-emulator-runner emulator helper and enable KVM
- Try another port for emulator as 5554 is causing conflicts
- Add retries since sometime detox can be flaky
- Stick with API to 29 for now until the main package is updated
IOS detox tests kept failing due to this issue
wix/Detox#4148.

Upgrading resolves the issue and things are bit faster now!
@thomas-pearson-mattr thomas-pearson-mattr force-pushed the tp/SNYK-1397/fix-example-plus-flipper branch 3 times, most recently from 0820a6a to c455532 Compare December 9, 2024 10:59
@thomas-pearson-mattr thomas-pearson-mattr force-pushed the tp/SNYK-1397/fix-example-plus-flipper branch from c455532 to 4fdf376 Compare December 9, 2024 11:19
@thomas-pearson-mattr thomas-pearson-mattr marked this pull request as ready for review December 9, 2024 19:22
afonsobarracha
afonsobarracha previously approved these changes Dec 9, 2024
mate-from-mattr
mate-from-mattr previously approved these changes Dec 9, 2024
@thomas-pearson-mattr thomas-pearson-mattr merged commit 8391533 into master Dec 10, 2024
12 of 13 checks passed
@thomas-pearson-mattr thomas-pearson-mattr deleted the tp/SNYK-1397/fix-example-plus-flipper branch December 10, 2024 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants