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 | } |
| 23 | |
| 24 | testOptions { |
| 25 | unitTests.returnDefaultValues = true |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | dependencies { |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 30 | compile project(":lifecycle:common") |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 31 | compile project(":apptoolkit:core") |
| 32 | compile libs.support.core_utils |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 33 | // using classes like Pair from support core allows Lifecycle to be compatible w/ junit tests |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 34 | compile libs.support.fragments |
Sergey Vasilinets | e69e470 | 2017-02-10 02:26:10 -0800 | [diff] [blame] | 35 | // necessary for IJ to resolve dependencies. |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 36 | compile libs.support.annotations |
Yigit Boyar | 21886b6 | 2016-12-12 16:59:30 -0800 | [diff] [blame] | 37 | |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 38 | testCompile libs.junit |
| 39 | testCompile libs.mockito_core |
Yigit Boyar | 21886b6 | 2016-12-12 16:59:30 -0800 | [diff] [blame] | 40 | |
Sergey Vasilinets | f3a1ec3 | 2017-03-02 15:29:44 -0800 | [diff] [blame] | 41 | testCompile(libs.test_runner) { |
| 42 | exclude module: 'support-annotations' |
| 43 | } |
| 44 | |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 45 | androidTestCompile(libs.test_runner) { |
Yigit Boyar | fe127e5 | 2017-01-27 14:30:20 -0800 | [diff] [blame] | 46 | exclude module: 'support-annotations' |
| 47 | } |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 48 | androidTestCompile libs.support.app_compat |
| 49 | androidTestCompile(libs.espresso_core, { |
Yigit Boyar | 21886b6 | 2016-12-12 16:59:30 -0800 | [diff] [blame] | 50 | exclude group: 'com.android.support', module: 'support-annotations' |
| 51 | }) |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 52 | } |
Yigit Boyar | 19b4110 | 2016-11-20 10:46:32 -0800 | [diff] [blame] | 53 | |
Sergey Vasilinets | b085e34 | 2016-12-05 19:02:59 -0800 | [diff] [blame] | 54 | createAndroidCheckstyle(project) |
| 55 | |
Yigit Boyar | 83ebc49 | 2017-03-08 20:43:45 -0800 | [diff] [blame^] | 56 | archivesBaseName = "runtime" |