Extract version code and name

This commit is contained in:
Boris Timofeev 2016-12-06 11:00:00 +03:00
parent 1266e39226
commit c4d461f915

View file

@ -1,3 +1,8 @@
def versionMajor = 0
def versionMinor = 10
def versionPatch = 0
def versionBuild = 0
apply plugin: 'com.android.application'
android {
@ -12,8 +17,8 @@ android {
applicationId "org.emunix.unipatcher"
minSdkVersion 14
targetSdkVersion 25
versionCode 100000
versionName "0.10"
versionCode versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
externalNativeBuild {
cmake {
cppFlags ""