2013-08-01 18:50:41 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2013-11-25 22:19:53 +00:00
|
|
|
|
2013-08-01 18:50:41 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2014-03-11 09:23:17 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:0.9.+'
|
2013-11-25 22:19:53 +00:00
|
|
|
classpath 'com.github.jcandksolutions.gradle:android-unit-test:1.0.+'
|
2013-08-01 18:50:41 +00:00
|
|
|
}
|
|
|
|
}
|
2014-01-15 23:42:39 +00:00
|
|
|
|
2013-08-01 18:50:41 +00:00
|
|
|
apply plugin: 'android'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2013-08-19 12:41:26 +00:00
|
|
|
maven {
|
2013-08-23 01:39:42 +00:00
|
|
|
url project.hasProperty('ligisMavenUrl') ? ligisMavenUrl : "https://raw.github.com/ligi/ligis-mvn-repo/master";
|
2013-08-19 12:41:26 +00:00
|
|
|
}
|
2013-08-01 18:50:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2013-11-28 18:24:41 +00:00
|
|
|
compileSdkVersion 19
|
2013-12-25 05:59:34 +00:00
|
|
|
buildToolsVersion "19.0.1"
|
2013-11-28 18:24:41 +00:00
|
|
|
|
2013-12-01 22:05:15 +00:00
|
|
|
defaultConfig {
|
2014-03-28 12:00:57 +00:00
|
|
|
versionCode 217
|
|
|
|
versionName "2.1.7"
|
2013-12-07 17:16:51 +00:00
|
|
|
minSdkVersion 9
|
2013-12-01 22:05:15 +00:00
|
|
|
targetSdkVersion 19
|
|
|
|
packageName "org.ligi.passandroid"
|
|
|
|
}
|
|
|
|
|
2013-11-28 18:24:41 +00:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
runProguard false
|
|
|
|
proguardFile 'proguard-project.txt'
|
|
|
|
}
|
|
|
|
}
|
2013-08-01 18:50:41 +00:00
|
|
|
|
2013-12-14 20:16:38 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
|
|
|
|
2014-01-15 23:42:39 +00:00
|
|
|
flavorGroups "maps", "analytics", "distribution"
|
|
|
|
|
2013-08-19 12:24:41 +00:00
|
|
|
productFlavors {
|
2013-08-23 01:39:42 +00:00
|
|
|
|
2013-08-19 12:24:41 +00:00
|
|
|
withMaps {
|
|
|
|
flavorGroup "maps"
|
|
|
|
}
|
|
|
|
|
|
|
|
noMaps {
|
|
|
|
flavorGroup "maps"
|
|
|
|
}
|
|
|
|
|
|
|
|
withAnalytics {
|
|
|
|
flavorGroup "analytics"
|
|
|
|
}
|
|
|
|
|
|
|
|
noAnalytics {
|
|
|
|
flavorGroup "analytics"
|
|
|
|
}
|
|
|
|
|
2014-01-16 00:34:32 +00:00
|
|
|
forFDroid {
|
|
|
|
flavorGroup "distribution"
|
|
|
|
}
|
2014-01-15 23:42:39 +00:00
|
|
|
|
2014-01-16 00:34:32 +00:00
|
|
|
forPlay {
|
|
|
|
flavorGroup "distribution"
|
|
|
|
}
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
2013-08-01 18:50:41 +00:00
|
|
|
|
2014-01-16 00:34:32 +00:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2014-01-15 23:42:39 +00:00
|
|
|
|
2013-08-01 18:50:41 +00:00
|
|
|
}
|
|
|
|
|
2013-11-25 22:19:53 +00:00
|
|
|
apply plugin: 'android-unit-test'
|
|
|
|
|
|
|
|
dependencies {
|
2014-01-15 23:42:39 +00:00
|
|
|
// The Apache Software License, Version 2.0
|
2013-11-25 22:19:53 +00:00
|
|
|
compile 'com.googlecode.android-query:android-query:0.25.+'
|
|
|
|
compile 'com.google.code.gson:gson:2.2.4'
|
2014-03-28 06:16:53 +00:00
|
|
|
compile 'com.android.support:support-v4:19.1'
|
2013-12-31 05:42:18 +00:00
|
|
|
compile 'net.lingala.zip4j:zip4j:1.2.9'
|
2014-02-28 08:13:37 +00:00
|
|
|
compile 'com.android.support:appcompat-v7:19.0.1'
|
2013-12-01 22:05:15 +00:00
|
|
|
compile 'com.jakewharton:butterknife:4.0.1'
|
2013-12-04 12:15:56 +00:00
|
|
|
compile 'joda-time:joda-time:2.3'
|
2014-03-26 23:10:22 +00:00
|
|
|
compile 'com.squareup:otto:1.3.4'
|
2014-03-26 12:56:22 +00:00
|
|
|
compile 'com.github.chrisbanes.actionbarpulltorefresh:extra-abc:0.9.3'
|
2014-01-15 23:42:39 +00:00
|
|
|
compile 'org.ligi:AXT:0.25'
|
|
|
|
compile 'org.ligi:tracedroid:1.1'
|
2014-03-05 15:35:46 +00:00
|
|
|
compile 'com.google.guava:guava:16.0.1'
|
2014-03-26 23:38:18 +00:00
|
|
|
compile 'com.squareup.okhttp:okhttp:1.5.2'
|
2013-12-06 23:01:49 +00:00
|
|
|
|
2013-12-06 18:07:23 +00:00
|
|
|
// TODO watch progress at zxing - last official had problems with aztec format
|
|
|
|
// snapshot works - but switch back to official when available
|
2013-12-06 19:12:27 +00:00
|
|
|
compile fileTree(dir: 'libs', include: 'zxing-core-2.3.0-SNAPSHOT.jar')
|
|
|
|
|
2013-11-25 22:19:53 +00:00
|
|
|
testCompile 'junit:junit:4.10'
|
2013-11-25 22:43:58 +00:00
|
|
|
testCompile 'org.robolectric:robolectric:2.2'
|
2013-12-14 20:16:38 +00:00
|
|
|
testCompile 'org.easytesting:fest:1.0.15'
|
2013-11-25 22:19:53 +00:00
|
|
|
testCompile 'com.squareup:fest-android:1.0.7'
|
|
|
|
|
|
|
|
testCompile fileTree(dir: 'libs', include: 'core-2.3.0-SNAPSHOT.jar')
|
2014-03-05 15:35:46 +00:00
|
|
|
//testCompile 'com.googlecode.android-query:android-query:0.25.+'
|
2013-11-25 22:19:53 +00:00
|
|
|
testCompile 'com.google.code.gson:gson:2.2.4'
|
|
|
|
testCompile 'org.ligi:tracedroid:1.1'
|
2013-12-31 05:42:18 +00:00
|
|
|
testCompile 'org.ligi:AXT:0.25'
|
2014-02-28 09:10:11 +00:00
|
|
|
testCompile 'com.android.support:support-v4:19.0.1'
|
|
|
|
testCompile 'com.android.support:appcompat-v7:19.0.1'
|
2013-11-28 18:24:41 +00:00
|
|
|
|
2014-03-26 11:42:12 +00:00
|
|
|
|
|
|
|
def play_services = 'com.google.android.gms:play-services:4.3.23'
|
|
|
|
|
|
|
|
withAnalyticsCompile play_services
|
|
|
|
withMapsCompile play_services
|
2013-11-25 22:19:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tasks.withType(Test) {
|
|
|
|
scanForTestClasses = false
|
|
|
|
include "**/*The*.class" // whatever Ant pattern matches your test class files
|
|
|
|
exclude '**/*$*' //exclude inner classes
|
|
|
|
}
|