PassAndroid/android/build.gradle

201 lines
6.2 KiB
Groovy
Raw Normal View History

2013-08-01 18:50:41 +00:00
buildscript {
ext {
2016-07-05 20:22:38 +00:00
kotlin_version = '1.0.3'
support_version = '24.0.0'
2016-06-20 21:56:14 +00:00
dagger_version = '2.5'
2016-06-22 09:54:30 +00:00
butterknife_version = '8.1.0'
2016-07-05 20:22:18 +00:00
play_version = '9.2.0'
}
2013-08-01 18:50:41 +00:00
repositories {
2014-08-12 18:56:31 +00:00
jcenter()
2015-12-08 14:45:14 +00:00
maven { url 'https://jitpack.io' }
2013-08-01 18:50:41 +00:00
}
2013-08-01 18:50:41 +00:00
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2016-06-13 12:49:12 +00:00
classpath 'com.android.tools.build:gradle:2.1.2'
2016-03-02 09:28:30 +00:00
classpath 'de.felixschulze.gradle:gradle-spoon-plugin:2.7.3'
2016-01-19 04:03:58 +00:00
classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0'
2016-06-13 13:32:04 +00:00
classpath 'de.mobilej.unmock:UnMockPlugin:0.5.0'
2015-12-08 14:45:14 +00:00
// http://stackoverflow.com/a/33889117/322642
classpath 'com.github.JakeWharton:sdk-manager-plugin:220bf7a88a7072df3ed16dc8466fb144f2817070'
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'
apply plugin: 'de.felixschulze.gradle.spoon'
apply plugin: 'kotlin-android'
apply plugin: 'de.mobilej.unmock'
apply plugin: 'com.github.ben-manes.versions'
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
compileSdkVersion 24
2016-04-08 00:29:35 +00:00
buildToolsVersion "23.0.3"
2015-01-25 23:07:50 +00:00
defaultConfig {
2016-07-11 11:06:53 +00:00
versionCode 320
versionName "3.2.0"
2016-07-05 20:20:33 +00:00
minSdkVersion 9
targetSdkVersion 24
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"
vectorDrawables.useSupportLibrary = true
2015-01-25 23:07:50 +00:00
}
flavorDimensions "maps", "analytics", "distribution"
2014-01-15 23:42:39 +00:00
productFlavors {
2013-08-23 01:39:42 +00:00
withMaps {
dimension "maps"
}
noMaps {
dimension "maps"
}
withAnalytics {
dimension "analytics"
}
noAnalytics {
dimension "analytics"
}
forFDroid {
dimension "distribution"
}
2014-01-15 23:42:39 +00:00
forPlay {
dimension "distribution"
}
}
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'
exclude 'META-INF/maven/com.google.guava/guava/pom.properties'
exclude 'META-INF/maven/com.google.guava/guava/pom.xml'
2014-09-04 22:24:50 +00:00
}
lintOptions {
warning 'MissingTranslation'
warning 'InvalidPackage'
}
2016-01-25 23:19:15 +00:00
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
2016-01-25 23:19:15 +00:00
}
}
2013-08-01 18:50:41 +00:00
}
dependencies {
2016-06-21 11:34:03 +00:00
kapt "com.google.dagger:dagger-compiler:$dagger_version"
kapt "com.jakewharton:butterknife-compiler:$butterknife_version"
2015-11-11 22:55:06 +00:00
provided 'org.glassfish:javax.annotation:10.0-b28'
2016-06-21 11:34:03 +00:00
kaptAndroidTest "com.google.dagger:dagger-compiler:$dagger_version"
androidTestCompile "com.android.support:support-v4:$support_version"
2016-05-11 21:32:34 +00:00
androidTestCompile "com.android.support:support-annotations:$support_version"
2015-05-09 16:05:41 +00:00
2016-03-01 03:22:31 +00:00
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2') {
2015-11-15 20:33:29 +00:00
// http://stackoverflow.com/questions/30578243/why-would-adding-espresso-contrib-cause-an-inflateexception
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude module: 'recyclerview-v7'
}
2016-03-01 03:22:31 +00:00
androidTestCompile('com.android.support.test.espresso:espresso-web:2.2.2')
2016-07-10 11:42:12 +00:00
androidTestCompile 'com.squareup.spoon:spoon-client:1.5.7'
2015-10-23 17:32:05 +00:00
androidTestCompile 'com.squareup.assertj:assertj-android:1.1.1'
2014-08-18 18:40:51 +00:00
2015-09-10 13:06:59 +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
compile 'net.lingala.zip4j:zip4j:1.3.2'
2016-05-04 16:05:58 +00:00
compile "com.jakewharton:butterknife:$butterknife_version"
compile 'com.jakewharton.threetenabp:threetenabp:1.0.3'
compile 'org.greenrobot:eventbus:3.0.0'
2014-11-13 19:44:24 +00:00
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-runtime:$kotlin_version"
compile "com.android.support:support-annotations:$support_version"
compile "com.android.support:support-v4:$support_version"
compile "com.android.support:recyclerview-v7:$support_version"
compile "com.android.support:appcompat-v7:$support_version"
compile "com.android.support:cardview-v7:$support_version"
compile "com.android.support:design:$support_version"
compile "com.android.support:preference-v7:$support_version"
androidTestCompile "com.android.support:appcompat-v7:$support_version"
androidTestCompile "com.android.support:design:$support_version"
2016-03-01 03:22:31 +00:00
compile 'net.i2p.android.ext:floatingactionbutton:1.10.1'
2016-04-11 19:17:58 +00:00
compile 'org.ligi:AXT:0.37'
2015-01-25 23:07:50 +00:00
compile 'org.ligi:tracedroid:1.4'
2016-05-04 15:14:35 +00:00
compile 'org.ligi:snackengage:0.5'
2016-07-10 11:42:35 +00:00
compile 'com.squareup.okhttp3:okhttp:3.4.0'
2015-11-16 21:36:49 +00:00
compile 'com.larswerkman:HoloColorPicker:1.5'
2015-10-18 21:41:11 +00:00
compile 'com.google.code.findbugs:jsr305:3.0.1'
2016-06-13 12:53:20 +00:00
compile 'com.squareup.moshi:moshi:1.2.0'
2016-06-13 13:36:47 +00:00
compile 'com.chibatching:kotpref:1.3.1'
2015-04-01 11:13:46 +00:00
compile 'net.steamcrafted:load-toast:1.0.10'
compile "com.google.dagger:dagger:$dagger_version"
2015-11-11 22:55:06 +00:00
2015-04-01 11:13:46 +00:00
2015-10-18 21:41:11 +00:00
androidTestCompile 'com.google.code.findbugs:jsr305:3.0.1'
2013-12-06 23:01:49 +00:00
2016-05-11 21:32:34 +00:00
testCompile "com.android.support:support-annotations:$support_version"
2015-10-23 17:32:05 +00:00
testCompile 'com.squareup.assertj:assertj-android:1.1.1'
2015-08-11 12:36:10 +00:00
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.9.5'
2015-08-11 12:36:10 +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
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'
2016-06-13 12:48:50 +00:00
withAnalyticsCompile "com.google.android.gms:play-services-analytics:$play_version"
withMapsCompile "com.google.android.gms:play-services-maps:$play_version"
compile 'com.github.hotchemi:permissionsdispatcher:2.1.3'
2016-06-21 11:34:03 +00:00
kapt 'com.github.hotchemi:permissionsdispatcher-processor:2.1.3'
}
2015-09-08 22:04:58 +00:00
spoon {
debug = true
}