File tree 1 file changed +18
-6
lines changed
1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
+ def _ext = rootProject. ext
4
+
5
+ def _reactNativeVersion = _ext. has(' reactNative' ) ? _ext. reactNative : ' +'
6
+ def _compileSdkVersion = _ext. has(' compileSdkVersion' ) ? _ext. compileSdkVersion : 27
7
+ def _buildToolsVersion = _ext. has(' buildToolsVersion' ) ? _ext. buildToolsVersion : ' 27.0.3'
8
+ def _minSdkVersion = _ext. has(' minSdkVersion' ) ? _ext. minSdkVersion : 16
9
+ def _targetSdkVersion = _ext. has(' targetSdkVersion' ) ? _ext. targetSdkVersion : 27
10
+
3
11
android {
4
- compileSdkVersion 25
5
- buildToolsVersion " 25.0.2 "
12
+ compileSdkVersion _compileSdkVersion
13
+ buildToolsVersion _buildToolsVersion
6
14
7
15
defaultConfig {
8
- minSdkVersion 16
9
- targetSdkVersion 22
16
+ minSdkVersion _minSdkVersion
17
+ targetSdkVersion _targetSdkVersion
10
18
versionCode 1
11
19
versionName " 1.0"
12
20
ndk {
13
21
abiFilters " armeabi-v7a" , " x86"
14
22
}
15
23
}
24
+ lintOptions {
25
+ abortOnError false
26
+ }
16
27
}
17
28
18
29
dependencies {
19
- compile ' com.facebook.react:react-native:+'
20
- }
30
+ // noinspection GradleDynamicVersion
31
+ compile " com.facebook.react:react-native:${ _reactNativeVersion} "
32
+ }
You can’t perform that action at this time.
0 commit comments