Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 | */ |
Sergey Vasilinets | eb9d04ce | 2017-09-18 15:59:33 -0700 | [diff] [blame] | 16 | |
Faelyn O'Grady | 7ee9574 | 2020-01-27 15:35:52 -0800 | [diff] [blame] | 17 | |
Aurimas Liutikas | b63ef63 | 2019-04-01 04:37:49 -0700 | [diff] [blame] | 18 | import androidx.build.AndroidXExtension |
Faelyn O'Grady | 7ee9574 | 2020-01-27 15:35:52 -0800 | [diff] [blame] | 19 | import androidx.build.LibraryGroups |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 20 | import androidx.build.Publish |
Sergey Vasilinets | eb9d04ce | 2017-09-18 15:59:33 -0700 | [diff] [blame] | 21 | |
Faelyn O'Grady | 7ee9574 | 2020-01-27 15:35:52 -0800 | [diff] [blame] | 22 | import static androidx.build.dependencies.DependenciesKt.* |
| 23 | |
Aurimas Liutikas | 3ba8693 | 2017-11-07 03:46:07 +0000 | [diff] [blame] | 24 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 25 | id("AndroidXPlugin") |
| 26 | id("com.android.library") |
Ian Lake | fc54de3 | 2018-08-22 15:47:17 -0700 | [diff] [blame] | 27 | id("kotlin-android") |
Aurimas Liutikas | 3ba8693 | 2017-11-07 03:46:07 +0000 | [diff] [blame] | 28 | } |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 29 | |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 30 | dependencies { |
Jeremy Woods | 4224f67 | 2021-01-26 16:16:03 -0800 | [diff] [blame] | 31 | api(project(":navigation:navigation-common-ktx")) |
| 32 | api("androidx.activity:activity-ktx:1.1.0") |
| 33 | api("androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0") |
Ian Lake | 391dc4b | 2019-09-07 17:51:23 -0700 | [diff] [blame] | 34 | api("androidx.savedstate:savedstate:1.0.0") |
Ian Lake | efee183 | 2020-01-24 16:47:31 -0800 | [diff] [blame] | 35 | api("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0") |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 36 | |
Jeremy Woods | 6a08f85 | 2021-01-21 17:38:46 -0800 | [diff] [blame] | 37 | api(KOTLIN_STDLIB) |
Dustin Lam | eec21a4 | 2020-10-13 15:12:26 -0700 | [diff] [blame] | 38 | androidTestImplementation(projectOrArtifact(":lifecycle:lifecycle-runtime-testing")) |
Matthew Fraschilla | 1c2fe046 | 2019-11-20 12:52:04 -0800 | [diff] [blame] | 39 | androidTestImplementation(project(":internal-testutils-navigation")) |
Dustin Lam | 3979d96 | 2019-04-08 10:40:19 -0700 | [diff] [blame] | 40 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 41 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 42 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 43 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Aurimas Liutikas | 544a1d7 | 2018-01-31 15:30:19 -0800 | [diff] [blame] | 44 | androidTestImplementation(ESPRESSO_CORE) |
Faelyn O'Grady | 7ee9574 | 2020-01-27 15:35:52 -0800 | [diff] [blame] | 45 | androidTestImplementation(ESPRESSO_INTENTS) |
Ian Lake | 3dce08c | 2018-11-20 14:50:11 -0800 | [diff] [blame] | 46 | androidTestImplementation(TRUTH) |
Ian Lake | fc54de3 | 2018-08-22 15:47:17 -0700 | [diff] [blame] | 47 | androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) |
| 48 | androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) |
| 49 | androidTestImplementation(KOTLIN_STDLIB) |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 50 | } |
| 51 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 52 | androidx { |
Aurimas Liutikas | 3670911 | 2017-11-08 23:28:50 +0000 | [diff] [blame] | 53 | name = "Android Navigation Runtime" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 54 | publish = Publish.SNAPSHOT_AND_RELEASE |
Aurimas Liutikas | 3670911 | 2017-11-08 23:28:50 +0000 | [diff] [blame] | 55 | mavenGroup = LibraryGroups.NAVIGATION |
| 56 | inceptionYear = "2017" |
| 57 | description = "Android Navigation-Runtime" |
Sergey Vasilinets | 98971a7 | 2018-04-18 10:33:33 -0700 | [diff] [blame] | 58 | } |