gradle to set project-wide properties (#19845)
Summary: Change HelloWorld app template to use project-wide properties. See https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. RN community and third-party native module developers adopted this, so it'll make RN package development and usage easy. CI is green https://circleci.com/gh/dulmandakh/react-native/507 Closes https://github.com/facebook/react-native/pull/19845 Differential Revision: D8675341 Pulled By: hramos fbshipit-source-id: 4ed06cd7ef7ae70f153d7f335ef8a9d1371f6ce0
This commit is contained in:
parent
5017b86b52
commit
0a3055d98a
|
@ -94,13 +94,13 @@ def enableSeparateBuildPerCPUArchitecture = false
|
||||||
def enableProguardInReleaseBuilds = false
|
def enableProguardInReleaseBuilds = false
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 26
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||||
buildToolsVersion "26.0.3"
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.helloworld"
|
applicationId "com.helloworld"
|
||||||
minSdkVersion 16
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion 22
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
ndk {
|
ndk {
|
||||||
|
@ -138,7 +138,7 @@ android {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(dir: "libs", include: ["*.jar"])
|
compile fileTree(dir: "libs", include: ["*.jar"])
|
||||||
compile "com.android.support:appcompat-v7:26.1.0"
|
compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
|
||||||
compile "com.facebook.react:react-native:+" // From node_modules
|
compile "com.facebook.react:react-native:+" // From node_modules
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,3 +30,11 @@ allprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ext {
|
||||||
|
buildToolsVersion = "26.0.3"
|
||||||
|
minSdkVersion = 16
|
||||||
|
compileSdkVersion = 26
|
||||||
|
targetSdkVersion = 26
|
||||||
|
supportLibVersion = "26.1.0"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue