blob: 154f1c45ee66b9c01b05bf2dd2bef18a58b7f3c1 [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')
Thibault Wittemberg66a00222016-11-07 17:08:47 -050010 compile project(':libringclient')
Romain Bertozzi64a66782016-08-02 12:10:38 -040011
Adrien Beraud41ab38b2017-03-03 21:41:05 +010012 compile 'com.android.support:support-v13:25.2.0'
13 compile 'com.android.support:design:25.2.0'
14 compile 'com.android.support:cardview-v7:25.2.0'
15 compile 'com.android.support:preference-v14:25.2.0'
16 compile 'com.android.support:recyclerview-v7:25.2.0'
17 compile 'com.android.support:appcompat-v7:25.2.0'
Adrien Béraud6d881d92015-06-17 16:22:23 -040018 compile 'com.jayway.android.robotium:robotium-solo:5.4.1'
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040019 compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
Romain Bertozzi64a66782016-08-02 12:10:38 -040020
21 // ORM
Romain Bertozzi64a66782016-08-02 12:10:38 -040022 compile 'com.j256.ormlite:ormlite-android:4.48'
23
24 // Parsing, formatting, and validating international phone numbers
Adrien Béraudb179bab2015-10-08 12:04:22 -040025 compile 'com.googlecode.libphonenumber:libphonenumber:7.0.11'
Thibault Wittemberg66a00222016-11-07 17:08:47 -050026
Romain Bertozzi64a66782016-08-02 12:10:38 -040027 // Library for listview headers
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -040028 compile 'se.emilsjolander:stickylistheaders:2.7.0'
Romain Bertozzi64a66782016-08-02 12:10:38 -040029
30 // Barcode scanning
Alexander Zahdeh6408ad92016-02-23 18:32:47 -060031 compile 'com.google.zxing:core:3.2.1'
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -040032 compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
Thibault Wittemberg25dfc9f2016-11-16 18:44:55 -050033
Romain Bertozzi64a66782016-08-02 12:10:38 -040034 // Butterknife
Alexandre Lision6d3d2712016-05-14 16:10:44 -040035 compile 'com.jakewharton:butterknife:8.1.0'
Thibault Wittembergb70d5b02016-07-08 16:50:14 -040036 compile 'com.skyfishjy.ripplebackground:library:1.0.1'
Alexandre Lision6d3d2712016-05-14 16:10:44 -040037 apt 'com.jakewharton:butterknife-compiler:8.1.0'
Thibault Wittemberg55030872016-11-08 10:55:54 -050038
39 // Dagger dependency injection
40 apt 'com.google.dagger:dagger-compiler:2.7'
41 compile 'com.google.dagger:dagger:2.7'
42 provided 'javax.annotation:jsr250-api:1.0'
Hadrien De Sousa84ab2d22017-03-16 15:45:52 -040043
44 // Glide
45 compile 'com.github.bumptech.glide:glide:3.7.0'
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040046}
47
48android {
Adrien Béraud7048cee2017-02-13 13:51:30 -050049 compileSdkVersion 25
50 buildToolsVersion "25.0.2"
Adrien Béraudf79762c2016-08-29 18:04:33 -040051
52 defaultConfig {
53 minSdkVersion 16
Adrien Béraud7048cee2017-02-13 13:51:30 -050054 targetSdkVersion 25
Adrien Béraudf79762c2016-08-29 18:04:33 -040055 }
56
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040057 sourceSets {
58 main {
59 aidl.srcDirs = ['src/main/java']
60 jniLibs.srcDir 'src/main/libs'
61 jni.srcDirs = []
62 }
63
64 // Move the tests to tests/java, tests/res, etc...
65 instrumentTest.setRoot('tests')
66
67 // Move the build types to build-types/<type>
68 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
69 // This moves them out of them default location under src/<type>/... which would
70 // conflict with src/ being used by the main source set.
71 // Adding new build types or product flavors should be accompanied
72 // by a similar customization.
73 debug.setRoot('build-types/debug')
74 release.setRoot('build-types/release')
75 }
Adrien Béraudb179bab2015-10-08 12:04:22 -040076 compileOptions {
77 sourceCompatibility JavaVersion.VERSION_1_7
78 targetCompatibility JavaVersion.VERSION_1_7
79 }
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050080 buildTypes {
81 release {
82 minifyEnabled true
Adrien Béraudcf2225d2015-11-21 20:54:14 -050083 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050084 }
85 }
86 signingConfigs {
87 config {
88 keyAlias 'ring'
89 storeFile file('../keystore.bin')
90 }
91 }
92 lintOptions {
93 disable 'MissingTranslation'
94 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040095 splits {
96 abi {
97 enable true
98 reset()
99 def sp = archs.split(',')
100 include(sp)
101 universalApk true
Thibault Wittemberg66a00222016-11-07 17:08:47 -0500102 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -0400103 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -0400104}