From 26931dd501aa50b9e277bb4f105c8614eeb7020e Mon Sep 17 00:00:00 2001 From: Reactorcoremeltdown Date: Fri, 17 Jul 2026 23:21:05 +0200 Subject: [PATCH] Name the release APK space.rcmd.android.sizzle_.apk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configure the release variant's output filename (via the legacy applicationVariants API) so the unsigned release APK is stamped with its versionCode — e.g. space.rcmd.android.sizzle_4.apk — to simplify uploading to the private F-Droid repo. Staging keeps its app-staging.apk name. Co-Authored-By: Claude Opus 4.8 --- app/build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f1369d7..b0095df 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -86,6 +86,20 @@ android { } } +// Give the release APK a predictable, versionCode-stamped name so it drops straight +// into the private F-Droid repo: space.rcmd.android.sizzle_.apk. Uses +// the legacy variant API (the Kotlin-DSL `android {}` receiver doesn't expose it). +(extensions.getByName("android") as com.android.build.gradle.AbstractAppExtension) + .applicationVariants.all { + if (buildType.name == "release") { + val vc = versionCode + outputs.all { + (this as com.android.build.gradle.internal.api.BaseVariantOutputImpl) + .outputFileName = "space.rcmd.android.sizzle_$vc.apk" + } + } + } + dependencies { implementation(libs.androidx.core.ktx) implementation(libs.androidx.lifecycle.runtime.ktx)