Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 1 | apply plugin: 'com.android.application' |
| 2 | |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 3 | dependencies { |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 4 | compile fileTree(include: '*.jar', dir: 'libs') |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 5 | compile 'com.j256.ormlite:ormlite-core:4.48' |
| 6 | compile 'com.j256.ormlite:ormlite-android:4.48' |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 7 | compile 'com.android.support:support-v13:23.2.+' |
| 8 | compile 'com.android.support:design:23.2.+' |
| 9 | compile 'com.android.support:cardview-v7:23.2.+' |
| 10 | compile 'com.android.support:preference-v14:23.2.+' |
| 11 | compile 'com.android.support:recyclerview-v7:23.2.+' |
Adrien Béraud | 6d881d9 | 2015-06-17 16:22:23 -0400 | [diff] [blame] | 12 | compile 'com.jayway.android.robotium:robotium-solo:5.4.1' |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 13 | compile 'com.astuetz:pagerslidingtabstrip:1.0.1' |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 14 | compile 'com.googlecode.libphonenumber:libphonenumber:7.0.11' |
| 15 | compile 'se.emilsjolander:stickylistheaders:2.7.+' |
Alexander Zahdeh | 6408ad9 | 2016-02-23 18:32:47 -0600 | [diff] [blame] | 16 | compile 'com.google.zxing:core:3.2.1' |
| 17 | compile 'com.google.zxing:android-integration:3.2.1' |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | android { |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 21 | compileSdkVersion 23 |
Adrien Béraud | 67ec13c | 2015-11-19 11:51:16 -0500 | [diff] [blame] | 22 | buildToolsVersion "23.0.2" |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 23 | sourceSets { |
| 24 | main { |
| 25 | aidl.srcDirs = ['src/main/java'] |
| 26 | jniLibs.srcDir 'src/main/libs' |
| 27 | jni.srcDirs = [] |
| 28 | } |
| 29 | |
| 30 | // Move the tests to tests/java, tests/res, etc... |
| 31 | instrumentTest.setRoot('tests') |
| 32 | |
| 33 | // Move the build types to build-types/<type> |
| 34 | // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |
| 35 | // This moves them out of them default location under src/<type>/... which would |
| 36 | // conflict with src/ being used by the main source set. |
| 37 | // Adding new build types or product flavors should be accompanied |
| 38 | // by a similar customization. |
| 39 | debug.setRoot('build-types/debug') |
| 40 | release.setRoot('build-types/release') |
| 41 | } |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 42 | compileOptions { |
| 43 | sourceCompatibility JavaVersion.VERSION_1_7 |
| 44 | targetCompatibility JavaVersion.VERSION_1_7 |
| 45 | } |
Adrien Béraud | 12b8ddc | 2015-11-19 14:09:33 -0500 | [diff] [blame] | 46 | buildTypes { |
| 47 | release { |
| 48 | minifyEnabled true |
Adrien Béraud | cf2225d | 2015-11-21 20:54:14 -0500 | [diff] [blame] | 49 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
Adrien Béraud | 12b8ddc | 2015-11-19 14:09:33 -0500 | [diff] [blame] | 50 | } |
| 51 | } |
| 52 | signingConfigs { |
| 53 | config { |
| 54 | keyAlias 'ring' |
| 55 | storeFile file('../keystore.bin') |
| 56 | } |
| 57 | } |
| 58 | lintOptions { |
| 59 | disable 'MissingTranslation' |
| 60 | } |
Adrien Béraud | b00ed3f | 2015-06-07 15:36:06 -0400 | [diff] [blame] | 61 | } |