blob: 36f2694c2f869e1c8e623eb8dda5d2b038a884a9 [file] [log] [blame]
Adrien Béraudb00ed3f2015-06-07 15:36:06 -04001apply plugin: 'com.android.application'
2
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -04003repositories {
4 jcenter()
5}
6
Adrien Béraudb00ed3f2015-06-07 15:36:06 -04007dependencies {
Adrien Béraudb179bab2015-10-08 12:04:22 -04008 compile fileTree(include: '*.jar', dir: 'libs')
Adrien Béraudb00ed3f2015-06-07 15:36:06 -04009 compile 'com.j256.ormlite:ormlite-core:4.48'
10 compile 'com.j256.ormlite:ormlite-android:4.48'
Adrien Béraudfb6341f2016-03-07 16:18:54 -050011 compile 'com.android.support:support-v13:23.2.+'
12 compile 'com.android.support:design:23.2.+'
13 compile 'com.android.support:cardview-v7:23.2.+'
14 compile 'com.android.support:preference-v14:23.2.+'
15 compile 'com.android.support:recyclerview-v7:23.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'
Adrien Béraudb179bab2015-10-08 12:04:22 -040018 compile 'com.googlecode.libphonenumber:libphonenumber:7.0.11'
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -040019 compile 'se.emilsjolander:stickylistheaders:2.7.0'
Alexander Zahdeh6408ad92016-02-23 18:32:47 -060020 compile 'com.google.zxing:core:3.2.1'
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -040021 compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040022}
23
24android {
Adrien Béraudb179bab2015-10-08 12:04:22 -040025 compileSdkVersion 23
Adrien Béraud67ec13c2015-11-19 11:51:16 -050026 buildToolsVersion "23.0.2"
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040027 sourceSets {
28 main {
29 aidl.srcDirs = ['src/main/java']
30 jniLibs.srcDir 'src/main/libs'
31 jni.srcDirs = []
32 }
33
34 // Move the tests to tests/java, tests/res, etc...
35 instrumentTest.setRoot('tests')
36
37 // Move the build types to build-types/<type>
38 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
39 // This moves them out of them default location under src/<type>/... which would
40 // conflict with src/ being used by the main source set.
41 // Adding new build types or product flavors should be accompanied
42 // by a similar customization.
43 debug.setRoot('build-types/debug')
44 release.setRoot('build-types/release')
45 }
Adrien Béraudb179bab2015-10-08 12:04:22 -040046 compileOptions {
47 sourceCompatibility JavaVersion.VERSION_1_7
48 targetCompatibility JavaVersion.VERSION_1_7
49 }
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050050 buildTypes {
51 release {
52 minifyEnabled true
Adrien Béraudcf2225d2015-11-21 20:54:14 -050053 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050054 }
55 }
56 signingConfigs {
57 config {
58 keyAlias 'ring'
59 storeFile file('../keystore.bin')
60 }
61 }
62 lintOptions {
63 disable 'MissingTranslation'
64 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040065 splits {
66 abi {
67 enable true
68 reset()
69 def sp = archs.split(',')
70 include(sp)
71 universalApk true
72 }
73 }
74}