Merge pull request #232 from uqmessias/master
Check for ext property on Android gradle module
This commit is contained in:
commit
76fccfa7ea
|
@ -10,11 +10,13 @@ buildscript {
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
def _reactNativeVersion = rootProject.ext.reactNative ?: '+';
|
def _ext = rootProject.ext;
|
||||||
def _compileSdkVersion = rootProject.ext.compileSdkVersion ?: 26;
|
|
||||||
def _buildToolsVersion = rootProject.ext.buildToolsVersion ?: '26.0.1';
|
def _reactNativeVersion = _ext.has('reactNative') ? _ext.reactNative : '+';
|
||||||
def _minSdkVersion = rootProject.ext.minSdkVersion ?: 16;
|
def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 26;
|
||||||
def _targetSdkVersion = rootProject.ext.targetSdkVersion ?: 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 {
|
android {
|
||||||
compileSdkVersion _compileSdkVersion
|
compileSdkVersion _compileSdkVersion
|
||||||
|
|
Loading…
Reference in New Issue