From ff4b1c88aa3a92a15b60e3204f0c740862a690fc Mon Sep 17 00:00:00 2001 From: oliexdev Date: Tue, 9 Nov 2021 10:21:41 +0100 Subject: [PATCH] don't include version number into the apk filename for debug build type so Travis can find it --- android_app/app/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/android_app/app/build.gradle b/android_app/app/build.gradle index 2ad4e7f3..4aa6f6d8 100644 --- a/android_app/app/build.gradle +++ b/android_app/app/build.gradle @@ -88,7 +88,14 @@ android { buildTypes { debug { - archivesBaseName = "openScale" + // don't include version number into the apk filename for debug build type so Travis can find it + applicationVariants.all { variant -> + variant.outputs.all { output -> + if (variant.buildType.name == "debug") { + outputFileName = "openScale-debug.apk" + } + } + } } release { archivesBaseName = "openScale-"+defaultConfig.versionName