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:
a1batross 2020-02-23 06:12:30 +01:00
parent 2fc5f876bc
commit 692517323e
1 changed files with 8 additions and 2 deletions

View File

@ -14,14 +14,20 @@ def getGitSha = {
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 {
compileSdkVersion 29
defaultConfig {
applicationId APP_ID
minSdkVersion 21
targetSdkVersion 29
versionCode 69
versionName "10.0 beta 1"
versionCode buildnum()
versionName "0.99"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true