File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 11
22apply plugin : ' com.android.library'
33
4- def _ext = rootProject. ext
5-
6- def _compileSdkVersion = _ext. has(' compileSdkVersion' ) ? _ext. compileSdkVersion : 23
7- def _buildToolsVersion = _ext. has(' buildToolsVersion' ) ? _ext. buildToolsVersion : ' 23.0.1'
8- def _minSdkVersion = _ext. has(' minSdkVersion' ) ? _ext. minSdkVersion : 16
9- def _targetSdkVersion = _ext. has(' targetSdkVersion' ) ? _ext. targetSdkVersion : 22
10-
4+ def DEFAULT_COMPILE_SDK_VERSION = 27
5+ def DEFAULT_BUILD_TOOLS_VERSION = " 27.0.3"
6+ def DEFAULT_TARGET_SDK_VERSION = 27
117
128android {
13- compileSdkVersion _compileSdkVersion
14- buildToolsVersion _buildToolsVersion
9+ compileSdkVersion project . hasProperty( ' compileSdkVersion ' ) ? project . compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
10+ buildToolsVersion project . hasProperty( ' buildToolsVersion ' ) ? project . buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
1511
1612 defaultConfig {
17- minSdkVersion _minSdkVersion
18- targetSdkVersion _targetSdkVersion
13+ minSdkVersion 16
14+ targetSdkVersion project . hasProperty( ' targetSdkVersion ' ) ? project . targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
1915 versionCode 1
2016 versionName " 1.0"
2117 ndk {
@@ -30,4 +26,4 @@ android {
3026dependencies {
3127 compile ' com.facebook.react:react-native:+'
3228}
33-
29+
You can’t perform that action at this time.
0 commit comments