Last active
May 3, 2025 16:21
-
-
Save kabirnayeem99/ea271e362777fc45e8581a808b2a2f23 to your computer and use it in GitHub Desktop.
Config your output file name in Gradle Kotlin DSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.android.build.gradle.internal.api.BaseVariantOutputImpl | |
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | |
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType | |
applicationVariants.all { | |
outputs.all { | |
(this as BaseVariantOutputImpl).outputFileName = | |
"AppName-${buildType.name}-${versionName}.apk" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment