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 {
|
2014-11-08 13:21:46 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:0.14.1'
|
2014-08-18 18:43:13 +00:00
|
|
|
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
|
2014-11-13 17:20:28 +00:00
|
|
|
classpath 'com.stanfy.spoon:spoon-gradle-plugin:0.14.1'
|
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'
|
2014-06-01 11:05:25 +00:00
|
|
|
apply plugin: 'spoon'
|
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
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
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 {
|
2014-05-28 21:43:02 +00:00
|
|
|
flavorDimension "maps"
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
noMaps {
|
2014-05-28 21:43:02 +00:00
|
|
|
flavorDimension "maps"
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withAnalytics {
|
2014-05-28 21:43:02 +00:00
|
|
|
flavorDimension "analytics"
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
noAnalytics {
|
2014-05-28 21:43:02 +00:00
|
|
|
flavorDimension "analytics"
|
2013-08-19 12:24:41 +00:00
|
|
|
}
|
|
|
|
|
2014-01-16 00:34:32 +00:00
|
|
|
forFDroid {
|
2014-05-28 21:43:02 +00:00
|
|
|
flavorDimension "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 {
|
2014-05-28 21:43:02 +00:00
|
|
|
flavorDimension "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 {
|
|
|
|
exclude 'asm-license.txt'
|
|
|
|
exclude 'LICENSE'
|
|
|
|
exclude 'NOTICE'
|
|
|
|
}
|
|
|
|
|
2014-06-20 10:49:30 +00:00
|
|
|
// https://groups.google.com/forum/#!topic/adt-dev/-Km7VgExKf4
|
2014-11-08 13:21:46 +00:00
|
|
|
// useOldManifestMerger true
|
2013-08-01 18:50:41 +00:00
|
|
|
}
|
|
|
|
|
2013-11-25 22:19:53 +00:00
|
|
|
dependencies {
|
2014-08-18 18:40:51 +00:00
|
|
|
androidTestCompile('com.jakewharton.espresso:espresso:1.1-r3') {
|
|
|
|
exclude group: 'com.android.support'
|
|
|
|
exclude group: 'com.google.guava'
|
|
|
|
}
|
|
|
|
|
|
|
|
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.1'
|
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
|
|
|
|
|
|
|
androidTestCompile 'org.mockito:mockito-core:1.9.5'
|
2014-09-15 18:32:05 +00:00
|
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.1'
|
2014-08-18 18:40:51 +00:00
|
|
|
|
2014-01-15 23:42:39 +00:00
|
|
|
// The Apache Software License, Version 2.0
|
2014-08-12 18:56:31 +00:00
|
|
|
compile 'com.googlecode.android-query:android-query:0.25.9'
|
2014-09-04 11:29:10 +00:00
|
|
|
compile 'com.google.code.gson:gson:2.3'
|
2014-04-25 16:30:44 +00:00
|
|
|
compile 'net.lingala.zip4j:zip4j:1.3.2'
|
2014-11-13 19:44:24 +00:00
|
|
|
compile 'com.jakewharton:butterknife:6.0.0'
|
2014-10-12 17:41:37 +00:00
|
|
|
compile 'joda-time:joda-time:2.5'
|
2014-07-11 17:00:45 +00:00
|
|
|
compile 'com.squareup:otto:1.3.5'
|
2014-11-13 19:44:24 +00:00
|
|
|
|
|
|
|
compile 'com.android.support:support-v4:21.0.0'
|
2014-11-13 17:20:28 +00:00
|
|
|
compile 'com.android.support:recyclerview-v7:21.0.0'
|
2014-11-13 19:44:24 +00:00
|
|
|
compile 'com.android.support:appcompat-v7:21.0.0'
|
|
|
|
compile 'com.android.support:cardview-v7:21.0.0'
|
2014-03-28 22:25:59 +00:00
|
|
|
|
2014-08-23 12:23:39 +00:00
|
|
|
compile 'org.ligi:AXT:0.31'
|
2014-08-12 18:56:31 +00:00
|
|
|
compile 'org.ligi:tracedroid:1.2'
|
2014-09-15 18:32:05 +00:00
|
|
|
compile 'com.google.guava:guava:18.0'
|
2014-07-11 17:00:45 +00:00
|
|
|
compile 'com.squareup.okhttp:okhttp:2.0.0'
|
2014-08-18 18:40:51 +00:00
|
|
|
compile 'fr.nicolaspomepuy:discreetapprate:2.0.2@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-10-19 17:56:35 +00:00
|
|
|
def play_services = 'com.google.android.gms:play-services:6.1.+'
|
2014-03-26 11:42:12 +00:00
|
|
|
|
|
|
|
withAnalyticsCompile play_services
|
|
|
|
withMapsCompile play_services
|
2013-11-25 22:19:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-05-31 14:48:11 +00:00
|
|
|
android {
|
2014-10-18 11:24:40 +00:00
|
|
|
compileSdkVersion 21
|
2014-11-13 19:44:24 +00:00
|
|
|
buildToolsVersion "21.1.1"
|
2014-05-31 14:48:11 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2014-10-24 11:16:08 +00:00
|
|
|
versionCode 242
|
|
|
|
versionName "2.4.2"
|
2014-05-31 14:48:11 +00:00
|
|
|
minSdkVersion 9
|
2014-11-13 19:44:24 +00:00
|
|
|
targetSdkVersion 21
|
2014-07-04 14:18:44 +00:00
|
|
|
applicationId "org.ligi.passandroid"
|
2014-05-31 14:48:11 +00:00
|
|
|
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2014-11-08 13:21:46 +00:00
|
|
|
//minifyEnabled true
|
|
|
|
//shrinkResources true
|
2014-05-31 14:48:11 +00:00
|
|
|
proguardFile 'proguard-project.txt'
|
|
|
|
applicationVariants.all { variant ->
|
|
|
|
def file = variant.outputFile
|
|
|
|
variant.outputFile = new File(file.parent, file.name.replace(".apk", "-" + defaultConfig.versionName + ".apk"))
|
|
|
|
}
|
|
|
|
}
|
2014-06-07 10:38:28 +00:00
|
|
|
debug {
|
|
|
|
//makes problems
|
|
|
|
//testCoverageEnabled true
|
|
|
|
}
|
2014-05-31 14:48:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
disable "MissingTranslation"
|
|
|
|
}
|
|
|
|
|
|
|
|
// hack for instrumentation testing :-(
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'LICENSE.txt'
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-11-25 22:19:53 +00:00
|
|
|
}
|