Updated generated apk file name

This commit is contained in:
PeratX 2017-04-06 21:52:32 +08:00
parent 7e29d21ac7
commit d36ab5d9a5

View File

@ -17,10 +17,20 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions{
lintOptions {
checkReleaseBuilds false
abortOnError false
}
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
def fileName = outputFile.name.replace("app", "${defaultConfig.applicationId}_${defaultConfig.versionName}_${System.currentTimeMillis()}")
output.outputFile = new File(outputFile.parent, fileName)
}
}
}
}
dependencies {