From ac6650d917b8161900ca9318003b5a3fc1ce95fc Mon Sep 17 00:00:00 2001 From: mattvchandler Date: Tue, 16 Apr 2019 09:29:55 -0800 Subject: [PATCH] simplify version name/code for Fdroid --- app/build.gradle | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7b56b71..1eba96d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,34 +1,16 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' -ext.ver_major = 1 -ext.ver_minor = 0 -ext.ver_patch = 5 -ext.min_sdk = 19 - -private Integer gen_version_code() -{ - // version code is 0<2-digit MAJOR><2-digit MINOR><2-digit PATCH> - return ext.min_sdk * 10000000 + - ext.ver_major * 10000 + - ext.ver_minor * 100 + - ext.ver_patch -} - -private String gen_version_name() -{ - return "${ext.ver_major}.${ext.ver_minor}.${ext.ver_patch}" -} - android { compileSdkVersion 28 dataBinding.enabled = true defaultConfig { applicationId "org.mattvchandler.a2050" - minSdkVersion project.ext.min_sdk + minSdkVersion 19 targetSdkVersion 28 - versionCode gen_version_code() - versionName gen_version_name() + versionName "1.0.5" + // version code is 0<2-digit MAJOR><2-digit MINOR><2-digit PATCH> + versionCode 190010005 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true externalNativeBuild {