File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,26 @@ buildscript {
9
9
10
10
apply plugin : ' com.android.library'
11
11
12
+ def _ext = rootProject. ext
13
+
14
+ def _reactNativeVersion = _ext. has(' reactNative' ) ? _ext. reactNative : ' +'
15
+ def _compileSdkVersion = _ext. has(' compileSdkVersion' ) ? _ext. compileSdkVersion : 27
16
+ def _buildToolsVersion = _ext. has(' buildToolsVersion' ) ? _ext. buildToolsVersion : ' 27.0.3'
17
+ def _minSdkVersion = _ext. has(' minSdkVersion' ) ? _ext. minSdkVersion : 16
18
+ def _targetSdkVersion = _ext. has(' targetSdkVersion' ) ? _ext. targetSdkVersion : 27
19
+
12
20
android {
13
- compileSdkVersion 23
14
- buildToolsVersion " 23.0.1 "
21
+ compileSdkVersion _compileSdkVersion
22
+ buildToolsVersion _buildToolsVersion
15
23
16
24
defaultConfig {
17
- minSdkVersion 16
18
- targetSdkVersion 22
25
+ minSdkVersion _minSdkVersion
26
+ targetSdkVersion _targetSdkVersion
19
27
versionCode 1
20
28
versionName " 1.0"
21
- lintOptions {
22
- abortOnError false
23
- }
29
+ }
30
+ lintOptions {
31
+ abortOnError false
24
32
}
25
33
}
26
34
@@ -29,8 +37,9 @@ repositories {
29
37
}
30
38
31
39
dependencies {
32
- compile ' com.facebook.react:react-native:+'
40
+ // noinspection GradleDynamicVersion
41
+ compile " com.facebook.react:react-native:${ _reactNativeVersion} "
33
42
compile group : ' com.github.bumptech.glide' , name : ' glide' , version : ' 3.8.0'
34
43
compile group : ' com.github.bumptech.glide' , name : ' okhttp3-integration' , version : ' 1.5.0'
35
- compile ' com.android.support:support-v4:19.1.0 '
44
+ compile " com.android.support:support-v4:${ _compileSdkVersion } .+ "
36
45
}
You can’t perform that action at this time.
0 commit comments