-
Notifications
You must be signed in to change notification settings - Fork 97
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 React Native 0.66.4 #1697
Conversation
…ner which is now deprecated and causing tests to fail
Codecov Report
@@ Coverage Diff @@
## main #1697 +/- ##
==========================================
- Coverage 76.58% 76.57% -0.02%
==========================================
Files 520 520
Lines 19360 19359 -1
Branches 3544 3544
==========================================
- Hits 14827 14824 -3
- Misses 4464 4466 +2
Partials 69 69
Continue to review full report at Codecov.
|
…ApptestRelease error from gradle cache
… duplicate class build error
…rmittent duplicate class merge dex errors
…e module plaidandroid tried to override com.reactlibrary.plaidmodule' - need to check with activation squad if plaid still works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG, amazing!! 🚀 🤩 🎉
@@ -2,7 +2,7 @@ | |||
<style name="AppTheme" parent="Base.V0.AppTheme"/> | |||
|
|||
<!-- Base theme, also see API specific overrides in values-vXX/styles.xml --> | |||
<style name="Base.V0.AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | |||
<style name="Base.V0.AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't have a better answer than i tried to copy the changes here https://react-native-community.github.io/upgrade-helper/?from=0.63.4&to=0.66.4 - my naive thinking is that newer versions of android has light/dark themes but i didn't look into it much. do you prefer to keep it unchanged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Maybe we should double check how the app is impacted when the dark theme is selected (Settings -> Display -> Theme).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I quickly checked this, the app looks the same as usual in dark mode (except for the native things like keyboard and alerts which are dark) 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was able to build after switching my terminal to Rosetta mode.
### Description App was crashing on Android when proguard was enabled. This was caused by the `react-native-reanimated` upgrade in #1697 See software-mansion/react-native-reanimated#2725 ### Other changes - Detox release builds now use proguard too (with some Detox specific rules so it still works). This way, our e2e check has a higher chance of catching this type of issue. Though here, this specific reanimated proguard issue wouldn't have been caught. I tested it and apparently the Detox specific proguard rules made it disappear too. ### How others should test App starts on Android release builds without crashing. ### Related issues - Fixes #1789 ### Backwards compatibility Yes
Description
Upgrade react native to 0.66.4.
Notable changes in this PR include:
AppState.removeListener
(https://reactnative.dev/docs/appstate#removeeventlistener)Other changes
N/A
Tested
E2E tests should work as usual, app should build and function as usual.
How others should test
A basic regression - click around the app and see no broken functionalities
Related issues
Backwards compatibility
N/A