diff --git a/app/build.gradle b/app/build.gradle index 394e8e37..920cb282 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,11 +51,11 @@ def getVersionString = { flavor -> return flavor == 'debug' ? getDebugVersion() android { - namespace 'io.github.sspanak.tt9' + namespace PACKAGE_NAME compileSdk 34 defaultConfig { - applicationId "io.github.sspanak.tt9" + applicationId PACKAGE_NAME minSdk 19 //noinspection ExpiredTargetSdkVersion targetSdk 30 @@ -100,6 +100,10 @@ android { assembleDebug.finalizedBy(updateManifest) assembleRelease.finalizedBy(updateManifest) + + variant.outputs.configureEach { + outputFileName = "${APP_NAME}-v${getVerName()}.apk" + } } } diff --git a/app/constants.gradle b/app/constants.gradle index 31020444..8bfe5eee 100644 --- a/app/constants.gradle +++ b/app/constants.gradle @@ -1,3 +1,6 @@ +ext.APP_NAME = 'tt9' +ext.PACKAGE_NAME = "io.github.sspanak.${APP_NAME}" + ext.LANGUAGES_DIR_NAME = 'languages' ext.DEFINITIONS_DIR_NAME = 'definitions' ext.DICTIONARIES_DIR_NAME = 'dictionaries'