mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
3.2 KiB
Groovy
81 lines
3.2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:0.5.+'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'android'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 17
|
|
buildToolsVersion "17.0.0"
|
|
|
|
defaultConfig {
|
|
minSdkVersion 7
|
|
targetSdkVersion 17
|
|
}
|
|
|
|
signingConfigs {
|
|
release
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
runProguard true
|
|
proguardFile 'proguard.cfg'
|
|
proguardFile getDefaultProguardFile('proguard-android.txt')
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
if (project.hasProperty('keyAlias') &&
|
|
project.hasProperty('storeFile') &&
|
|
project.hasProperty('storePassword') &&
|
|
project.hasProperty('keyPassword')) {
|
|
android.signingConfigs.release.keyAlias = keyAlias
|
|
android.signingConfigs.release.storeFile = file(storeFile)
|
|
android.signingConfigs.release.storePassword = storePassword
|
|
android.signingConfigs.release.keyPassword = keyPassword
|
|
}
|
|
}
|
|
|
|
android.applicationVariants.all { variant ->
|
|
variant.mergeResources.doLast {
|
|
if (project.hasProperty('gapiKey')) {
|
|
File values = file("${buildDir}/res/all/${variant.dirName}/values/values.xml")
|
|
values.write(
|
|
values.getText('UTF-8').replaceAll(/<string name="gapi_key">.*<\/string>/, "<string name=\"gapi_key\">${project.property('gapiKey')}</string>"),
|
|
'UTF-8')
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile 'com.android.support:support-v4:18.0.0'
|
|
compile project(":android-aac-enc")
|
|
compile project(":greendroid")
|
|
compile project(":api")
|
|
compile fileTree(dir: "libs", includes: ["*.jar"])
|
|
|
|
compile group: 'com.google.guava', name: 'guava', version: '11.0.1', transitive: false
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '1.7.1', transitive: false
|
|
compile group: 'org.codehaus.jackson', name: 'jackson-core-asl', version: '1.6.7', transitive: false
|
|
compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.1.1', transitive: false
|
|
compile group: 'com.google.api-client', name: 'google-api-client', version: '1.6.0-beta', transitive: false
|
|
compile group: 'com.google.api-client', name: 'google-api-client-extensions', version: '1.6.0-beta', transitive: false
|
|
compile group: 'com.google.api-client', name: 'google-api-client-extensions-android2', version: '1.6.0-beta', transitive: false
|
|
compile group: 'com.google.http-client', name: 'google-http-client', version: '1.6.0-beta', transitive: false
|
|
compile group: 'com.google.http-client', name: 'google-http-client-extensions', version: '1.6.0-beta', transitive: false
|
|
compile group: 'com.google.http-client', name: 'google-http-client-extensions-android2', version: '1.6.0-beta', transitive: false
|
|
compile group: 'com.google.http-client', name: 'google-http-client-extensions-android3', version: '1.6.0-beta', transitive: false
|
|
compile group: 'com.google.oauth-client', name: 'google-oauth-client', version: '1.6.0-beta', transitive: false
|
|
compile group: 'com.google.oauth-client', name: 'google-oauth-client-extensions', version: '1.6.0-beta', transitive: false
|
|
}
|