95 lines
2.4 KiB
Groovy
95 lines
2.4 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:0.6.+'
|
|
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"
|
|
|
|
buildTypes {
|
|
release {
|
|
runProguard false
|
|
proguardFile 'proguard-project.txt'
|
|
}
|
|
}
|
|
|
|
flavorGroups "maps", "analytics"
|
|
productFlavors {
|
|
|
|
withMaps {
|
|
flavorGroup "maps"
|
|
}
|
|
|
|
noMaps {
|
|
flavorGroup "maps"
|
|
}
|
|
|
|
withAnalytics {
|
|
flavorGroup "analytics"
|
|
}
|
|
|
|
noAnalytics {
|
|
flavorGroup "analytics"
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
apply plugin: 'android-unit-test'
|
|
|
|
|
|
dependencies {
|
|
// TODO watch progress at zxing - last official had problems with aztec format
|
|
// snapshot works - but switch back to official when available
|
|
// compile 'com.google.zxing:core:2.3'
|
|
compile fileTree(dir: 'libs', include: 'zxing-core-2.3.0-SNAPSHOT.jar')
|
|
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
|
|
compile 'com.googlecode.android-query:android-query:0.25.+'
|
|
compile 'com.google.code.gson:gson:2.2.4'
|
|
compile 'org.ligi:tracedroid:1.1'
|
|
compile 'org.ligi:AXT:0.23'
|
|
compile 'com.android.support:support-v4:19.0.0'
|
|
|
|
testCompile 'junit:junit:4.10'
|
|
testCompile 'org.robolectric:robolectric:2.2'
|
|
testCompile 'com.squareup:fest-android:1.0.7'
|
|
|
|
testCompile fileTree(dir: 'libs', include: 'core-2.3.0-SNAPSHOT.jar')
|
|
testCompile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
|
|
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.23'
|
|
testCompile 'com.android.support:support-v4:19.0.0'
|
|
|
|
|
|
compile 'com.google.android.gms:play-services:4.0.30'
|
|
|
|
withAnalyticsCompile fileTree(dir: 'libs', include: 'libGoogleAnalyticsV2.jar')
|
|
withMapsCompile 'com.google.android.gms:play-services:4.0.30'
|
|
}
|
|
|
|
|
|
tasks.withType(Test) {
|
|
scanForTestClasses = false
|
|
include "**/*The*.class" // whatever Ant pattern matches your test class files
|
|
exclude '**/*$*' //exclude inner classes
|
|
}
|