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

Use v0.60.0 patch from jtreanor/react-native #1184

Merged
merged 8 commits into from
Jul 5, 2019

Conversation

jtreanor
Copy link
Contributor

@jtreanor jtreanor commented Jun 28, 2019

This updates gutenberg-mobile to use a version of RN v0.60.0 which is patched with my changes from facebook/react-native#25393. I have just cherry-picked my changes onto the release v0.60.0 version so there are no other unexpected changes.

I have updated the podspecs of our dependencies:

The alternative to the above changes would be to maintain our own copies of the podspecs in third-party-podspecs. You can exclude the podspecs from the diff by going here.

To do: Patch the podspec of react-native-safe-area (its manually updated in this PR for now). This is now done in a fork here: https://github.com/wordpress-mobile/react-native-safe-area/tree/rn-0.60.0-patch

To test:

Update release notes:

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

@hypest hypest requested a review from marecar3 June 28, 2019 14:56
@jtreanor jtreanor force-pushed the rn-0.60.0-patch branch 3 times, most recently from ec586eb to d1d4b19 Compare July 2, 2019 14:54
@jtreanor jtreanor changed the title Use v0.60.0-rc.3 patch from jtreanor/react-native Use v0.60.0 patch from jtreanor/react-native Jul 3, 2019
s.dependency 'React/RCTActionSheet', react_native_version
s.dependency 'React/DevSupport', react_native_version
s.dependency 'React-Core', react_native_version
s.dependency 'React-RCTImage', react_native_version
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reducing these to only what we need means that the build will be leaner and hopefully faster. Transitive dependencies (such as yoga) will still be resolved.

cd "node_modules/react-native"

RN_PODSPECS=$(find * -type f -name "*.podspec" -not -path "third-party-podspecs/*" -print)
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 using find to generate all the podspecs in react-native. This means we have a lot more podspecs in the repo (hence the big diff).

@jtreanor jtreanor marked this pull request as ready for review July 3, 2019 14:29
@jtreanor jtreanor requested a review from etoledom July 3, 2019 14:29
Copy link
Contributor

@etoledom etoledom left a comment

Choose a reason for hiding this comment

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

Everything seems to work as expected.
Thank you so much @jtreanor. This has been a big one!

@etoledom
Copy link
Contributor

etoledom commented Jul 5, 2019

cc @marecar3 - With this we are fixing the integration of RN 0.60 on WPiOS. This should unblock the merge of issue/android_x_migration

@jtreanor jtreanor merged commit 3c3a3ad into issue/android_x_migration Jul 5, 2019
@jtreanor jtreanor deleted the rn-0.60.0-patch branch July 5, 2019 12:35
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.

2 participants