Merge pull request #231 from uqmessias/master

Setup dynamic version for Android SDK
This commit is contained in:
Gant Laborde 2017-11-02 09:15:24 -05:00 committed by GitHub
commit fc78bac027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 5 deletions

View File

@ -10,13 +10,19 @@ 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;
android {
compileSdkVersion 26
buildToolsVersion '26.0.1'
compileSdkVersion _compileSdkVersion
buildToolsVersion _buildToolsVersion
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
minSdkVersion _minSdkVersion
targetSdkVersion _targetSdkVersion
versionCode 1
versionName "1.0"
}
@ -27,5 +33,5 @@ android {
dependencies {
//noinspection GradleDynamicVersion
provided 'com.facebook.react:react-native:' + project.ext.reactNative
provided "com.facebook.react:react-native:${_reactNativeVersion}"
}