Check for ext property on Android gradle module
This commit is contained in:
parent
fc78bac027
commit
0fb4e85da7
|
@ -10,11 +10,13 @@ buildscript {
|
|||
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
def _reactNativeVersion = rootProject.ext.reactNative ?: '+';
|
||||
def _compileSdkVersion = rootProject.ext.compileSdkVersion ?: 26;
|
||||
def _buildToolsVersion = rootProject.ext.buildToolsVersion ?: '26.0.1';
|
||||
def _minSdkVersion = rootProject.ext.minSdkVersion ?: 16;
|
||||
def _targetSdkVersion = rootProject.ext.targetSdkVersion ?: 26;
|
||||
def _ext = rootProject.ext;
|
||||
|
||||
def _reactNativeVersion = _ext.has('reactNative') ? _ext.reactNative : '+';
|
||||
def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 26;
|
||||
def _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '26.0.1';
|
||||
def _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 16;
|
||||
def _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 26;
|
||||
|
||||
android {
|
||||
compileSdkVersion _compileSdkVersion
|
||||
|
|
Loading…
Reference in New Issue