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

Libs forks need to use node_modules when building locally #1706

Conversation

hypest
Copy link
Contributor

@hypest hypest commented Dec 20, 2019

Fixes #1703, #1705

On Android, some of the npm libraries we're forking are using the Maven mirror of React Native both when building them as standalone libs (on JitPack) and when built locally as normal npm deps. That wouldn't be a problem per se but, the RN version referenced in the local builds is the "latest' (see this for example) so, when a newer version becomes available in the maven mirror it gets picked up.

We recently made available in the maven mirror some RN versions that are unfortunately incompatible with the versions expected by the forks, leading to crashes.

The versions used in local builds need to come from the local node_modules folder, and this PR brings in updates to the forks to do just that.

Related PRs:
react-native-svg: wordpress-mobile/react-native-svg#8
react-native-video: wordpress-mobile/react-native-video#2
react-native-slider: wordpress-mobile/react-native-slider#1

To test:

  1. Demo app should work as normal, including showing icons and videos

  2. Pointing WPAndroid's gutenberg-mobile submodule to this PR should also work for all build modes and variants

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@hypest hypest marked this pull request as ready for review December 20, 2019 13:27
Copy link
Contributor

@mchowning mchowning left a comment

Choose a reason for hiding this comment

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

This is working for me. 👍

I think we may be better off using resoulutionStrategy within gradle, but I don't have that ready-to-go yet, so in order to unblock the team I'm fine merging this and if I get a better solution working I can put up another PR proposing to revert this and use the other solution.

@mchowning mchowning merged commit 2abb0a5 into develop Dec 20, 2019
@mchowning mchowning deleted the fix/update-forks-to-use-node_modules-for-maven-repo-when-building-as-npm-deps branch December 20, 2019 14:31
@hypest
Copy link
Contributor Author

hypest commented Dec 20, 2019

This PR got merged before the various fork PRs got merged so, will create a new PR to point to merged versions.

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.

RNSVGPath Crash on Start of Example App
3 participants