mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-02 20:46:15 +01:00
use sdk 22 for gradle builds too; rename apk file based on git revision number
This commit is contained in:
parent
ca41a2390c
commit
b8c98487d7
2 changed files with 11 additions and 2 deletions
|
@ -19,7 +19,7 @@ android {
|
||||||
buildToolsVersion "22.0.1"
|
buildToolsVersion "22.0.1"
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 7
|
minSdkVersion 7
|
||||||
targetSdkVersion 14
|
targetSdkVersion 22
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename all output artifacts to include version information
|
// Rename all output artifacts to include version information
|
||||||
|
@ -103,6 +103,15 @@ android {
|
||||||
lintOptions {
|
lintOptions {
|
||||||
abortOnError false
|
abortOnError false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def gitrev = "git describe --tags".execute().text
|
||||||
|
applicationVariants.all { variant ->
|
||||||
|
variant.outputs.each { output ->
|
||||||
|
output.outputFile =
|
||||||
|
new File(output.outputFile.parent,
|
||||||
|
output.outputFile.name.replace(".apk", "-${gitrev}.apk"))
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -26,7 +26,7 @@ subprojects {
|
||||||
afterEvaluate {project ->
|
afterEvaluate {project ->
|
||||||
if (project.hasProperty("android")) {
|
if (project.hasProperty("android")) {
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 14
|
compileSdkVersion 22
|
||||||
buildToolsVersion '22.0.1'
|
buildToolsVersion '22.0.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue