From 84f82e5cdd06e1e4ed9ae0ebaf0dab57c5046f64 Mon Sep 17 00:00:00 2001 From: Francois Dumas Date: Wed, 25 May 2016 07:48:01 -0700 Subject: [PATCH] use RN version from node_modules instead of jcenter Summary: the current `build.gradle` configuration make all third-party plugins to pull react native from jcenter instead of using version from `node_modules`. For example, a newly generated project with RN 0.25 using https://github.com/ProjectSeptemberInc/gl-react-native leads to the following gradle output: ``` Download https://jcenter.bintray.com/com/facebook/stetho/stetho-okhttp/1.2.0/stetho-okhttp-1.2.0.pom Download https://jcenter.bintray.com/com/facebook/stetho/stetho/1.2.0/stetho-1.2.0.pom Download https://jcenter.bintray.com/com/facebook/stetho/stetho/1.2.0/stetho-1.2.0.jar Download https://jcenter.bintray.com/com/facebook/stetho/stetho-okhttp/1.2.0/stetho-okhttp-1.2.0.jar Download https://jcenter.bintray.com/com/facebook/react/react-native/0.20.1/react-native-0.20.1.aar ``` Closes https://github.com/facebook/react-native/pull/7470 Differential Revision: D3346526 Pulled By: mkonicek fbshipit-source-id: 0f1d051f4340f35403931727982900a9fc7abad5 --- local-cli/generator-android/templates/src/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/generator-android/templates/src/build.gradle b/local-cli/generator-android/templates/src/build.gradle index 403a00756..fcba4c587 100644 --- a/local-cli/generator-android/templates/src/build.gradle +++ b/local-cli/generator-android/templates/src/build.gradle @@ -18,7 +18,7 @@ allprojects { jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm - url "$projectDir/../../node_modules/react-native/android" + url "$rootDir/../node_modules/react-native/android" } } }