blob: fdf1a766bcd826060543a7a7a8ad2dfeafae4b56 [file] [log] [blame]
Adrien Béraudb00ed3f2015-06-07 15:36:06 -04001apply plugin: 'com.android.application'
Alexandre Lision6d3d2712016-05-14 16:10:44 -04002apply plugin: 'com.neenbedankt.android-apt'
Adrien Béraudb00ed3f2015-06-07 15:36:06 -04003
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -04004repositories {
5 jcenter()
6}
7
Adrien Béraudb00ed3f2015-06-07 15:36:06 -04008dependencies {
Adrien Béraudb179bab2015-10-08 12:04:22 -04009 compile fileTree(include: '*.jar', dir: 'libs')
Romain Bertozzi64a66782016-08-02 12:10:38 -040010
Adrien Béraud36beae32016-09-20 14:50:07 -040011 compile 'com.android.support:support-v13:24.2.+'
12 compile 'com.android.support:design:24.2.+'
13 compile 'com.android.support:cardview-v7:24.2.+'
14 compile 'com.android.support:preference-v14:24.2.+'
15 compile 'com.android.support:recyclerview-v7:24.2.+'
Adrien Béraud6d881d92015-06-17 16:22:23 -040016 compile 'com.jayway.android.robotium:robotium-solo:5.4.1'
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040017 compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
Romain Bertozzi64a66782016-08-02 12:10:38 -040018
19 // ORM
20 compile 'com.j256.ormlite:ormlite-core:4.48'
21 compile 'com.j256.ormlite:ormlite-android:4.48'
22
23 // Parsing, formatting, and validating international phone numbers
Adrien Béraudb179bab2015-10-08 12:04:22 -040024 compile 'com.googlecode.libphonenumber:libphonenumber:7.0.11'
Romain Bertozzi64a66782016-08-02 12:10:38 -040025
26 // Library for listview headers
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -040027 compile 'se.emilsjolander:stickylistheaders:2.7.0'
Romain Bertozzi64a66782016-08-02 12:10:38 -040028
29 // Barcode scanning
Alexander Zahdeh6408ad92016-02-23 18:32:47 -060030 compile 'com.google.zxing:core:3.2.1'
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -040031 compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
Romain Bertozzi64a66782016-08-02 12:10:38 -040032
33 // VCard parsing
34 compile('com.googlecode.ez-vcard:ez-vcard:0.9.10') {
35 exclude module: 'freemarker'
36 }
37
38 // Butterknife
Alexandre Lision6d3d2712016-05-14 16:10:44 -040039 compile 'com.jakewharton:butterknife:8.1.0'
Thibault Wittembergb70d5b02016-07-08 16:50:14 -040040 compile 'com.skyfishjy.ripplebackground:library:1.0.1'
Alexandre Lision6d3d2712016-05-14 16:10:44 -040041 apt 'com.jakewharton:butterknife-compiler:8.1.0'
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040042}
43
44android {
Adrien Béraud36beae32016-09-20 14:50:07 -040045 compileSdkVersion 24
46 buildToolsVersion "24.0.2"
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040047 sourceSets {
48 main {
49 aidl.srcDirs = ['src/main/java']
50 jniLibs.srcDir 'src/main/libs'
51 jni.srcDirs = []
52 }
53
54 // Move the tests to tests/java, tests/res, etc...
55 instrumentTest.setRoot('tests')
56
57 // Move the build types to build-types/<type>
58 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
59 // This moves them out of them default location under src/<type>/... which would
60 // conflict with src/ being used by the main source set.
61 // Adding new build types or product flavors should be accompanied
62 // by a similar customization.
63 debug.setRoot('build-types/debug')
64 release.setRoot('build-types/release')
65 }
Adrien Béraudb179bab2015-10-08 12:04:22 -040066 compileOptions {
67 sourceCompatibility JavaVersion.VERSION_1_7
68 targetCompatibility JavaVersion.VERSION_1_7
69 }
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050070 buildTypes {
71 release {
72 minifyEnabled true
Adrien Béraudcf2225d2015-11-21 20:54:14 -050073 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050074 }
75 }
76 signingConfigs {
77 config {
78 keyAlias 'ring'
79 storeFile file('../keystore.bin')
80 }
81 }
82 lintOptions {
83 disable 'MissingTranslation'
84 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040085 splits {
86 abi {
87 enable true
88 reset()
89 def sp = archs.split(',')
90 include(sp)
91 universalApk true
92 }
93 }
94}