From e2f2e41f097a128b7a89f20bed916394666d4670 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Thu, 23 Aug 2018 12:05:54 -0700 Subject: [PATCH] refine android config (#20731) Summary: By this change we can unify version early, like we can make kotlin version share in buildscript and app dependency the same time ([butterknife](https://github.com/JakeWharton/butterknife/blob/master/build.gradle) use the same). pass all current ci and one of my project https://github.com/gengjiawen/ReactNative64bitDemo. none [GENERAL] [ANDROID] [TEMPLATE] - refine android config Pull Request resolved: https://github.com/facebook/react-native/pull/20731 Differential Revision: D9482954 Pulled By: hramos fbshipit-source-id: d864adbdbc624bc311ccc5f44a15d0334d2d8a59 --- .../templates/HelloWorld/android/build.gradle | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/local-cli/templates/HelloWorld/android/build.gradle b/local-cli/templates/HelloWorld/android/build.gradle index 0c58813ffc..85d8f2f81e 100644 --- a/local-cli/templates/HelloWorld/android/build.gradle +++ b/local-cli/templates/HelloWorld/android/build.gradle @@ -1,6 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { + ext { + buildToolsVersion = "27.0.3" + minSdkVersion = 16 + compileSdkVersion = 27 + targetSdkVersion = 26 + supportLibVersion = "27.1.1" + } repositories { jcenter() google() @@ -25,13 +32,6 @@ allprojects { } } -ext { - buildToolsVersion = "27.0.3" - minSdkVersion = 16 - compileSdkVersion = 27 - targetSdkVersion = 26 - supportLibVersion = "27.1.1" -} task wrapper(type: Wrapper) { gradleVersion = '4.4'