Make Gradle use the right APK filename.

Rather than making Lime rename it after the fact.
This commit is contained in:
Joseph Cloutier
2016-10-16 15:41:47 -04:00
parent 5c56892ffe
commit 521a81ce8c
2 changed files with 14 additions and 7 deletions

View File

@@ -48,6 +48,16 @@ android {
signingConfig signingConfigs.release
}
}
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
output.outputFile = new File(outputFile.parent, "::APP_FILE::-" + variant.buildType.name + ".apk")
}
}
}
}
dependencies {