PassAndroid/build.gradle
2014-03-27 05:08:18 +05:30

128 lines
3.2 KiB
Groovy

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.github.jcandksolutions.gradle:android-unit-test:1.0.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
maven {
url project.hasProperty('ligisMavenUrl') ? ligisMavenUrl : "https://raw.github.com/ligi/ligis-mvn-repo/master";
}
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
defaultConfig {
versionCode 215
versionName "2.1.5"
minSdkVersion 9
targetSdkVersion 19
packageName "org.ligi.passandroid"
}
buildTypes {
release {
runProguard false
proguardFile 'proguard-project.txt'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
flavorGroups "maps", "analytics", "distribution"
productFlavors {
withMaps {
flavorGroup "maps"
}
noMaps {
flavorGroup "maps"
}
withAnalytics {
flavorGroup "analytics"
}
noAnalytics {
flavorGroup "analytics"
}
forFDroid {
flavorGroup "distribution"
}
forPlay {
flavorGroup "distribution"
}
}
lintOptions {
abortOnError false
}
}
apply plugin: 'android-unit-test'
dependencies {
// The Apache Software License, Version 2.0
compile 'com.googlecode.android-query:android-query:0.25.+'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.android.support:support-v4:19.0.1'
compile 'net.lingala.zip4j:zip4j:1.2.9'
compile 'com.android.support:appcompat-v7:19.0.1'
compile 'com.jakewharton:butterknife:4.0.1'
compile 'joda-time:joda-time:2.3'
compile 'com.squareup:otto:1.3.4'
compile 'com.github.chrisbanes.actionbarpulltorefresh:extra-abc:0.9.3'
compile 'org.ligi:AXT:0.25'
compile 'org.ligi:tracedroid:1.1'
compile 'com.google.guava:guava:16.0.1'
compile 'com.squareup.okhttp:okhttp:1.5.2'
// TODO watch progress at zxing - last official had problems with aztec format
// snapshot works - but switch back to official when available
compile fileTree(dir: 'libs', include: 'zxing-core-2.3.0-SNAPSHOT.jar')
testCompile 'junit:junit:4.10'
testCompile 'org.robolectric:robolectric:2.2'
testCompile 'org.easytesting:fest:1.0.15'
testCompile 'com.squareup:fest-android:1.0.7'
testCompile fileTree(dir: 'libs', include: 'core-2.3.0-SNAPSHOT.jar')
//testCompile 'com.googlecode.android-query:android-query:0.25.+'
testCompile 'com.google.code.gson:gson:2.2.4'
testCompile 'org.ligi:tracedroid:1.1'
testCompile 'org.ligi:AXT:0.25'
testCompile 'com.android.support:support-v4:19.0.1'
testCompile 'com.android.support:appcompat-v7:19.0.1'
def play_services = 'com.google.android.gms:play-services:4.3.23'
withAnalyticsCompile play_services
withMapsCompile play_services
}
tasks.withType(Test) {
scanForTestClasses = false
include "**/*The*.class" // whatever Ant pattern matches your test class files
exclude '**/*$*' //exclude inner classes
}