From 6afe7eadcb73eec71453c39ddfada68f82fe6eb1 Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Mon, 20 Jun 2022 20:31:20 +0530 Subject: [PATCH 1/2] Update apk output name in build.gradle --- app/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 09d7acdd5..4da07d12a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -66,6 +66,12 @@ android { signingConfig signingConfigs.releaseStableConfig proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } + + applicationVariants.all { variant -> + variant.outputs.all { output -> + outputFileName = "AppLounge-${variant.versionName}-${variant.getFlavorName()}.apk" + } + } } buildFeatures { viewBinding true -- GitLab From 3134103fc2003b0d29fbe3acafbbf47ee4b26ffb Mon Sep 17 00:00:00 2001 From: SayantanRC Date: Mon, 20 Jun 2022 20:53:59 +0530 Subject: [PATCH 2/2] update to properly show build type in apk name --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 4da07d12a..a4db6defa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -69,7 +69,7 @@ android { applicationVariants.all { variant -> variant.outputs.all { output -> - outputFileName = "AppLounge-${variant.versionName}-${variant.getFlavorName()}.apk" + outputFileName = "AppLounge-${variant.versionName}-${variant.buildType.name}.apk" } } } -- GitLab