blob: b7166ead946a2276905b274006003b2e9f55a265 [file] [log] [blame]
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -07001/*
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
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080017import static android.support.dependencies.DependenciesKt.*
Aurimas Liutikas7f40a7e2017-10-27 17:55:06 -070018import android.support.LibraryGroups
Yigit Boyard3829822017-08-25 16:53:25 -070019import android.support.LibraryVersions
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070020import android.support.SupportLibraryExtension
21
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080022plugins {
23 id("SupportAndroidLibraryPlugin")
24}
Yigit Boyarb96ccea2016-10-31 17:51:15 -070025
26android {
Yigit Boyarb96ccea2016-10-31 17:51:15 -070027 defaultConfig {
Yigit Boyar450ed382017-03-02 09:48:25 -080028 minSdkVersion flatfoot.min_sdk
Yigit Boyarb96ccea2016-10-31 17:51:15 -070029 }
Sergey Vasilinets1a067872017-06-21 16:27:47 -070030
31 buildTypes.all {
32 consumerProguardFiles 'proguard-rules.pro'
33 }
Yigit Boyarc1b53ee2016-11-09 15:33:52 -080034}
Sergey Vasilinetsb86bef22017-04-21 17:42:13 -070035
Aurimas Liutikas87a16a52017-11-09 13:53:34 -080036dependencies {
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080037 api(project(":lifecycle:runtime"))
38 api(project(":arch:common"))
39 api(project(":arch:runtime"))
Aurimas Liutikas87a16a52017-11-09 13:53:34 -080040 api libs.support.fragments, libs.support_exclude_config
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080041 api(project(":lifecycle:common"))
Aurimas Liutikas87a16a52017-11-09 13:53:34 -080042
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080043 testImplementation(project(":arch:core-testing"))
44 testImplementation(JUNIT)
45 testImplementation(MOCKITO_CORE)
Sergey Vasilinetsd7d94612017-03-09 22:29:54 -080046
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080047 androidTestImplementation(TEST_RUNNER, libs.exclude_annotations)
48 androidTestImplementation(ESPRESSO_CORE, libs.exclude_annotations)
Sergey Vasilinetscb1c88d2017-09-12 17:21:41 -070049 androidTestImplementation libs.support.app_compat, libs.support_exclude_config
Yigit Boyar19b41102016-11-20 10:46:32 -080050}
51
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070052supportLibrary {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080053 name = "Android Lifecycle Extensions"
54 publish = true
Aurimas Liutikas78c1ab72017-11-08 13:33:51 -080055 mavenVersion = LibraryVersions.LIFECYCLES_EXT
Aurimas Liutikas7f40a7e2017-10-27 17:55:06 -070056 mavenGroup = LibraryGroups.LIFECYCLE
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080057 inceptionYear = "2017"
58 description = "Android Lifecycle Extensions"
59 url = SupportLibraryExtension.ARCHITECTURE_URL
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070060}