aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-12-09 14:33:36 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-12-09 14:33:36 +0100
commit16e3c07cf116bb4d61a3d30a3841576523e7dbc2 (patch)
tree7d794290b9cf96e22602ea7002c8239b58849d01 /build.gradle
parent78370094e9c9c2f58cb5f969217db555f9a283c2 (diff)
parent0193cdb194b76acbc75742e46d186e5bc4a0b159 (diff)
Merge pull request #710 from betheg/as
update android gradle plugin to 0.14.4
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle21
1 files changed, 8 insertions, 13 deletions
diff --git a/build.gradle b/build.gradle
index 48dac0c7..51327d45 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:1.0.0'
}
}
@@ -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"))
+ }
}
}