[go: nahoru, domu]

blob: 57222fb2fa6f4b8d247770de326cbd4f7d4c5412 [file] [log] [blame]
Ian Lake7892d6f2018-02-14 12:12:24 -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 */
16
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070017import androidx.build.Publish
Ian Lake7892d6f2018-02-14 12:12:24 -080018
19plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010020 id("AndroidXPlugin")
21 id("com.android.library")
Ian Lakeca44a772018-09-28 14:26:04 -070022 id("kotlin-android")
Ian Lake7892d6f2018-02-14 12:12:24 -080023}
24
Ian Lake55af5f12021-06-09 16:57:14 -070025android {
26 buildTypes.all {
27 consumerProguardFiles "proguard-rules.pro"
28 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070029 namespace "androidx.navigation.common"
Ian Lake55af5f12021-06-09 16:57:14 -070030}
31
Ian Lake7892d6f2018-02-14 12:12:24 -080032dependencies {
Ian Lakeae48ec22019-09-26 15:57:41 -070033 api("androidx.annotation:annotation:1.1.0")
sanura40a4b6e2022-11-09 22:06:40 +000034 api(project(":lifecycle:lifecycle-runtime-ktx"))
35 api(project(":lifecycle:lifecycle-viewmodel-ktx"))
Jeremy Woodscfe08dd2022-06-07 12:58:41 -070036 api("androidx.savedstate:savedstate-ktx:1.2.0")
sanura40a4b6e2022-11-09 22:06:40 +000037 api(project(":lifecycle:lifecycle-viewmodel-savedstate"))
Jeremy Woods4224f672021-01-26 16:16:03 -080038 implementation("androidx.core:core-ktx:1.1.0")
39 implementation("androidx.collection:collection-ktx:1.1.0")
Ian Lake7892d6f2018-02-14 12:12:24 -080040
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070041 api(libs.kotlinStdlib)
Ian Laked4f6ac62021-05-06 16:51:03 -070042 testImplementation(project(":navigation:navigation-testing"))
43 testImplementation("androidx.arch.core:core-testing:2.1.0")
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070044 testImplementation(libs.junit)
Aurimas Liutikas759f9682022-10-05 07:01:37 -070045 testImplementation(libs.mockitoCore4)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070046 testImplementation(libs.truth)
47 testImplementation(libs.kotlinStdlib)
Oleksandr Karpovich7b8b5432021-12-29 11:49:35 +010048 testImplementation(libs.kotlinCoroutinesTest)
Ian Lake7892d6f2018-02-14 12:12:24 -080049
Clara Fok81870882022-10-25 16:45:43 -070050 androidTestImplementation(libs.kotlinTestJunit)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070051 androidTestImplementation(libs.testExtJunit)
52 androidTestImplementation(libs.testCore)
53 androidTestImplementation(libs.testRunner)
54 androidTestImplementation(libs.espressoCore)
55 androidTestImplementation(libs.truth)
56 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy)
57 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy)
58 androidTestImplementation(libs.kotlinStdlib)
Julia McClellanb582fb42022-04-25 13:25:19 -040059
60 lintPublish(project(':navigation:navigation-common-lint'))
Ian Lake7892d6f2018-02-14 12:12:24 -080061}
62
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070063androidx {
Ian Lake7892d6f2018-02-14 12:12:24 -080064 name = "Android Navigation Common"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070065 publish = Publish.SNAPSHOT_AND_RELEASE
Ian Lake7892d6f2018-02-14 12:12:24 -080066 mavenGroup = LibraryGroups.NAVIGATION
67 inceptionYear = "2017"
68 description = "Android Navigation-Common"
Ian Lake7892d6f2018-02-14 12:12:24 -080069}