Fix Gradle setup in 'Integrating with existing apps'

Summary:
Based on https://github.com/facebook/react-native/pull/7470, fixing the case when an existing Android app uses React Native as well as 3rd-party React Native modules.

With this PR Gradle should always pick up React Native binaries from node_modules rather than fetching old binaries from JCenter.
Closes https://github.com/facebook/react-native/pull/7759

Differential Revision: D3348640

fbshipit-source-id: 7509eb54bba6e59cf7f4a116bf444fc4983d2d33
This commit is contained in:
Martin Konicek 2016-05-25 13:33:26 -07:00 committed by Facebook Github Bot 5
parent ed47efe4a1
commit 7e62c1165b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ allprojects {
...
maven {
// All of React Native (JS, Android binaries) is installed from npm
url "$projectDir/node_modules/react-native/android"
url "$rootDir/node_modules/react-native/android"
}
}
...