blob: 48460c0466c595ed7d499411eb9f16c04c7d87c9 [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')
Alexandre Lision5da46fa2017-08-09 10:25:50 -04009 compile project(':libringclient')
10
Adrien Beraud954cf0a2017-04-07 17:44:26 +020011 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 Lisionfed74d72017-08-09 10:59:40 -040017 compile 'com.android.support:leanback-v17:25.3.1'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040018
Romain Bertozzi64a66782016-08-02 12:10:38 -040019 // ORM
Romain Bertozzi64a66782016-08-02 12:10:38 -040020 compile 'com.j256.ormlite:ormlite-android:4.48'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040021
Romain Bertozzi64a66782016-08-02 12:10:38 -040022 // Barcode scanning
Adrien Beraudbd09c862017-06-06 14:55:03 +020023 compile 'com.journeyapps:zxing-android-embedded:3.5.0@aar'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040024
Romain Bertozzi64a66782016-08-02 12:10:38 -040025 // Butterknife
Adrien Beraudbd09c862017-06-06 14:55:03 +020026 compile 'com.jakewharton:butterknife:8.6.0'
Thibault Wittembergb70d5b02016-07-08 16:50:14 -040027 compile 'com.skyfishjy.ripplebackground:library:1.0.1'
Adrien Beraudbd09c862017-06-06 14:55:03 +020028 annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040029
Thibault Wittemberg55030872016-11-08 10:55:54 -050030 // Dagger dependency injection
Adrien Beraudbd09c862017-06-06 14:55:03 +020031 annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
32 compile 'com.google.dagger:dagger:2.11'
Thibault Wittemberg55030872016-11-08 10:55:54 -050033 provided 'javax.annotation:jsr250-api:1.0'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040034
Hadrien De Sousa84ab2d22017-03-16 15:45:52 -040035 // Glide
Adrien Beraudbd09c862017-06-06 14:55:03 +020036 compile 'com.github.bumptech.glide:glide:3.8.0'
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040037}
38
39android {
Adrien Béraud7048cee2017-02-13 13:51:30 -050040 compileSdkVersion 25
Adrien Beraudfb9f0902017-08-03 15:26:05 -040041 buildToolsVersion "26.0.1"
Adrien Béraudf79762c2016-08-29 18:04:33 -040042
43 defaultConfig {
Alexandre Lisionfed74d72017-08-09 10:59:40 -040044 minSdkVersion 18
Adrien Béraud7048cee2017-02-13 13:51:30 -050045 targetSdkVersion 25
Adrien Béraudf79762c2016-08-29 18:04:33 -040046 }
47
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040048 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éraudb179bab2015-10-08 12:04:22 -040067 compileOptions {
68 sourceCompatibility JavaVersion.VERSION_1_7
69 targetCompatibility JavaVersion.VERSION_1_7
70 }
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050071 buildTypes {
72 release {
73 minifyEnabled true
Adrien Béraudcf2225d2015-11-21 20:54:14 -050074 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050075 }
76 }
77 signingConfigs {
78 config {
79 keyAlias 'ring'
80 storeFile file('../keystore.bin')
81 }
82 }
83 lintOptions {
84 disable 'MissingTranslation'
85 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040086 splits {
87 abi {
88 enable true
89 reset()
90 def sp = archs.split(',')
91 include(sp)
92 universalApk true
Thibault Wittemberg66a00222016-11-07 17:08:47 -050093 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040094 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040095}