PassAndroid/build.gradle

144 lines
3.6 KiB
Groovy
Raw Normal View History

2013-08-01 18:50:41 +00:00
buildscript {
2013-08-01 18:50:41 +00:00
repositories {
mavenCentral()
}
2013-08-01 18:50:41 +00:00
dependencies {
2014-05-26 01:10:16 +00:00
classpath 'com.android.tools.build:gradle:0.10.+'
2014-05-26 00:50:44 +00:00
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
classpath 'com.stanfy.spoon:spoon-gradle-plugin:0.10.0'
2013-08-01 18:50:41 +00:00
}
}
2014-01-15 23:42:39 +00:00
2014-04-01 10:54:14 +00:00
apply plugin: 'android-sdk-manager'
2013-08-01 18:50:41 +00:00
apply plugin: 'android'
apply plugin: 'spoon'
2013-08-01 18:50:41 +00:00
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 {
flavorDimensions "maps", "analytics", "distribution"
2014-01-15 23:42:39 +00:00
productFlavors {
2013-08-23 01:39:42 +00:00
withMaps {
2014-05-28 21:43:02 +00:00
flavorDimension "maps"
}
noMaps {
2014-05-28 21:43:02 +00:00
flavorDimension "maps"
}
withAnalytics {
2014-05-28 21:43:02 +00:00
flavorDimension "analytics"
}
noAnalytics {
2014-05-28 21:43:02 +00:00
flavorDimension "analytics"
}
forFDroid {
2014-05-28 21:43:02 +00:00
flavorDimension "distribution"
}
2014-01-15 23:42:39 +00:00
forPlay {
2014-05-28 21:43:02 +00:00
flavorDimension "distribution"
}
}
2013-08-01 18:50:41 +00:00
}
dependencies {
2014-01-15 23:42:39 +00:00
// 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'
2014-05-27 11:23:51 +00:00
compile 'com.android.support:support-v4:19.1.0'
compile 'net.lingala.zip4j:zip4j:1.3.2'
compile 'com.android.support:appcompat-v7:19.1.0'
2014-05-26 22:15:59 +00:00
compile 'com.jakewharton:butterknife:5.1.0'
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-06-05 08:24:21 +00:00
compile 'org.ligi:AXT:0.28'
2014-01-15 23:42:39 +00:00
compile 'org.ligi:tracedroid:1.1'
compile 'com.google.guava:guava:17.0'
compile 'com.squareup.okhttp:okhttp:1.5.4'
compile 'fr.nicolaspomepuy:discreetapprate:2.0.1+@aar'
2013-12-06 23:01:49 +00:00
2014-06-05 12:30:08 +00:00
// cannot use this new version: https://github.com/zxing/zxing/issues/165
// WARNING: might work on some devices or the emulator - but fails on others
// compile 'com.google.zxing:core:3.1.0'
compile fileTree(dir: 'libs', include: 'zxing-core-2.3.0-SNAPSHOT.jar')
2013-12-06 19:12:27 +00:00
2014-05-31 14:48:11 +00:00
androidTestCompile('com.jakewharton.espresso:espresso:1.1-r3') {
exclude group: 'com.android.support'
exclude group: 'com.google.guava'
}
2014-05-31 14:48:11 +00:00
androidTestCompile('com.jakewharton.espresso:espresso-support-v4:1.1-r3') {
exclude group: 'com.android.support'
exclude group: 'com.google.guava'
}
androidTestCompile 'com.squareup.spoon:spoon-client:1.1.0'
2014-05-31 14:48:11 +00:00
androidTestCompile 'com.squareup:fest-android:1.0.7'
2013-11-28 18:24:41 +00:00
def play_services = 'com.google.android.gms:play-services:4.3.23'
withAnalyticsCompile play_services
withMapsCompile play_services
}
2014-05-31 14:48:11 +00:00
android {
compileSdkVersion 19
buildToolsVersion "19.1"
defaultConfig {
versionCode 221
versionName "2.2.1"
minSdkVersion 9
targetSdkVersion 19
packageName "org.ligi.org.ligi.passandroid"
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
}
buildTypes {
release {
runProguard false
proguardFile 'proguard-project.txt'
applicationVariants.all { variant ->
def file = variant.outputFile
variant.outputFile = new File(file.parent, file.name.replace(".apk", "-" + defaultConfig.versionName + ".apk"))
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
abortOnError false
disable "MissingTranslation"
}
// hack for instrumentation testing :-(
packagingOptions {
exclude 'LICENSE.txt'
}
}
2014-05-31 14:48:11 +00:00