File tree 2 files changed +13
-5
lines changed
local-cli/templates/HelloWorld/android
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ def enableSeparateBuildPerCPUArchitecture = false
94
94
def enableProguardInReleaseBuilds = false
95
95
96
96
android {
97
- compileSdkVersion 26
98
- buildToolsVersion " 26.0.3 "
97
+ compileSdkVersion rootProject . ext . compileSdkVersion
98
+ buildToolsVersion rootProject . ext . buildToolsVersion
99
99
100
100
defaultConfig {
101
101
applicationId " com.helloworld"
102
- minSdkVersion 16
103
- targetSdkVersion 22
102
+ minSdkVersion rootProject . ext . minSdkVersion
103
+ targetSdkVersion rootProject . ext . targetSdkVersion
104
104
versionCode 1
105
105
versionName " 1.0"
106
106
ndk {
@@ -138,7 +138,7 @@ android {
138
138
139
139
dependencies {
140
140
compile fileTree(dir : " libs" , include : [" *.jar" ])
141
- compile " com.android.support:appcompat-v7:26.1.0 "
141
+ compile " com.android.support:appcompat-v7:${ rootProject.ext.supportLibVersion } "
142
142
compile " com.facebook.react:react-native:+" // From node_modules
143
143
}
144
144
Original file line number Diff line number Diff line change @@ -30,3 +30,11 @@ allprojects {
30
30
}
31
31
}
32
32
}
33
+
34
+ ext {
35
+ buildToolsVersion = " 26.0.3"
36
+ minSdkVersion = 16
37
+ compileSdkVersion = 26
38
+ targetSdkVersion = 26
39
+ supportLibVersion = " 26.1.0"
40
+ }
You can’t perform that action at this time.
0 commit comments