Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Yigit Boyar | d382982 | 2017-08-25 16:53:25 -0700 | [diff] [blame] | 17 | import android.support.LibraryVersions |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 18 | import android.support.SupportLibraryExtension |
| 19 | |
| 20 | apply plugin: android.support.FlatfootAndroidLibraryPlugin |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 21 | |
| 22 | android { |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 23 | compileSdkVersion tools.current_sdk |
| 24 | buildToolsVersion tools.build_tools_version |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 25 | |
| 26 | defaultConfig { |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 27 | minSdkVersion flatfoot.min_sdk |
| 28 | targetSdkVersion tools.current_sdk |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 29 | |
| 30 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 31 | } |
Sergey Vasilinets | 1a06787 | 2017-06-21 16:27:47 -0700 | [diff] [blame] | 32 | |
| 33 | buildTypes.all { |
| 34 | consumerProguardFiles 'proguard-rules.pro' |
| 35 | } |
| 36 | |
Yigit Boyar | c1b53ee | 2016-11-09 15:33:52 -0800 | [diff] [blame] | 37 | testOptions { |
| 38 | unitTests.returnDefaultValues = true |
| 39 | } |
| 40 | } |
Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 41 | dependencies { |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 42 | compile project(":lifecycle:runtime") |
Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [diff] [blame] | 43 | compile project(":arch:common") |
Yigit Boyar | 8205ce1 | 2017-07-09 23:07:05 -0700 | [diff] [blame] | 44 | compile project(":arch:runtime") |
Sergey Vasilinets | cb1c88d | 2017-09-12 17:21:41 -0700 | [diff] [blame] | 45 | compile libs.support.fragments, libs.support_exclude_config |
Sergey Vasilinets | d069a4c | 2017-09-21 11:27:31 -0700 | [diff] [blame] | 46 | compile project(":lifecycle:common") |
Sergey Vasilinets | b86bef2 | 2017-04-21 17:42:13 -0700 | [diff] [blame] | 47 | |
Yigit Boyar | 64db0cc | 2017-04-17 13:18:56 -0700 | [diff] [blame] | 48 | testCompile project(":arch:core-testing") |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 49 | testCompile libs.junit |
Yigit Boyar | b323d28 | 2017-06-28 13:58:45 -0700 | [diff] [blame] | 50 | testCompile libs.mockito_core |
Sergey Vasilinets | d7d9461 | 2017-03-09 22:29:54 -0800 | [diff] [blame] | 51 | |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 52 | androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' } |
| 53 | androidTestImplementation libs.espresso_core, { exclude module: 'support-annotations' } |
Sergey Vasilinets | cb1c88d | 2017-09-12 17:21:41 -0700 | [diff] [blame] | 54 | androidTestImplementation libs.support.app_compat, libs.support_exclude_config |
Yigit Boyar | 19b4110 | 2016-11-20 10:46:32 -0800 | [diff] [blame] | 55 | } |
| 56 | |
Sergey Vasilinets | b085e34 | 2016-12-05 19:02:59 -0800 | [diff] [blame] | 57 | createAndroidCheckstyle(project) |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 58 | |
Yigit Boyar | d382982 | 2017-08-25 16:53:25 -0700 | [diff] [blame] | 59 | version = LibraryVersions.LIFECYCLES_EXT.toString() |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 60 | supportLibrary { |
| 61 | name 'Android Lifecycle Extensions' |
| 62 | publish true |
| 63 | inceptionYear '2017' |
| 64 | description "Android Lifecycle Extensions" |
| 65 | url SupportLibraryExtension.ARCHITECTURE_URL |
| 66 | } |