Extract version code and name
This commit is contained in:
parent
1266e39226
commit
c4d461f915
1 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
def versionMajor = 0
|
||||||
|
def versionMinor = 10
|
||||||
|
def versionPatch = 0
|
||||||
|
def versionBuild = 0
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
@ -12,8 +17,8 @@ android {
|
||||||
applicationId "org.emunix.unipatcher"
|
applicationId "org.emunix.unipatcher"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
versionCode 100000
|
versionCode versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
|
||||||
versionName "0.10"
|
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
cppFlags ""
|
cppFlags ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue