blob: f8bf7488ecc28999b079c71c9657231c81c06669 [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 Liutikas526389b2018-02-27 14:01:24 -080017import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryGroups
19import androidx.build.LibraryVersions
Aurimas Liutikasb63ef632019-04-01 04:37:49 -070020import androidx.build.AndroidXExtension
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070021import androidx.build.Publish
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070022
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080023plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010024 id("AndroidXPlugin")
25 id("com.android.library")
Ian Lakeee920cf2019-06-27 09:42:22 -070026 id("kotlin-android")
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080027}
Yigit Boyarb96cceaa2016-10-31 17:51:15 -070028
Aurimas Liutikas87a16a52017-11-09 13:53:34 -080029dependencies {
Alan Viveretteba069d52018-03-08 18:02:39 -050030 api(project(":lifecycle:lifecycle-runtime"))
Ian Lake45becd02019-07-16 09:48:38 -070031 api("androidx.arch.core:core-common:2.1.0-rc01")
32 api("androidx.arch.core:core-runtime:2.1.0-rc01")
Ian Lakebbbc47e2019-06-27 14:20:32 -070033 api(project(":fragment:fragment"))
Alan Viveretteba069d52018-03-08 18:02:39 -050034 api(project(":lifecycle:lifecycle-common"))
35 api(project(":lifecycle:lifecycle-livedata"))
Ian Lake557a60c2018-04-18 15:31:12 -070036 api(project(":lifecycle:lifecycle-process"))
Ian Lakee30152c2018-04-18 14:12:01 -070037 api(project(":lifecycle:lifecycle-service"))
Alan Viveretteba069d52018-03-08 18:02:39 -050038 api(project(":lifecycle:lifecycle-viewmodel"))
Aurimas Liutikas87a16a52017-11-09 13:53:34 -080039
Ian Lake45becd02019-07-16 09:48:38 -070040 testImplementation("androidx.arch.core:core-testing:2.1.0-rc01")
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080041 testImplementation(JUNIT)
42 testImplementation(MOCKITO_CORE)
Sergey Vasilinetsd7d94612017-03-09 22:29:54 -080043
Ian Lakeee920cf2019-06-27 09:42:22 -070044 androidTestImplementation(KOTLIN_STDLIB)
45 androidTestImplementation(TRUTH)
Dustin Lam3979d962019-04-08 10:40:19 -070046 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
47 androidTestImplementation(ANDROIDX_TEST_CORE)
48 androidTestImplementation(ANDROIDX_TEST_RUNNER)
49 androidTestImplementation(ANDROIDX_TEST_RULES)
Jake Wharton843419a2017-12-06 11:16:56 -050050 androidTestImplementation(ESPRESSO_CORE)
Aurimas Liutikas827a1f22019-07-12 16:29:28 -070051 androidTestImplementation(SUPPORT_APPCOMPAT)
Ian Lakeee920cf2019-06-27 09:42:22 -070052 androidTestImplementation(project(":internal-testutils"))
Yigit Boyar19b41102016-11-20 10:46:32 -080053}
54
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070055androidx {
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080056 name = "Android Lifecycle Extensions"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070057 publish = Publish.SNAPSHOT_AND_RELEASE
Sergey Vasilinets071d6112018-10-04 19:32:59 +010058 mavenVersion = LibraryVersions.LIFECYCLE
Aurimas Liutikas7f40a7e2017-10-27 17:55:06 -070059 mavenGroup = LibraryGroups.LIFECYCLE
Aurimas Liutikasea5ee822017-11-06 12:52:28 -080060 inceptionYear = "2017"
61 description = "Android Lifecycle Extensions"
Aurimas Liutikasb63ef632019-04-01 04:37:49 -070062 url = AndroidXExtension.ARCHITECTURE_URL
Aurimas Liutikas3ac069f2018-04-04 13:25:38 -070063 failOnDeprecationWarnings = false
Filip Pavlisa8792942018-03-08 21:01:59 +000064}