Merge pull request #232 from uqmessias/master

Check for ext property on Android gradle module
This commit is contained in:
Gant Laborde 2017-11-05 09:53:37 -06:00 committed by GitHub
commit 76fccfa7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -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