Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 1 | apply plugin: 'com.android.application' |
| 2 | |
Romain Bertozzi | 2b2aa6f | 2016-04-28 11:18:57 -0400 | [diff] [blame] | 3 | repositories { |
| 4 | jcenter() |
| 5 | } |
| 6 | |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 7 | dependencies { |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 8 | compile fileTree(include: '*.jar', dir: 'libs') |
Alexandre Lision | 5da46fa | 2017-08-09 10:25:50 -0400 | [diff] [blame] | 9 | compile project(':libringclient') |
| 10 | |
Adrien Beraud | 954cf0a | 2017-04-07 17:44:26 +0200 | [diff] [blame] | 11 | compile 'com.android.support:support-v13:25.3.1' |
| 12 | compile 'com.android.support:design:25.3.1' |
| 13 | compile 'com.android.support:cardview-v7:25.3.1' |
| 14 | compile 'com.android.support:preference-v14:25.3.1' |
| 15 | compile 'com.android.support:recyclerview-v7:25.3.1' |
| 16 | compile 'com.android.support:appcompat-v7:25.3.1' |
Alexandre Lision | fed74d7 | 2017-08-09 10:59:40 -0400 | [diff] [blame^] | 17 | compile 'com.android.support:leanback-v17:25.3.1' |
Alexandre Lision | 5da46fa | 2017-08-09 10:25:50 -0400 | [diff] [blame] | 18 | |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 19 | // ORM |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 20 | compile 'com.j256.ormlite:ormlite-android:4.48' |
Alexandre Lision | 5da46fa | 2017-08-09 10:25:50 -0400 | [diff] [blame] | 21 | |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 22 | // Barcode scanning |
Adrien Beraud | bd09c86 | 2017-06-06 14:55:03 +0200 | [diff] [blame] | 23 | compile 'com.journeyapps:zxing-android-embedded:3.5.0@aar' |
Alexandre Lision | 5da46fa | 2017-08-09 10:25:50 -0400 | [diff] [blame] | 24 | |
Romain Bertozzi | 64a6678 | 2016-08-02 12:10:38 -0400 | [diff] [blame] | 25 | // Butterknife |
Adrien Beraud | bd09c86 | 2017-06-06 14:55:03 +0200 | [diff] [blame] | 26 | compile 'com.jakewharton:butterknife:8.6.0' |
Thibault Wittemberg | b70d5b0 | 2016-07-08 16:50:14 -0400 | [diff] [blame] | 27 | compile 'com.skyfishjy.ripplebackground:library:1.0.1' |
Adrien Beraud | bd09c86 | 2017-06-06 14:55:03 +0200 | [diff] [blame] | 28 | annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0' |
Alexandre Lision | 5da46fa | 2017-08-09 10:25:50 -0400 | [diff] [blame] | 29 | |
Thibault Wittemberg | 5503087 | 2016-11-08 10:55:54 -0500 | [diff] [blame] | 30 | // Dagger dependency injection |
Adrien Beraud | bd09c86 | 2017-06-06 14:55:03 +0200 | [diff] [blame] | 31 | annotationProcessor 'com.google.dagger:dagger-compiler:2.11' |
| 32 | compile 'com.google.dagger:dagger:2.11' |
Thibault Wittemberg | 5503087 | 2016-11-08 10:55:54 -0500 | [diff] [blame] | 33 | provided 'javax.annotation:jsr250-api:1.0' |
Alexandre Lision | 5da46fa | 2017-08-09 10:25:50 -0400 | [diff] [blame] | 34 | |
Hadrien De Sousa | 84ab2d2 | 2017-03-16 15:45:52 -0400 | [diff] [blame] | 35 | // Glide |
Adrien Beraud | bd09c86 | 2017-06-06 14:55:03 +0200 | [diff] [blame] | 36 | compile 'com.github.bumptech.glide:glide:3.8.0' |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | android { |
Adrien Béraud | 7048cee | 2017-02-13 13:51:30 -0500 | [diff] [blame] | 40 | compileSdkVersion 25 |
Adrien Beraud | fb9f090 | 2017-08-03 15:26:05 -0400 | [diff] [blame] | 41 | buildToolsVersion "26.0.1" |
Adrien Béraud | f79762c | 2016-08-29 18:04:33 -0400 | [diff] [blame] | 42 | |
| 43 | defaultConfig { |
Alexandre Lision | fed74d7 | 2017-08-09 10:59:40 -0400 | [diff] [blame^] | 44 | minSdkVersion 18 |
Adrien Béraud | 7048cee | 2017-02-13 13:51:30 -0500 | [diff] [blame] | 45 | targetSdkVersion 25 |
Adrien Béraud | f79762c | 2016-08-29 18:04:33 -0400 | [diff] [blame] | 46 | } |
| 47 | |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 48 | sourceSets { |
| 49 | main { |
| 50 | aidl.srcDirs = ['src/main/java'] |
| 51 | jniLibs.srcDir 'src/main/libs' |
| 52 | jni.srcDirs = [] |
| 53 | } |
| 54 | |
| 55 | // Move the tests to tests/java, tests/res, etc... |
| 56 | instrumentTest.setRoot('tests') |
| 57 | |
| 58 | // Move the build types to build-types/<type> |
| 59 | // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |
| 60 | // This moves them out of them default location under src/<type>/... which would |
| 61 | // conflict with src/ being used by the main source set. |
| 62 | // Adding new build types or product flavors should be accompanied |
| 63 | // by a similar customization. |
| 64 | debug.setRoot('build-types/debug') |
| 65 | release.setRoot('build-types/release') |
| 66 | } |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 67 | compileOptions { |
| 68 | sourceCompatibility JavaVersion.VERSION_1_7 |
| 69 | targetCompatibility JavaVersion.VERSION_1_7 |
| 70 | } |
Adrien Béraud | 12b8ddc | 2015-11-19 14:09:33 -0500 | [diff] [blame] | 71 | buildTypes { |
| 72 | release { |
| 73 | minifyEnabled true |
Adrien Béraud | cf2225d | 2015-11-21 20:54:14 -0500 | [diff] [blame] | 74 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
Adrien Béraud | 12b8ddc | 2015-11-19 14:09:33 -0500 | [diff] [blame] | 75 | } |
| 76 | } |
| 77 | signingConfigs { |
| 78 | config { |
| 79 | keyAlias 'ring' |
| 80 | storeFile file('../keystore.bin') |
| 81 | } |
| 82 | } |
| 83 | lintOptions { |
| 84 | disable 'MissingTranslation' |
| 85 | } |
Romain Bertozzi | 197c8c8 | 2016-04-04 14:18:11 -0400 | [diff] [blame] | 86 | splits { |
| 87 | abi { |
| 88 | enable true |
| 89 | reset() |
| 90 | def sp = archs.split(',') |
| 91 | include(sp) |
| 92 | universalApk true |
Thibault Wittemberg | 66a0022 | 2016-11-07 17:08:47 -0500 | [diff] [blame] | 93 | } |
Romain Bertozzi | 197c8c8 | 2016-04-04 14:18:11 -0400 | [diff] [blame] | 94 | } |
Romain Bertozzi | 197c8c8 | 2016-04-04 14:18:11 -0400 | [diff] [blame] | 95 | } |