Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 1 | apply plugin: 'com.android.application' |
Alexandre Lision | 6d3d271 | 2016-05-14 16:10:44 -0400 | [diff] [blame] | 2 | apply plugin: 'com.neenbedankt.android-apt' |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 3 | |
Romain Bertozzi | 2b2aa6f | 2016-04-28 11:18:57 -0400 | [diff] [blame] | 4 | repositories { |
| 5 | jcenter() |
| 6 | } |
| 7 | |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 8 | dependencies { |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 9 | compile fileTree(include: '*.jar', dir: 'libs') |
Thibault Wittemberg | 66a0022 | 2016-11-07 17:08:47 -0500 | [diff] [blame] | 10 | compile project(':libringclient') |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 11 | |
Adrien Beraud | 41ab38b | 2017-03-03 21:41:05 +0100 | [diff] [blame] | 12 | 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éraud | 6d881d9 | 2015-06-17 16:22:23 -0400 | [diff] [blame] | 18 | compile 'com.jayway.android.robotium:robotium-solo:5.4.1' |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 19 | compile 'com.astuetz:pagerslidingtabstrip:1.0.1' |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 20 | |
| 21 | // ORM |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 22 | compile 'com.j256.ormlite:ormlite-android:4.48' |
| 23 | |
| 24 | // Parsing, formatting, and validating international phone numbers |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 25 | compile 'com.googlecode.libphonenumber:libphonenumber:7.0.11' |
Thibault Wittemberg | 66a0022 | 2016-11-07 17:08:47 -0500 | [diff] [blame] | 26 | |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 27 | // Library for listview headers |
Romain Bertozzi | 2b2aa6f | 2016-04-28 11:18:57 -0400 | [diff] [blame] | 28 | compile 'se.emilsjolander:stickylistheaders:2.7.0' |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 29 | |
| 30 | // Barcode scanning |
Alexander Zahdeh | 6408ad9 | 2016-02-23 18:32:47 -0600 | [diff] [blame] | 31 | compile 'com.google.zxing:core:3.2.1' |
Romain Bertozzi | 2b2aa6f | 2016-04-28 11:18:57 -0400 | [diff] [blame] | 32 | compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar' |
Thibault Wittemberg | 25dfc9f | 2016-11-16 18:44:55 -0500 | [diff] [blame] | 33 | |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 34 | // Butterknife |
Alexandre Lision | 6d3d271 | 2016-05-14 16:10:44 -0400 | [diff] [blame] | 35 | compile 'com.jakewharton:butterknife:8.1.0' |
Thibault Wittemberg | b70d5b0 | 2016-07-08 16:50:14 -0400 | [diff] [blame] | 36 | compile 'com.skyfishjy.ripplebackground:library:1.0.1' |
Alexandre Lision | 6d3d271 | 2016-05-14 16:10:44 -0400 | [diff] [blame] | 37 | apt 'com.jakewharton:butterknife-compiler:8.1.0' |
Thibault Wittemberg | 5503087 | 2016-11-08 10:55:54 -0500 | [diff] [blame] | 38 | |
| 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' |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | android { |
Adrien Béraud | 7048cee | 2017-02-13 13:51:30 -0500 | [diff] [blame] | 46 | compileSdkVersion 25 |
| 47 | buildToolsVersion "25.0.2" |
Adrien Béraud | f79762c | 2016-08-29 18:04:33 -0400 | [diff] [blame] | 48 | |
| 49 | defaultConfig { |
| 50 | minSdkVersion 16 |
Adrien Béraud | 7048cee | 2017-02-13 13:51:30 -0500 | [diff] [blame] | 51 | targetSdkVersion 25 |
Adrien Béraud | f79762c | 2016-08-29 18:04:33 -0400 | [diff] [blame] | 52 | } |
| 53 | |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 54 | sourceSets { |
| 55 | main { |
| 56 | aidl.srcDirs = ['src/main/java'] |
| 57 | jniLibs.srcDir 'src/main/libs' |
| 58 | jni.srcDirs = [] |
| 59 | } |
| 60 | |
| 61 | // Move the tests to tests/java, tests/res, etc... |
| 62 | instrumentTest.setRoot('tests') |
| 63 | |
| 64 | // Move the build types to build-types/<type> |
| 65 | // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |
| 66 | // This moves them out of them default location under src/<type>/... which would |
| 67 | // conflict with src/ being used by the main source set. |
| 68 | // Adding new build types or product flavors should be accompanied |
| 69 | // by a similar customization. |
| 70 | debug.setRoot('build-types/debug') |
| 71 | release.setRoot('build-types/release') |
| 72 | } |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 73 | compileOptions { |
| 74 | sourceCompatibility JavaVersion.VERSION_1_7 |
| 75 | targetCompatibility JavaVersion.VERSION_1_7 |
| 76 | } |
Adrien Béraud | 12b8ddc | 2015-11-19 14:09:33 -0500 | [diff] [blame] | 77 | buildTypes { |
| 78 | release { |
| 79 | minifyEnabled true |
Adrien Béraud | cf2225d | 2015-11-21 20:54:14 -0500 | [diff] [blame] | 80 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
Adrien Béraud | 12b8ddc | 2015-11-19 14:09:33 -0500 | [diff] [blame] | 81 | } |
| 82 | } |
| 83 | signingConfigs { |
| 84 | config { |
| 85 | keyAlias 'ring' |
| 86 | storeFile file('../keystore.bin') |
| 87 | } |
| 88 | } |
| 89 | lintOptions { |
| 90 | disable 'MissingTranslation' |
| 91 | } |
Romain Bertozzi | 197c8c8 | 2016-04-04 14:18:11 -0400 | [diff] [blame] | 92 | splits { |
| 93 | abi { |
| 94 | enable true |
| 95 | reset() |
| 96 | def sp = archs.split(',') |
| 97 | include(sp) |
| 98 | universalApk true |
Thibault Wittemberg | 66a0022 | 2016-11-07 17:08:47 -0500 | [diff] [blame] | 99 | } |
Romain Bertozzi | 197c8c8 | 2016-04-04 14:18:11 -0400 | [diff] [blame] | 100 | } |
Romain Bertozzi | 197c8c8 | 2016-04-04 14:18:11 -0400 | [diff] [blame] | 101 | } |