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

98 lines
3.8 KiB
Groovy

11 years ago
buildscript {
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
11 years ago
}
dependencies {
11 years ago
classpath 'com.android.tools.build:gradle:0.6.+'
classpath 'com.squareup.gradle:gradle-android-test-plugin:0.9.1-SNAPSHOT'
11 years ago
}
}
apply plugin: 'android'
apply plugin: 'android-test'
11 years ago
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
11 years ago
}
android {
11 years ago
compileSdkVersion 19
buildToolsVersion "19"
11 years ago
defaultConfig {
minSdkVersion 7
11 years ago
targetSdkVersion 19
11 years ago
}
11 years ago
signingConfigs {
release
}
11 years ago
buildTypes {
release {
runProguard true
proguardFile 'proguard.cfg'
proguardFile getDefaultProguardFile('proguard-android.txt')
signingConfig signingConfigs.release
11 years ago
}
}
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
11 years ago
} else {
buildTypes.release.signingConfig = null
}
11 years ago
}
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')
}
}
}
11 years ago
dependencies {
11 years ago
compile 'com.android.support:support-v4:19.0.+'
11 years ago
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'net.simonvt.menudrawer:menudrawer:3.0.4@aar'
11 years ago
compile project(":android-aac-enc")
compile project(":api")
11 years ago
compile fileTree(dir: "libs", includes: ["*.jar"])
11 years ago
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: '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
testCompile 'junit:junit:4.10'
testCompile 'org.robolectric:robolectric:2.3-SNAPSHOT'
// hack to get android studio to import libraries
instrumentTestCompile group: 'junit', name: 'junit', version: '4.10', transitive: false
instrumentTestCompile group: 'org.robolectric', name: 'robolectric', version: '2.3-SNAPSHOT', transitive: false
11 years ago
}