Adds android version variable.

The variables in gradle.properties can be overridden on command line like: -Pversion=1.
This commit is contained in:
damencho 2016-12-06 13:27:06 -06:00
parent 4720088039
commit e5dc7058c1
2 changed files with 3 additions and 2 deletions

View File

@ -101,8 +101,8 @@ android {
applicationId 'org.jitsi.jitsi_meet_react' applicationId 'org.jitsi.jitsi_meet_react'
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 22 targetSdkVersion 22
versionCode 1 versionCode Integer.parseInt("${version}")
versionName '1.0' versionName "1.0.${version}"
ndk { ndk {
abiFilters 'armeabi-v7a', 'x86' abiFilters 'armeabi-v7a', 'x86'
} }

View File

@ -18,3 +18,4 @@
# org.gradle.parallel=true # org.gradle.parallel=true
android.useDeprecatedNdk=true android.useDeprecatedNdk=true
version=1