[go: nahoru, domu]

blob: 43e324a4def3e72a36046461e49430c61b71189e [file] [log] [blame]
Adam Powellb15ee752017-01-20 16:47:59 -08001/*
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 Vasilinetseb9d04ce2017-09-18 15:59:33 -070016
Faelyn O'Grady7ee95742020-01-27 15:35:52 -080017
Aurimas Liutikasb63ef632019-04-01 04:37:49 -070018import androidx.build.AndroidXExtension
Faelyn O'Grady7ee95742020-01-27 15:35:52 -080019import androidx.build.LibraryGroups
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070020import androidx.build.Publish
Sergey Vasilinetseb9d04ce2017-09-18 15:59:33 -070021
Faelyn O'Grady7ee95742020-01-27 15:35:52 -080022import static androidx.build.dependencies.DependenciesKt.*
23
Aurimas Liutikas3ba86932017-11-07 03:46:07 +000024plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010025 id("AndroidXPlugin")
26 id("com.android.library")
Ian Lakefc54de32018-08-22 15:47:17 -070027 id("kotlin-android")
Aurimas Liutikas3ba86932017-11-07 03:46:07 +000028}
Adam Powellb15ee752017-01-20 16:47:59 -080029
Adam Powellb15ee752017-01-20 16:47:59 -080030dependencies {
Jeremy Woods4224f672021-01-26 16:16:03 -080031 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 Lake391dc4b2019-09-07 17:51:23 -070034 api("androidx.savedstate:savedstate:1.0.0")
Ian Lakeefee1832020-01-24 16:47:31 -080035 api("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0")
Adam Powellb15ee752017-01-20 16:47:59 -080036
Jeremy Woods6a08f852021-01-21 17:38:46 -080037 api(KOTLIN_STDLIB)
Dustin Lameec21a42020-10-13 15:12:26 -070038 androidTestImplementation(projectOrArtifact(":lifecycle:lifecycle-runtime-testing"))
Matthew Fraschilla1c2fe0462019-11-20 12:52:04 -080039 androidTestImplementation(project(":internal-testutils-navigation"))
Dustin Lam3979d962019-04-08 10:40:19 -070040 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
41 androidTestImplementation(ANDROIDX_TEST_CORE)
42 androidTestImplementation(ANDROIDX_TEST_RUNNER)
43 androidTestImplementation(ANDROIDX_TEST_RULES)
Aurimas Liutikas544a1d72018-01-31 15:30:19 -080044 androidTestImplementation(ESPRESSO_CORE)
Faelyn O'Grady7ee95742020-01-27 15:35:52 -080045 androidTestImplementation(ESPRESSO_INTENTS)
Ian Lake3dce08c2018-11-20 14:50:11 -080046 androidTestImplementation(TRUTH)
Ian Lakefc54de32018-08-22 15:47:17 -070047 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy)
48 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy)
49 androidTestImplementation(KOTLIN_STDLIB)
Adam Powellb15ee752017-01-20 16:47:59 -080050}
51
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070052androidx {
Aurimas Liutikas36709112017-11-08 23:28:50 +000053 name = "Android Navigation Runtime"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070054 publish = Publish.SNAPSHOT_AND_RELEASE
Aurimas Liutikas36709112017-11-08 23:28:50 +000055 mavenGroup = LibraryGroups.NAVIGATION
56 inceptionYear = "2017"
57 description = "Android Navigation-Runtime"
Sergey Vasilinets98971a72018-04-18 10:33:33 -070058}