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 | |
Aurimas Liutikas | 526389b | 2018-02-27 14:01:24 -0800 | [diff] [blame] | 17 | import static androidx.build.dependencies.DependenciesKt.* |
| 18 | import androidx.build.LibraryGroups |
| 19 | import androidx.build.LibraryVersions |
Aurimas Liutikas | b63ef63 | 2019-04-01 04:37:49 -0700 | [diff] [blame] | 20 | import androidx.build.AndroidXExtension |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 21 | import androidx.build.Publish |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 22 | |
Aurimas Liutikas | ea5ee82 | 2017-11-06 12:52:28 -0800 | [diff] [blame] | 23 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 24 | id("AndroidXPlugin") |
| 25 | id("com.android.library") |
Ian Lake | ee920cf | 2019-06-27 09:42:22 -0700 | [diff] [blame] | 26 | id("kotlin-android") |
Aurimas Liutikas | ea5ee82 | 2017-11-06 12:52:28 -0800 | [diff] [blame] | 27 | } |
Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 28 | |
Aurimas Liutikas | 87a16a5 | 2017-11-09 13:53:34 -0800 | [diff] [blame] | 29 | dependencies { |
Alan Viverette | ba069d5 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 30 | api(project(":lifecycle:lifecycle-runtime")) |
Ian Lake | 45becd0 | 2019-07-16 09:48:38 -0700 | [diff] [blame^] | 31 | api("androidx.arch.core:core-common:2.1.0-rc01") |
| 32 | api("androidx.arch.core:core-runtime:2.1.0-rc01") |
Ian Lake | bbbc47e | 2019-06-27 14:20:32 -0700 | [diff] [blame] | 33 | api(project(":fragment:fragment")) |
Alan Viverette | ba069d5 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 34 | api(project(":lifecycle:lifecycle-common")) |
| 35 | api(project(":lifecycle:lifecycle-livedata")) |
Ian Lake | 557a60c | 2018-04-18 15:31:12 -0700 | [diff] [blame] | 36 | api(project(":lifecycle:lifecycle-process")) |
Ian Lake | e30152c | 2018-04-18 14:12:01 -0700 | [diff] [blame] | 37 | api(project(":lifecycle:lifecycle-service")) |
Alan Viverette | ba069d5 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 38 | api(project(":lifecycle:lifecycle-viewmodel")) |
Aurimas Liutikas | 87a16a5 | 2017-11-09 13:53:34 -0800 | [diff] [blame] | 39 | |
Ian Lake | 45becd0 | 2019-07-16 09:48:38 -0700 | [diff] [blame^] | 40 | testImplementation("androidx.arch.core:core-testing:2.1.0-rc01") |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 41 | testImplementation(JUNIT) |
| 42 | testImplementation(MOCKITO_CORE) |
Sergey Vasilinets | d7d9461 | 2017-03-09 22:29:54 -0800 | [diff] [blame] | 43 | |
Ian Lake | ee920cf | 2019-06-27 09:42:22 -0700 | [diff] [blame] | 44 | androidTestImplementation(KOTLIN_STDLIB) |
| 45 | androidTestImplementation(TRUTH) |
Dustin Lam | 3979d96 | 2019-04-08 10:40:19 -0700 | [diff] [blame] | 46 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 47 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 48 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 49 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Jake Wharton | 843419a | 2017-12-06 11:16:56 -0500 | [diff] [blame] | 50 | androidTestImplementation(ESPRESSO_CORE) |
Aurimas Liutikas | 827a1f2 | 2019-07-12 16:29:28 -0700 | [diff] [blame] | 51 | androidTestImplementation(SUPPORT_APPCOMPAT) |
Ian Lake | ee920cf | 2019-06-27 09:42:22 -0700 | [diff] [blame] | 52 | androidTestImplementation(project(":internal-testutils")) |
Yigit Boyar | 19b4110 | 2016-11-20 10:46:32 -0800 | [diff] [blame] | 53 | } |
| 54 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 55 | androidx { |
Aurimas Liutikas | ea5ee82 | 2017-11-06 12:52:28 -0800 | [diff] [blame] | 56 | name = "Android Lifecycle Extensions" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 57 | publish = Publish.SNAPSHOT_AND_RELEASE |
Sergey Vasilinets | 071d611 | 2018-10-04 19:32:59 +0100 | [diff] [blame] | 58 | mavenVersion = LibraryVersions.LIFECYCLE |
Aurimas Liutikas | 7f40a7e | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 59 | mavenGroup = LibraryGroups.LIFECYCLE |
Aurimas Liutikas | ea5ee82 | 2017-11-06 12:52:28 -0800 | [diff] [blame] | 60 | inceptionYear = "2017" |
| 61 | description = "Android Lifecycle Extensions" |
Aurimas Liutikas | b63ef63 | 2019-04-01 04:37:49 -0700 | [diff] [blame] | 62 | url = AndroidXExtension.ARCHITECTURE_URL |
Aurimas Liutikas | 3ac069f | 2018-04-04 13:25:38 -0700 | [diff] [blame] | 63 | failOnDeprecationWarnings = false |
Filip Pavlis | a879294 | 2018-03-08 21:01:59 +0000 | [diff] [blame] | 64 | } |