From 35d4b16ee51da85cd00b902b139c9e3295fd2cd7 Mon Sep 17 00:00:00 2001 From: "Aleksandr.ru" Date: Sun, 7 May 2023 13:44:30 +0300 Subject: [PATCH] build filename --- app/build.gradle | 7 +++++++ app/version.properties | 4 ++-- gradle.properties | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2d06692..3ad2186 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,6 +51,13 @@ android { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + + android.applicationVariants.all { variant -> + variant.outputs.all { + def app_name = applicationId.tokenize('.')[-1] + outputFileName = "${app_name}-${variant.versionCode}.apk" + } + } } } compileOptions { diff --git a/app/version.properties b/app/version.properties index d5618cd..a6d3fa4 100644 --- a/app/version.properties +++ b/app/version.properties @@ -1,2 +1,2 @@ -#Sun May 07 00:42:20 MSK 2023 -VERSION_CODE=886 +#Sun May 07 13:41:47 MSK 2023 +VERSION_CODE=891 diff --git a/gradle.properties b/gradle.properties index a2e90d8..7f2a52d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,4 +22,4 @@ kotlin.code.style=official # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true android.defaults.buildfeatures.buildconfig=true -android.nonFinalResIds=false \ No newline at end of file +android.nonFinalResIds=true \ No newline at end of file