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

IOS only upgrade react-native to 0.72.x #16721

Closed
wants to merge 15 commits into from

Conversation

siddarthkay
Copy link
Contributor

@siddarthkay siddarthkay commented Jul 19, 2023

This PR is just made to test and fix effects of this upgrade on CI.
Note: This PR only contains IOS side of the upgrades.
state: Ready

@siddarthkay siddarthkay self-assigned this Jul 19, 2023
@@ -49,12 +47,7 @@ stdenv.mkDerivation {
${patchMavenSources} $modBuildGradle
done
'';
# Do not add a BuildId to the generated libraries, for reproducibility
patchBuildIdPhase = ''
substituteInPlace ./node_modules/react-native/ReactAndroid/src/main/jni/Application.mk --replace \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

now that ReactAndroid/src/main/jni/Application.mk no longer exists, We'll have to figure out where to update build-id :)

@status-im-auto
Copy link
Member

status-im-auto commented Jul 19, 2023

Jenkins Builds

Click to see older builds (39)
Commit #️⃣ Finished (UTC) Duration Platform Result
d68c598 #1 2023-07-19 15:09:13 ~3 min android-e2e 📄log
d68c598 #1 2023-07-19 15:09:28 ~3 min android 📄log
d68c598 #1 2023-07-19 15:16:25 ~10 min tests 📄log
2697a53 #2 2023-07-19 15:26:10 ~14 min ios 📄log
5f2df4a #3 2023-07-19 15:33:16 ~5 min ios 📄log
abbe978 #4 2023-07-19 17:52:08 ~6 min ios 📄log
c00af35 #5 2023-07-19 18:03:57 ~4 min ios 📄log
✔️ f32b958 #6 2023-07-19 18:25:16 ~5 min ios 📱ipa 📲
✔️ 1836485 #7 2023-07-20 02:37:12 ~5 min ios 📱ipa 📲
✔️ ec2330d #8 2023-07-20 03:03:43 ~7 min ios 📱ipa 📲
✔️ 1dd9e8a #9 2023-07-20 03:50:01 ~6 min ios 📱ipa 📲
✔️ bef1661 #10 2023-07-28 06:55:56 ~6 min ios 📱ipa 📲
✔️ f154ea8 #11 2023-07-28 17:20:38 ~6 min ios 📱ipa 📲
e518970 #16 2023-08-03 12:53:08 ~10 min ios 📄log
✔️ c45c96c #18 2023-08-03 13:08:28 ~13 min ios 📱ipa 📲
✔️ 01fcde4 #19 2023-08-03 13:35:39 ~12 min ios 📱ipa 📲
✔️ 9f50d08 #20 2023-08-05 17:39:48 ~6 min ios 📱ipa 📲
✔️ 50bba78 #21 2023-08-13 12:11:16 ~9 min ios 📱ipa 📲
✔️ ac81d86 #22 2023-08-13 13:25:59 ~22 min ios 📱ipa 📲
✔️ 552f11e #23 2023-08-15 15:47:57 ~12 min ios 📱ipa 📲
✔️ c1ff37a #26 2023-08-16 13:45:01 ~10 min ios 📱ipa 📲
7e3c5ed #27 2023-08-16 13:59:20 ~5 min ios 📄log
✔️ a5017ea #28 2023-08-16 15:34:49 ~8 min ios 📱ipa 📲
✔️ 5646bb5 #29 2023-08-19 03:28:48 ~10 min ios 📱ipa 📲
✔️ 6e2663a #30 2023-08-19 03:54:02 ~14 min ios 📱ipa 📲
✔️ 29151ac #32 2023-08-19 04:09:09 ~5 min ios 📱ipa 📲
b6f70bb #33 2023-08-29 08:56:00 ~33 sec ios 📄log
5871040 #34 2023-08-29 09:02:01 ~18 sec ios 📄log
7090068 #35 2023-08-29 09:02:46 ~18 sec ios 📄log
1e992e5 #36 2023-08-29 09:03:46 ~20 sec ios 📄log
✔️ 8b6e3b6 #38 2023-08-29 09:16:00 ~6 min ios 📱ipa 📲
✔️ 5c1e051 #39 2023-08-29 13:34:40 ~5 min ios 📱ipa 📲
✔️ 33074f6 #40 2023-09-01 07:07:40 ~7 min ios 📱ipa 📲
✔️ 1981eea #41 2023-09-08 19:10:57 ~6 min ios 📱ipa 📲
✔️ 0d71e02 #42 2023-09-09 04:32:23 ~6 min ios 📱ipa 📲
✔️ 5dbbb08 #44 2023-09-09 09:19:25 ~9 min ios 📱ipa 📲
✔️ 05438db #45 2023-09-09 09:32:08 ~6 min ios 📱ipa 📲
✔️ fc09e87 #46 2023-09-09 09:59:19 ~6 min ios 📱ipa 📲
✔️ 64731fa #47 2023-09-09 10:28:26 ~6 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
aef4fdc #50 2023-09-09 11:22:33 ~1 min ios 📄log
✔️ 1f4be69 #52 2023-09-09 15:28:20 ~7 min ios 📱ipa 📲

@siddarthkay siddarthkay marked this pull request as draft July 19, 2023 15:30
@siddarthkay siddarthkay force-pushed the upgrade/ios-only-rn-0.72.x branch 2 times, most recently from f32b958 to 1836485 Compare July 20, 2023 02:31
@siddarthkay
Copy link
Contributor Author

Hit a blocker at react-native version 0.71.12

Although builds are green at the moment but the app indefinitely stays on the splash screen and when you put the app in background and open it again you are greeted with this not so specific error.

Simulator Screenshot - iPhone 11 Pro - 2023-07-20 at 09 32 58

My current hypothesis is that I need to more thoroughly clean up all of the v1 usage of react-native-redash library which in turn uses the v1 of react-native-reanimated library.

More updates on this later.

@siddarthkay siddarthkay force-pushed the upgrade/ios-only-rn-0.72.x branch 5 times, most recently from d91e78b to c45c96c Compare August 3, 2023 12:55
@siddarthkay
Copy link
Contributor Author

I briefly had this error after the commit for re-animated upgrade.

Screenshot_2023-08-03_at_7 02 46_PM

@siddarthkay
Copy link
Contributor Author

However I am back with my old nemesis and now this is now the latest error.
It seems to be reagent related.
I hate how this does not give out any valuable information.

Screenshot 2023-08-13 at 6 34 17 PM

@siddarthkay siddarthkay force-pushed the upgrade/ios-only-rn-0.72.x branch 5 times, most recently from 3fc68a6 to 29151ac Compare August 19, 2023 04:03
@siddarthkay siddarthkay changed the title [WIP] IOS only upgrade react-native to 0.72.x IOS only upgrade react-native to 0.72.x Aug 19, 2023
@siddarthkay
Copy link
Contributor Author

IOS Side is ready, time to focus on Android side

Screenshot 2023-08-19 at 9 39 56 AM

@siddarthkay siddarthkay force-pushed the upgrade/ios-only-rn-0.72.x branch 2 times, most recently from b6f70bb to 5871040 Compare August 29, 2023 09:01
@siddarthkay siddarthkay force-pushed the upgrade/ios-only-rn-0.72.x branch 3 times, most recently from 1b8940a to 8b6e3b6 Compare August 29, 2023 09:09
- We need to do this to get rid of react-native-reanimated v1 usage since its incompatible with v3.
- Temporarily modifying imports
at `src/quo/animated.cljs` and at `src/mocks/js_dependencies.cljs`
- A thorough cleanup is required in a follow up.
- We need to do this to because versions of library `react-native-draggable-flatlist` older than `4.0.0` rely on `react-native-reanimated ` v1 and that does not work for us if we wish to upgrade `react-native` further.
`./node_modules/react-native/react.gradle` path no longer exists in `react-native` 0.72.3
- Easing Import
- FadeIn swap for Transition Import
- easing
- linear
- Extrapolate
- Interpolate
@flexsurfer
Copy link
Member

looks stale, feel free to reopen if needed

@flexsurfer flexsurfer closed this Oct 11, 2023
siddarthkay added a commit that referenced this pull request Dec 11, 2023
This PR does many things :
- Upgrade `react-native ` to `0.72.5`
- Upgrade `react-native-reanimated` to  `3.5.4`
- Upgrade `react-native-navigation` to `7.37.0`
- `ndkVersion` has been bumped to `25.2.9519653`
- `cmakeVersion` has been bumped to `3.22.1`
- `kotlinVersion` has been bumped to `1.7.22`
- `AGP` has been bumped to `7.4.2`
- `Gradle` has been upgraded to `8.0.1`
- Android `CompileSDK` and `TargetSDK` have been bumped to 33
- `@react-native-async-storage/async-storage` has been upgraded to `1.19.3`
- `@walletconnect/client` has been nuked
- some of the old `react-native-reanimated` code has been nuked
- `react-native-keychain` fork has been replaced with `8.1.2`

- On Android we are currently relying on `Hermes` Engine.
- On iOS we are currently relying on JSC
- We are not enabling new architecture for now (I have plans for that in the future) ref: #18138

IOS only PR : #16721
Android only PR : #17062

- `make run-metro` now has a target of `android` which was `clojure` earlier, this will increase the time it takes to start metro terminal but this is needed otherwise you will get a nasty error while developing for android locally.
siddarthkay added a commit that referenced this pull request Dec 11, 2023
This commit does many things :
- Upgrade `react-native ` to `0.72.5`
- Upgrade `react-native-reanimated` to  `3.5.4`
- Upgrade `react-native-navigation` to `7.37.0`
- `ndkVersion` has been bumped to `25.2.9519653`
- `cmakeVersion` has been bumped to `3.22.1`
- `kotlinVersion` has been bumped to `1.7.22`
- `AGP` has been bumped to `7.4.2`
- `Gradle` has been upgraded to `8.0.1`
- Android `CompileSDK` and `TargetSDK` have been bumped to 33
- `@react-native-async-storage/async-storage` has been upgraded to `1.19.3`
- `@walletconnect/client` has been nuked
- some of the old `react-native-reanimated` code has been nuked
- `react-native-keychain` fork has been replaced with `8.1.2`

- On Android we are currently relying on `Hermes` Engine.
- On iOS we are currently relying on JSC
- We are not enabling new architecture for now (I have plans for that in the future) ref: #18138

IOS only PR : #16721
Android only PR : #17062

- `make run-metro` now has a target of `android` which was `clojure` earlier, this will increase the time it takes to start metro terminal but this is needed otherwise you will get a nasty error while developing for android locally.
siddarthkay added a commit that referenced this pull request Dec 11, 2023
This commit does many things :
- Upgrade `react-native ` to `0.72.5`
- Upgrade `react-native-reanimated` to  `3.5.4`
- Upgrade `react-native-navigation` to `7.37.0`
- `ndkVersion` has been bumped to `25.2.9519653`
- `cmakeVersion` has been bumped to `3.22.1`
- `kotlinVersion` has been bumped to `1.7.22`
- `AGP` has been bumped to `7.4.2`
- `Gradle` has been upgraded to `8.0.1`
- Android `CompileSDK` and `TargetSDK` have been bumped to 33
- `@react-native-async-storage/async-storage` has been upgraded to `1.19.3`
- `@walletconnect/client` has been nuked
- some of the old `react-native-reanimated` code has been nuked
- `react-native-keychain` fork has been replaced with `8.1.2`

- On Android we are currently relying on `Hermes` Engine.
- On iOS we are currently relying on `JSC`
- We are not enabling new architecture for now (I have plans for that in the future) ref: #18138

IOS only PR : #16721
Android only PR : #17062

- `make run-metro` now has a target of `android` which was `clojure` earlier, this will increase the time it takes to start metro terminal but this is needed otherwise you will get a nasty error while developing for android locally.
@siddarthkay siddarthkay deleted the upgrade/ios-only-rn-0.72.x branch August 23, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants