Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 1 | apply plugin: 'com.android.library' |
Sergey Vasilinets | b085e34 | 2016-12-05 19:02:59 -0800 | [diff] [blame] | 2 | apply plugin: 'maven' |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 3 | |
| 4 | android { |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 5 | compileSdkVersion tools.current_sdk |
| 6 | buildToolsVersion tools.build_tools_version |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 7 | |
| 8 | defaultConfig { |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 9 | minSdkVersion flatfoot.min_sdk |
| 10 | targetSdkVersion tools.current_sdk |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 11 | versionCode 1 |
| 12 | versionName "1.0" |
| 13 | |
| 14 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| 15 | |
| 16 | } |
| 17 | buildTypes { |
| 18 | release { |
| 19 | minifyEnabled false |
| 20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| 21 | } |
| 22 | } |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 23 | |
Yigit Boyar | c1b53ee | 2016-11-09 15:33:52 -0800 | [diff] [blame] | 24 | testOptions { |
| 25 | unitTests.returnDefaultValues = true |
| 26 | } |
| 27 | } |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 28 | dependencies { |
Yigit Boyar | 9c3bbb7 | 2017-01-13 11:04:36 -0800 | [diff] [blame] | 29 | compile project(":lifecycle:common") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 30 | compile project(":lifecycle:runtime") |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 31 | compile project(":apptoolkit:core") |
| 32 | compile libs.support.fragments |
| 33 | testCompile project(":apptoolkit:core-testing") |
| 34 | testCompile libs.junit |
| 35 | testCompile libs.mockito.all |
| 36 | // TODO remove ? |
| 37 | testCompile(libs.test_runner) { |
Sergey Vasilinets | c43ce90 | 2017-02-15 18:45:00 -0800 | [diff] [blame] | 38 | exclude module: 'support-annotations' |
| 39 | } |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 40 | androidTestCompile(libs.test_runner) { |
Yigit Boyar | fe127e5 | 2017-01-27 14:30:20 -0800 | [diff] [blame] | 41 | exclude module: 'support-annotations' |
| 42 | } |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 43 | androidTestCompile libs.support.app_compat |
| 44 | androidTestCompile(libs.espresso_core, { |
Yigit Boyar | f5b6bd7 | 2016-12-14 17:59:12 -0800 | [diff] [blame] | 45 | exclude group: 'com.android.support', module: 'support-annotations' |
| 46 | }) |
Yigit Boyar | 19b4110 | 2016-11-20 10:46:32 -0800 | [diff] [blame] | 47 | } |
| 48 | |
Sergey Vasilinets | b085e34 | 2016-12-05 19:02:59 -0800 | [diff] [blame] | 49 | createAndroidCheckstyle(project) |
| 50 | |
Yigit Boyar | 83ebc49 | 2017-03-08 20:43:45 -0800 | [diff] [blame^] | 51 | archivesBaseName = "extensions" |