2013-08-01 18:50:41 +00:00
|
|
|
buildscript {
|
2014-05-31 08:27:16 +00:00
|
|
|
|
2013-08-01 18:50:41 +00:00
|
|
|
repositories {
|
2014-08-12 18:56:31 +00:00
|
|
|
jcenter()
|
2013-08-01 18:50:41 +00:00
|
|
|
}
|
2014-05-31 08:27:16 +00:00
|
|
|
|
2013-08-01 18:50:41 +00:00
|
|
|
dependencies {
|
2015-09-03 17:30:08 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:1.3.1'
|
2014-08-18 18:43:13 +00:00
|
|
|
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
|
2015-07-09 20:22:05 +00:00
|
|
|
classpath('com.stanfy.spoon:spoon-gradle-plugin:1.0.3') {
|
2015-04-05 20:13:48 +00:00
|
|
|
exclude module: "guava"
|
|
|
|
}
|
2015-04-01 11:13:46 +00:00
|
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
|
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'
|
2014-08-18 18:43:13 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2015-03-02 22:50:36 +00:00
|
|
|
apply plugin: 'spoon'
|
2015-04-01 11:13:46 +00:00
|
|
|
apply plugin: 'com.neenbedankt.android-apt'
|
2013-08-01 18:50:41 +00:00
|
|
|
|
|
|
|
repositories {
|
2014-08-12 18:56:31 +00:00
|
|
|
jcenter()
|
2015-03-03 02:28:35 +00:00
|
|
|
mavenLocal()
|
2013-08-01 18:50:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2015-01-25 23:07:50 +00:00
|
|
|
|
2015-09-03 17:30:08 +00:00
|
|
|
compileSdkVersion 23
|
|
|
|
buildToolsVersion "23"
|
2015-01-25 23:07:50 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2015-07-09 19:39:39 +00:00
|
|
|
versionCode 257
|
|
|
|
versionName "2.5.7"
|
2015-01-25 23:07:50 +00:00
|
|
|
minSdkVersion 9
|
2015-03-13 14:34:45 +00:00
|
|
|
targetSdkVersion 22
|
2015-01-25 23:07:50 +00:00
|
|
|
applicationId "org.ligi.passandroid"
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2015-07-02 13:05:00 +00:00
|
|
|
archivesBaseName = "PassAndroid-$versionName"
|
2015-01-25 23:07:50 +00:00
|
|
|
}
|
|
|
|
|
2014-04-27 03:51:18 +00:00
|
|
|
flavorDimensions "maps", "analytics", "distribution"
|
2014-01-15 23:42:39 +00:00
|
|
|
|
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 {
|
2015-05-09 16:49:50 +00:00
|
|
|
dimension "maps"
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
noMaps {
|
2015-05-09 16:49:50 +00:00
|
|
|
dimension "maps"
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withAnalytics {
|
2015-05-09 16:49:50 +00:00
|
|
|
dimension "analytics"
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
noAnalytics {
|
2015-05-09 16:49:50 +00:00
|
|
|
dimension "analytics"
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
2014-01-16 00:34:32 +00:00
|
|
|
forFDroid {
|
2015-05-09 16:49:50 +00:00
|
|
|
dimension "distribution"
|
2014-01-16 00:34:32 +00:00
|
|
|
}
|
2014-01-15 23:42:39 +00:00
|
|
|
|
2014-01-16 00:34:32 +00:00
|
|
|
forPlay {
|
2015-05-09 16:49:50 +00:00
|
|
|
dimension "distribution"
|
2014-01-16 00:34:32 +00:00
|
|
|
}
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
2014-09-04 22:24:50 +00:00
|
|
|
// needed for assertJ
|
|
|
|
packagingOptions {
|
2015-01-03 21:38:42 +00:00
|
|
|
// needed for assertJ
|
|
|
|
exclude 'asm-license.txt'
|
|
|
|
exclude 'LICENSE'
|
|
|
|
exclude 'NOTICE'
|
|
|
|
|
|
|
|
// hack for instrumentation testing :-(
|
|
|
|
exclude 'LICENSE.txt'
|
2014-09-04 22:24:50 +00:00
|
|
|
}
|
|
|
|
|
2015-02-14 17:09:52 +00:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
2015-02-19 17:38:27 +00:00
|
|
|
disable 'InvalidPackage'
|
2015-02-14 17:09:52 +00:00
|
|
|
}
|
2013-08-01 18:50:41 +00:00
|
|
|
}
|
|
|
|
|
2015-03-26 03:20:16 +00:00
|
|
|
|
|
|
|
configurations {
|
2015-04-05 20:13:48 +00:00
|
|
|
// http://qathread.blogspot.de/2015/02/discovering-espresso-for-android.html
|
2015-03-26 03:20:16 +00:00
|
|
|
androidTestCompile.exclude group: 'com.android.support', module: 'support-v4'
|
|
|
|
}
|
|
|
|
|
2013-11-25 22:19:53 +00:00
|
|
|
dependencies {
|
2015-04-25 20:00:34 +00:00
|
|
|
apt 'org.projectlombok:lombok:1.16.4'
|
2015-04-01 11:13:46 +00:00
|
|
|
|
2015-09-08 21:25:13 +00:00
|
|
|
androidTestCompile 'com.android.support:support-v4:23.0.1'
|
|
|
|
androidTestCompile 'com.android.support:support-annotations:23.0.1'
|
2015-05-09 16:05:41 +00:00
|
|
|
|
2015-07-10 11:27:36 +00:00
|
|
|
androidTestCompile 'com.android.support.test:runner:0.3'
|
|
|
|
androidTestCompile 'com.android.support.test:rules:0.3'
|
|
|
|
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'
|
2014-08-18 18:40:51 +00:00
|
|
|
|
2015-07-09 20:22:05 +00:00
|
|
|
androidTestCompile 'com.squareup.spoon:spoon-client:1.1.10'
|
2014-09-04 22:24:50 +00:00
|
|
|
androidTestCompile 'com.squareup.assertj:assertj-android:1.0.0'
|
2014-08-18 18:40:51 +00:00
|
|
|
|
2015-01-25 23:07:50 +00:00
|
|
|
// have to wait with update till this is solved: https://code.google.com/p/dexmaker/issues/detail?id=40
|
2014-08-18 18:40:51 +00:00
|
|
|
androidTestCompile 'org.mockito:mockito-core:1.9.5'
|
2015-01-25 23:07:50 +00:00
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
|
2014-08-18 18:40:51 +00:00
|
|
|
|
2014-01-15 23:42:39 +00:00
|
|
|
// The Apache Software License, Version 2.0
|
2014-12-18 20:44:13 +00:00
|
|
|
compile 'com.google.code.gson:gson:2.3.1'
|
2014-04-25 16:30:44 +00:00
|
|
|
compile 'net.lingala.zip4j:zip4j:1.3.2'
|
2015-07-10 13:32:54 +00:00
|
|
|
compile 'com.jakewharton:butterknife:7.0.1'
|
|
|
|
compile 'net.danlew:android.joda:2.8.1'
|
|
|
|
compile 'com.squareup:otto:1.3.8'
|
2014-11-13 19:44:24 +00:00
|
|
|
|
2015-09-08 21:25:13 +00:00
|
|
|
compile 'com.android.support:support-annotations:23.0.1'
|
|
|
|
compile 'com.android.support:support-v4:23.0.1'
|
|
|
|
compile 'com.android.support:recyclerview-v7:23.0.1'
|
|
|
|
compile 'com.android.support:appcompat-v7:23.0.1'
|
|
|
|
compile 'com.android.support:cardview-v7:23.0.1'
|
2014-03-28 22:25:59 +00:00
|
|
|
|
2015-08-01 20:59:23 +00:00
|
|
|
compile 'net.i2p.android.ext:floatingactionbutton:1.10.0'
|
2015-03-13 14:34:45 +00:00
|
|
|
|
2015-03-03 02:28:35 +00:00
|
|
|
compile 'org.ligi:AXT:0.33'
|
2015-01-25 23:07:50 +00:00
|
|
|
compile 'org.ligi:tracedroid:1.4'
|
2015-08-01 10:57:47 +00:00
|
|
|
compile 'org.ligi:snackengage:0.4'
|
2015-06-17 19:55:12 +00:00
|
|
|
compile 'com.squareup.okhttp:okhttp:2.4.0'
|
2014-09-21 16:12:18 +00:00
|
|
|
compile 'com.larswerkman:HoloColorPicker:1.4'
|
2015-03-08 22:57:11 +00:00
|
|
|
compile 'com.google.code.findbugs:jsr305:3.0.0'
|
2015-04-01 11:13:46 +00:00
|
|
|
|
2015-08-02 10:00:11 +00:00
|
|
|
compile 'net.steamcrafted:load-toast:1.0.8'
|
2015-05-17 20:21:50 +00:00
|
|
|
|
2015-04-25 20:00:34 +00:00
|
|
|
provided "org.projectlombok:lombok:1.16.4"
|
2015-04-01 11:13:46 +00:00
|
|
|
|
2015-03-08 22:57:11 +00:00
|
|
|
androidTestCompile 'com.google.code.findbugs:jsr305:3.0.0'
|
2013-12-06 23:01:49 +00:00
|
|
|
|
2015-08-11 12:36:10 +00:00
|
|
|
testCompile 'com.squareup.assertj:assertj-android:1.0.1'
|
2015-09-08 21:25:13 +00:00
|
|
|
testCompile 'com.android.support:support-annotations:23.0.1'
|
2015-08-11 12:36:10 +00:00
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
|
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
|
|
|
|
2015-06-15 21:50:58 +00:00
|
|
|
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
|
|
|
|
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
|
|
|
|
|
2015-09-08 21:25:13 +00:00
|
|
|
withAnalyticsCompile 'com.google.android.gms:play-services-analytics:7.8.0'
|
|
|
|
withMapsCompile 'com.google.android.gms:play-services-maps:7.8.0'
|
2013-11-25 22:19:53 +00:00
|
|
|
}
|