Merge pull request #231 from uqmessias/master
Setup dynamic version for Android SDK
This commit is contained in:
commit
fc78bac027
|
@ -10,13 +10,19 @@ buildscript {
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
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 {
|
android {
|
||||||
compileSdkVersion 26
|
compileSdkVersion _compileSdkVersion
|
||||||
buildToolsVersion '26.0.1'
|
buildToolsVersion _buildToolsVersion
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 16
|
minSdkVersion _minSdkVersion
|
||||||
targetSdkVersion 26
|
targetSdkVersion _targetSdkVersion
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
}
|
}
|
||||||
|
@ -27,5 +33,5 @@ android {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
//noinspection GradleDynamicVersion
|
//noinspection GradleDynamicVersion
|
||||||
provided 'com.facebook.react:react-native:' + project.ext.reactNative
|
provided "com.facebook.react:react-native:${_reactNativeVersion}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue