Skip to content

chore(deps): bump react-native 0.70.13 #9189

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

Merged
merged 6 commits into from
Aug 30, 2023

Conversation

araujobarret
Copy link
Contributor

@araujobarret araujobarret commented Aug 28, 2023

Description

This PR bumps react-native to 0.70.13. One blocker I've found for Android was the outdated tipsi-stripe library, I replaced it with the official library making the adjustments and adjusting the tests the solution was to add jetifier to the install script as we do in the android build script.
This PR is divided into 3 commits:

  • 1st: rn-diff from upgrade-helper
  • 2nd: tipsi-stripe replacement with @stripe/react-native reverted on 50fba80
  • 3rd: Fix missing values used in XML and bump kotlin version to 1.8.0.
  • 4th: replaces Dimensions.removeEventListener with the new format, this was generating some errors and breaking the tests

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

  • bump react-native to 0.70.13 - araujobarret

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Aug 28, 2023

This PR contains the following changes:

  • Cross-platform user-facing changes (bump react-native to 0.70.13 - araujobarret)

Generated by 🚫 dangerJS against 516b6ca

MounirDhahri
MounirDhahri previously approved these changes Aug 28, 2023
Copy link
Member

@MounirDhahri MounirDhahri left a comment

Choose a reason for hiding this comment

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

Niiiiiiice 🔥

Copy link
Member

@gkartalis gkartalis left a comment

Choose a reason for hiding this comment

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

woohoo, excited to test it out

@araujobarret
Copy link
Contributor Author

Android release builds are broken in Android because of the Sentry: getsentry/sentry-java#2601
We need to upgrade Sentry to enable this PR 🧽.

@gkartalis
Copy link
Member

Created a ticket for upgrading sentry here -> https://artsyproduct.atlassian.net/browse/PHIRE-207

@araujobarret araujobarret force-pushed the araujobarret/chore/rn-bump-0.70.13 branch from efb0dc3 to b6af64d Compare August 29, 2023 12:44
state: billingAddress?.state,
postalCode: billingAddress?.postalCode,
country: billingAddress?.country.shortName,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

🤩

Copy link
Contributor

@brainbicycle brainbicycle left a comment

Choose a reason for hiding this comment

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

So a major react native upgrade, a major sentry upgrade and you got us off a forked dependency? Legend 💪

Awesome work.

I am wondering if it might make sense to separate out the stripe change into a separate pr similar to the sentry change just to keep the separation clean in case something goes wrong. Otherwise this looks great.

Thanks for doing this!

@araujobarret
Copy link
Contributor Author

araujobarret commented Aug 29, 2023

I wondered that about Stripe too, but tipisi-stripe was breaking Android(during build time) with some weird Java stuff, then the upgrade seemed like a quick win given no breaking changes.
@gkartalis and I will be doing some QA once the betas are ready in the offer/buy/auction flow to make sure everything is in order, feel free to try out the betas once they're ready too 👍

@brainbicycle
Copy link
Contributor

I wondered that about Stripe too, but tipisi-stripe was breaking Android(during build time) with some weird Java stuff, then the upgrade seemed like a quick win given no breaking changes.
@gkartalis and I will be doing some QA once the betas are ready in the offer/buy/auction flow to make sure everything is in order, feel free to try out the betas once they're ready too 👍

yeah I hear that not saying not to do the stripe change, just if possible put it into a separate PR and merge first, that way if there is breakage with credit cards or something down the line it is easy to isolate

@araujobarret
Copy link
Contributor Author

Actually, I can do it that way, not sure if kotlin bump would work with the old React native version but I can try separating it for a revert in case of issues.

@damassi
Copy link
Member

damassi commented Aug 29, 2023

Amazing @araujobarret!!

@araujobarret araujobarret force-pushed the araujobarret/chore/rn-bump-0.70.13 branch from b6af64d to 516b6ca Compare August 30, 2023 09:47
@araujobarret
Copy link
Contributor Author

@brainbicycle I was working on retiring tipsi in another branch but found a blocker when replacing it with official stripe library(stripe/stripe-react-native#1044).

The solution was to rever tipisi commit here and add jetifier to the install script to fix android -> androidx packaging translation from tipsi, with that the builds are 100% fine.

Going to generate the betas to test one more time and if everything is fine merge this PR.

@araujobarret araujobarret merged commit 8d84210 into main Aug 30, 2023
@araujobarret araujobarret deleted the araujobarret/chore/rn-bump-0.70.13 branch August 30, 2023 10:53
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.

6 participants