diff options
author | Michael <betheg@bitcloner.org> | 2014-11-22 19:53:37 +0100 |
---|---|---|
committer | Michael <betheg@bitcloner.org> | 2014-11-22 19:53:37 +0100 |
commit | 868d9f890cd6c0da9d2fcbc030fb099db6585f55 (patch) | |
tree | 2cfb12b899ccb3cccddd5ae75d179fc49a2439d0 /build.gradle | |
parent | 49403fda8410315b34677ebfa2e29f59a61f76bd (diff) |
update android gradle plugin to 0.14.4
to work with AS >= 0.9.0 plugin >= 0.14.0 is required
also update gradle to 2.2.
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/build.gradle b/build.gradle index 876cdf0a..23aafae7 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:0.12.2' + classpath 'com.android.tools.build:gradle:0.14.4' } } @@ -81,18 +81,13 @@ android { buildTypes.release.signingConfig = null } - buildTypes { - applicationVariants.all { variant -> - def fileName = variant.packageApplication.outputFile.name.replace(".apk", - "-" + defaultConfig.versionName + ".apk") - variant.packageApplication.outputFile = new - File(variant.packageApplication.outputFile.parent, fileName) - if (variant.zipAlign) { - if (variant.name.equals('release')) { - variant.outputFile = new File(variant.outputFile.parent, - rootProject.name + "-" + defaultConfig.versionName + ".apk") - } - } + applicationVariants.all { variant -> + if (variant.name.equals('release')) { + variant.outputs.each { output -> + 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 + .replace(".apk", "-${variant.versionName}.apk")) + } } } |