aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--build.gradle21
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"))
+ }
}
}