mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
Merge pull request #768 from betheg/as
gradle: fix Cannot set property outputFile on null object.
This commit is contained in:
commit
135563e941
@ -84,7 +84,9 @@ android {
|
|||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
if (variant.name.equals('release')) {
|
if (variant.name.equals('release')) {
|
||||||
variant.outputs.each { output ->
|
variant.outputs.each { output ->
|
||||||
|
if (output.zipAlign != null) {
|
||||||
output.zipAlign.outputFile = new File(output.outputFile.parent, rootProject.name + "-${variant.versionName}.apk")
|
output.zipAlign.outputFile = new File(output.outputFile.parent, rootProject.name + "-${variant.versionName}.apk")
|
||||||
|
}
|
||||||
output.packageApplication.outputFile = new File(output.outputFile.parent, output.packageApplication.outputFile.name
|
output.packageApplication.outputFile = new File(output.outputFile.parent, output.packageApplication.outputFile.name
|
||||||
.replace(".apk", "-${variant.versionName}.apk"))
|
.replace(".apk", "-${variant.versionName}.apk"))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user