apk name
This commit is contained in:
parent
c1563cd10e
commit
2272be42f2
1 changed files with 7 additions and 0 deletions
|
|
@ -26,6 +26,13 @@ android {
|
|||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.each { output ->
|
||||
def file = output.packageApplication.outputFile
|
||||
def fileName = org.apache.commons.io.FilenameUtils.getExtension(android.defaultConfig.applicationId) + "-" + android.defaultConfig.versionName + "-" + variant.buildType.name + ".apk"
|
||||
output.packageApplication.outputFile = new File(file.parent, fileName)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue