--- a/app/build.gradle +++ b/app/build.gradle @@ -1,4 +1,9 @@ apply plugin: 'com.android.application' + +def date = new Date() +def formattedDate = date.format('yyyyMMdd') +def vcode = formattedDate.toInteger() +def vname = formattedDate.toString() android { compileSdkVersion 29 @@ -7,8 +12,8 @@ applicationId "com.codesys.forge" minSdkVersion var targetSdkVersion 29 - versionCode 1 - versionName "1.0" + versionCode vcode + versionName vname testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes {