1
0
Fork 1

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.
This commit is contained in:
Michael 2014-11-22 19:53:37 +01:00
parent da4a6691fb
commit 7596a01652
2 changed files with 13 additions and 15 deletions

View file

@ -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"))
}
}
}

View file

@ -19,7 +19,10 @@ group = 'de.measite.minidns'
description = "A minimal DNS client library with support for A, AAAA, NS and SRV records"
sourceCompatibility = 1.7
version = 'git tag --points-at HEAD'.execute().text.trim()
isSNAPSHOT = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim() == 'master'
ext {
isSNAPSHOT = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim() == 'master'
}
if (isSNAPSHOT) {
version = version + '-SNAPSHOT'
@ -74,4 +77,4 @@ modifyPom {
}
dependencies {
}
}