gradle: set up version to 0.99 for now and version code to days passed since first my commit to this repo
This commit is contained in:
parent
f7623a0a44
commit
7e0b45c52e
|
@ -14,14 +14,20 @@ def getGitSha = {
|
||||||
return stdout.toString().trim()
|
return stdout.toString().trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def buildnum = {
|
||||||
|
def today = new Date()
|
||||||
|
def epoch = new Date(119, 11, 8) // first Husky commit was 20191208
|
||||||
|
return today - epoch
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId APP_ID
|
applicationId APP_ID
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 69
|
versionCode buildnum()
|
||||||
versionName "10.0 beta 1"
|
versionName "0.99"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue