diff --git a/local-cli/generator-android/templates/src/app/build.gradle b/local-cli/generator-android/templates/src/app/build.gradle index 428bb043d..bad655e7e 100644 --- a/local-cli/generator-android/templates/src/app/build.gradle +++ b/local-cli/generator-android/templates/src/app/build.gradle @@ -9,7 +9,7 @@ import com.android.build.OutputFile * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the - * `apply from: "react.gradle"` line. + * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle @@ -59,7 +59,7 @@ import com.android.build.OutputFile * ] */ -apply from: "react.gradle" +apply from: "../../node_modules/react-native/react.gradle" /** * Set this to true to create two separate APKs instead of one: diff --git a/package.json b/package.json index 107a52a03..fc3a5315c 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,7 @@ "React", "React.podspec", "ReactAndroid", + "react.gradle", "android", "Libraries", "packager", diff --git a/local-cli/generator-android/templates/src/app/react.gradle b/react.gradle similarity index 100% rename from local-cli/generator-android/templates/src/app/react.gradle rename to react.gradle