Aurimas Liutikas | b938b2e | 2017-07-24 14:47:17 -0700 | [diff] [blame] | 1 | import android.support.LibraryVersions |
| 2 | |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 3 | import android.support.SupportLibraryExtension |
| 4 | |
| 5 | apply plugin: android.support.FlatfootAndroidLibraryPlugin |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 6 | |
| 7 | android { |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 8 | compileSdkVersion tools.current_sdk |
| 9 | buildToolsVersion tools.build_tools_version |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 10 | |
| 11 | defaultConfig { |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 12 | minSdkVersion flatfoot.min_sdk |
| 13 | targetSdkVersion tools.current_sdk |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 14 | |
| 15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 16 | } |
Sergey Vasilinets | 1a06787 | 2017-06-21 16:27:47 -0700 | [diff] [blame] | 17 | |
| 18 | buildTypes.all { |
| 19 | consumerProguardFiles 'proguard-rules.pro' |
| 20 | } |
| 21 | |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 22 | testOptions { |
| 23 | unitTests.returnDefaultValues = true |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | dependencies { |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 28 | compile project(":lifecycle:common") |
Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [diff] [blame] | 29 | compile project(":arch:common") |
Sergey Vasilinets | e69e470 | 2017-02-10 02:26:10 -0800 | [diff] [blame] | 30 | // necessary for IJ to resolve dependencies. |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 31 | compile libs.support.annotations |
Yigit Boyar | 21886b6 | 2016-12-12 16:59:30 -0800 | [diff] [blame] | 32 | |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 33 | testCompile libs.junit |
| 34 | testCompile libs.mockito_core |
Yigit Boyar | 54850ab | 2017-10-09 11:31:24 -0700 | [diff] [blame^] | 35 | |
| 36 | androidTestImplementation libs.junit |
| 37 | androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' } |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 38 | } |
Yigit Boyar | 19b4110 | 2016-11-20 10:46:32 -0800 | [diff] [blame] | 39 | |
Sergey Vasilinets | b085e34 | 2016-12-05 19:02:59 -0800 | [diff] [blame] | 40 | createAndroidCheckstyle(project) |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 41 | |
Yigit Boyar | d382982 | 2017-08-25 16:53:25 -0700 | [diff] [blame] | 42 | version = LibraryVersions.LIFECYCLES_RUNTIME.toString() |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 43 | supportLibrary { |
| 44 | name 'Android Lifecycle Runtime' |
| 45 | publish true |
| 46 | inceptionYear '2017' |
| 47 | description "Android Lifecycle Runtime" |
| 48 | url SupportLibraryExtension.ARCHITECTURE_URL |
| 49 | } |