blob: 6f57f07d1ca5fd63a211401e6f21455f2ddb19b2 [file] [log] [blame]
Adrien Béraudb00ed3f2015-06-07 15:36:06 -04001apply plugin: 'com.android.application'
2
Hadrien De Sousa323c2872017-11-09 10:55:44 -05003def android_support_version = "27.0.0"
Romain Bertozzi2b2aa6f2016-04-28 11:18:57 -04004
Adrien Béraudb00ed3f2015-06-07 15:36:06 -04005dependencies {
Adrien Béraudb179bab2015-10-08 12:04:22 -04006 compile fileTree(include: '*.jar', dir: 'libs')
Alexandre Lision5da46fa2017-08-09 10:25:50 -04007 compile project(':libringclient')
8
Hadrien De Sousa323c2872017-11-09 10:55:44 -05009 compile "com.android.support:support-v13:$android_support_version"
10 compile "com.android.support:design:$android_support_version"
11 compile "com.android.support:cardview-v7:$android_support_version"
12 compile "com.android.support:preference-v14:$android_support_version"
13 compile "com.android.support:recyclerview-v7:$android_support_version"
14 compile "com.android.support:appcompat-v7:$android_support_version"
15 compile "com.android.support:leanback-v17:$android_support_version"
Alexandre Lision5da46fa2017-08-09 10:25:50 -040016
Romain Bertozzi64a66782016-08-02 12:10:38 -040017 // ORM
Romain Bertozzi64a66782016-08-02 12:10:38 -040018 compile 'com.j256.ormlite:ormlite-android:4.48'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040019
Romain Bertozzi64a66782016-08-02 12:10:38 -040020 // Barcode scanning
Adrien Beraudbd09c862017-06-06 14:55:03 +020021 compile 'com.journeyapps:zxing-android-embedded:3.5.0@aar'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040022
Romain Bertozzi64a66782016-08-02 12:10:38 -040023 // Butterknife
Adrien Beraudbd09c862017-06-06 14:55:03 +020024 compile 'com.jakewharton:butterknife:8.6.0'
Thibault Wittembergb70d5b02016-07-08 16:50:14 -040025 compile 'com.skyfishjy.ripplebackground:library:1.0.1'
Adrien Beraudbd09c862017-06-06 14:55:03 +020026 annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040027
Thibault Wittemberg55030872016-11-08 10:55:54 -050028 // Dagger dependency injection
Hadrien De Sousa323c2872017-11-09 10:55:44 -050029 annotationProcessor 'com.google.dagger:dagger-compiler:2.12'
30 compile 'com.google.dagger:dagger:2.12'
Thibault Wittemberg55030872016-11-08 10:55:54 -050031 provided 'javax.annotation:jsr250-api:1.0'
Alexandre Lision5da46fa2017-08-09 10:25:50 -040032
Hadrien De Sousa84ab2d22017-03-16 15:45:52 -040033 // Glide
Adrien Beraudbd09c862017-06-06 14:55:03 +020034 compile 'com.github.bumptech.glide:glide:3.8.0'
Hadrien De Sousa0dc83162017-11-10 16:15:18 -050035
36 // RxAndroid
37 compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040038}
39
40android {
Hadrien De Sousa323c2872017-11-09 10:55:44 -050041 compileSdkVersion 26
42 buildToolsVersion "26.0.2"
Adrien Béraudf79762c2016-08-29 18:04:33 -040043
44 defaultConfig {
Alexandre Lisionfed74d72017-08-09 10:59:40 -040045 minSdkVersion 18
Hadrien De Sousa323c2872017-11-09 10:55:44 -050046 targetSdkVersion 26
Pierre Duchemina5529292017-12-18 17:25:54 -050047 vectorDrawables.useSupportLibrary = true
Adrien Béraudf79762c2016-08-29 18:04:33 -040048 }
49
Adrien Béraudb00ed3f2015-06-07 15:36:06 -040050 sourceSets {
51 main {
52 aidl.srcDirs = ['src/main/java']
53 jniLibs.srcDir 'src/main/libs'
54 jni.srcDirs = []
55 }
56
57 // Move the tests to tests/java, tests/res, etc...
58 instrumentTest.setRoot('tests')
59
60 // Move the build types to build-types/<type>
61 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
62 // This moves them out of them default location under src/<type>/... which would
63 // conflict with src/ being used by the main source set.
64 // Adding new build types or product flavors should be accompanied
65 // by a similar customization.
66 debug.setRoot('build-types/debug')
67 release.setRoot('build-types/release')
68 }
Adrien Béraudb179bab2015-10-08 12:04:22 -040069 compileOptions {
70 sourceCompatibility JavaVersion.VERSION_1_7
71 targetCompatibility JavaVersion.VERSION_1_7
72 }
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050073 buildTypes {
74 release {
75 minifyEnabled true
Adrien Béraudcf2225d2015-11-21 20:54:14 -050076 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Adrien Béraud12b8ddc2015-11-19 14:09:33 -050077 }
78 }
79 signingConfigs {
80 config {
81 keyAlias 'ring'
82 storeFile file('../keystore.bin')
83 }
84 }
85 lintOptions {
86 disable 'MissingTranslation'
87 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040088 splits {
89 abi {
90 enable true
91 reset()
92 def sp = archs.split(',')
93 include(sp)
94 universalApk true
Thibault Wittemberg66a00222016-11-07 17:08:47 -050095 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040096 }
Romain Bertozzi197c8c82016-04-04 14:18:11 -040097}