From 039d44e56196d33bf625788bcebc2bee248015db Mon Sep 17 00:00:00 2001
From: Andri Joos <andri@joos.io>
Date: Mon, 18 Nov 2024 16:24:21 +0100
Subject: [PATCH] make apk name configurable

---
 flutter/flutter-android.gitlab-ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/flutter/flutter-android.gitlab-ci.yml b/flutter/flutter-android.gitlab-ci.yml
index eb79687..8f5dd11 100644
--- a/flutter/flutter-android.gitlab-ci.yml
+++ b/flutter/flutter-android.gitlab-ci.yml
@@ -19,6 +19,7 @@ variables:
   BUNDLETOOL_IMAGE: andrijoos/bundletool
   ANDROID_PLATFORMS: android-arm,android-arm64,android-x64
   AAB_NAME: ${APP_NAME}_${APPLICATION_VERSION}.aab
+  APK_NAME: ${APP_NAME}_${APPLICATION_VERSION}.apk
 
 .build_android:
   stage: build
@@ -51,10 +52,10 @@ variables:
     - amd64
   artifacts:
     paths:
-      - ${APP_NAME}_${APPLICATION_VERSION}.apk
+      - ${APK_NAME}
     expire_in: 1 day
   script:
     - echo $SIGNING_KEYSTORE | base64 -d > keystore.jks
     - bundletool build-apks --bundle=${AAB_NAME} --output=apks.apks --mode=universal --ks=keystore.jks --ks-pass=pass:$SIGNING_STORE_PW --ks-key-alias=$SIGNING_KEY_ALIAS --key-pass=pass:$SIGNING_KEY_PW
     - unzip -q apks.apks -d apks
-    - mv apks/universal.apk ./${APP_NAME}_${APPLICATION_VERSION}.apk
+    - mv apks/universal.apk ./${APK_NAME}
-- 
GitLab