1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-24 04:45:13 +01:00

Add version suffix for fdroid builds

This commit is contained in:
世界 2021-04-13 09:07:05 +08:00
parent 2c28b02448
commit ea31d82c6e
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -354,6 +354,16 @@ android {
}
applicationVariants.all { variant ->
def flavor = variant.mergedFlavor
if (variant.buildType.name == "fdroidArmRelease") {
variant.outputs.each { output ->
output.versionNameOverride = flavor.versionName + "-armeabi-v7a"
}
} else if (variant.buildType.name == "fdroidArm64Release") {
variant.outputs.each { output ->
output.versionNameOverride = flavor.versionName + "-arm64-v8a"
}
}
variant.outputs.all { output ->
outputFileName = outputFileName.replace("TMessagesProj", "NekoX")
}