From 54c2588bd68429f01b8ecc994cca20e9e0f40423 Mon Sep 17 00:00:00 2001 From: bvandeusen Date: Sun, 1 Mar 2026 14:42:24 -0500 Subject: [PATCH] Name release APK Fabled-..apk Gradle applicationVariants hook renames the output from app-release.apk to e.g. Fabled-26.03.01.1.apk. The correctly named file is produced at build/app/outputs/apk/release/ and should be used for Forgejo releases. Co-Authored-By: Claude Sonnet 4.6 --- android/app/build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 22c6a64..5d0f187 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -37,6 +37,14 @@ android { signingConfig = signingConfigs.getByName("debug") } } + + applicationVariants.all { + val variant = this + outputs.all { + val output = this as? com.android.build.gradle.internal.api.BaseVariantOutputImpl + output?.outputFileName = "Fabled-${variant.versionName}.${variant.versionCode}.apk" + } + } } flutter {