Skip to content

Commit

Permalink
fixed apk default naming
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwai committed Dec 15, 2024
1 parent 2f7940a commit 1c9af99
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ android {
}
}

android.applicationVariants.configureEach { variant ->
variant.outputs.configureEach {
def suffix = ""
if (variant.flavorName == "pre28") {
suffix = "_pre28"
}
def version = variant.versionName.substring(0, variant.versionName.indexOf("-"))
outputFileName = "NClientV3_${version}${suffix}.apk"
}
}

dependencies {
// AndroidX
implementation 'androidx.appcompat:appcompat:1.7.0'
Expand Down

0 comments on commit 1c9af99

Please sign in to comment.