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.
tasks/astrid/build.gradle

87 lines
3.0 KiB
Groovy

apply plugin: 'com.android.application'
repositories {
mavenCentral()
}
android {
lintOptions {
lintConfig file("../lint.xml")
}
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
minSdkVersion 7
targetSdkVersion 21
}
signingConfigs {
release
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
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
} else {
buildTypes.release.signingConfig = null
}
}
android.applicationVariants.all { variant ->
variant.mergeResources.doLast {
if (project.hasProperty('gapiKey')) {
File values = file("${buildDir}/intermediates/res/${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 {
provided group: 'com.squareup.dagger', name: 'dagger-compiler', version: '1.2.2'
compile group: 'com.android.support', name: 'appcompat-v7', version: '21.0.0'
compile project(":api")
compile group: 'com.rubiconproject.oss', name: 'jchronic', version: '0.2.6', transitive: false
compile group: 'org.scala-saddle', name: 'google-rfc-2445', version: '20110304', transitive: false
compile(group: 'com.google.apis', name: 'google-api-services-tasks', version: 'v1-rev33-1.18.0-rc') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile(group: 'com.google.api-client', name: 'google-api-client-android', version: '1.18.0-rc') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile(group: 'com.google.http-client', name: 'google-http-client-gson', version: '1.18.0-rc') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile group: 'com.google.guava', name: 'guava-jdk5', version: '13.0'
compile group: 'com.github.tony19', name: 'logback-android-classic', version: '1.1.1-2'
apk group: 'com.github.tony19', name: 'logback-android-core', version: '1.1.1-2'
androidTestCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.5', transitive: false
androidTestCompile group: 'com.google.dexmaker', name: 'dexmaker', version: '1.1'
androidTestCompile group: 'com.google.dexmaker', name: 'dexmaker-mockito', version: '1.1'
}