From ebfc3c1c236bba516049a8955dc7ec908be4b047 Mon Sep 17 00:00:00 2001 From: Odweta Date: Sat, 9 Nov 2024 10:04:50 +0100 Subject: [PATCH] still trying to fix it --- mobile/app/build.gradle.kts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/mobile/app/build.gradle.kts b/mobile/app/build.gradle.kts index d64363d..0dae8b6 100644 --- a/mobile/app/build.gradle.kts +++ b/mobile/app/build.gradle.kts @@ -17,7 +17,16 @@ android { testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } - + + applicationVariants.all { + this.outputs + .map { it as com.android.build.gradle.internal.api.ApkVariantOutputImpl } + .forEach { output -> + var apkName = "com.odweta.solon_" + this.versionName + ".apk" + output.outputFileName = apkName + } + } + buildTypes { release { isMinifyEnabled = false @@ -25,13 +34,6 @@ android { getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) - applicationVariants.all { variant -> - variant.outputs.all { output -> - val versionName = variant.versionName - val fileName = "com.odweta.solon_$versionName.apk" - output.outputFileName = fileName - } - } } } compileOptions {