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