aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2015-01-03 23:19:05 +0100
committerlookshe <github@lookshe.org>2015-01-03 23:19:05 +0100
commit95e2a539517c27b3235acd582f17968c8e301e81 (patch)
tree213bbeed798751e949376d85f4d7d0bd30c5fbfa /build.gradle
parent48717dd7d37c066ab626fc626a2ced626ef21d42 (diff)
parent4f4eff2353f4e359b5582c8e808a4e88631c3e74 (diff)
Merge branch 'master' of ssh://git.fucktheforce.de/conversations
Conflicts: src/main/java/eu/siacs/conversations/Config.java src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java src/main/java/eu/siacs/conversations/utils/UIHelper.java
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle25
1 files changed, 11 insertions, 14 deletions
diff --git a/build.gradle b/build.gradle
index 48dac0c7..29cb3840 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'
}
}
@@ -46,8 +46,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
- versionCode 40
- versionName "0.9.3"
+ versionCode 41
+ versionName "0.10"
}
compileOptions {
@@ -81,18 +81,15 @@ 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 ->
+ if (output.zipAlign != null) {
+ 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"))
+ }
}
}