[go: nahoru, domu]

blob: 08168f1756eec46a38a174a55a19191a6037f1e2 [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 Liutikas39f22262022-11-03 09:00:24 -070029 defaultConfig {
30 multiDexEnabled true
31 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070032 namespace "androidx.navigation.common"
Ian Lake55af5f12021-06-09 16:57:14 -070033}
34
Ian Lake7892d6f2018-02-14 12:12:24 -080035dependencies {
Ian Lakeae48ec22019-09-26 15:57:41 -070036 api("androidx.annotation:annotation:1.1.0")
sanura40a4b6e2022-11-09 22:06:40 +000037 api(project(":lifecycle:lifecycle-runtime-ktx"))
38 api(project(":lifecycle:lifecycle-viewmodel-ktx"))
Jeremy Woodscfe08dd2022-06-07 12:58:41 -070039 api("androidx.savedstate:savedstate-ktx:1.2.0")
sanura40a4b6e2022-11-09 22:06:40 +000040 api(project(":lifecycle:lifecycle-viewmodel-savedstate"))
Jeremy Woods4224f672021-01-26 16:16:03 -080041 implementation("androidx.core:core-ktx:1.1.0")
42 implementation("androidx.collection:collection-ktx:1.1.0")
Ian Lake7892d6f2018-02-14 12:12:24 -080043
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070044 api(libs.kotlinStdlib)
Ian Laked4f6ac62021-05-06 16:51:03 -070045 testImplementation(project(":navigation:navigation-testing"))
46 testImplementation("androidx.arch.core:core-testing:2.1.0")
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070047 testImplementation(libs.junit)
Aurimas Liutikas759f9682022-10-05 07:01:37 -070048 testImplementation(libs.mockitoCore4)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070049 testImplementation(libs.truth)
50 testImplementation(libs.kotlinStdlib)
Oleksandr Karpovich7b8b5432021-12-29 11:49:35 +010051 testImplementation(libs.kotlinCoroutinesTest)
Ian Lake7892d6f2018-02-14 12:12:24 -080052
Clara Fok81870882022-10-25 16:45:43 -070053 androidTestImplementation(libs.kotlinTestJunit)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070054 androidTestImplementation(libs.testExtJunit)
55 androidTestImplementation(libs.testCore)
56 androidTestImplementation(libs.testRunner)
57 androidTestImplementation(libs.espressoCore)
58 androidTestImplementation(libs.truth)
59 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy)
60 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy)
61 androidTestImplementation(libs.kotlinStdlib)
Aurimas Liutikas39f22262022-11-03 09:00:24 -070062 androidTestImplementation(libs.multidex)
Julia McClellanb582fb42022-04-25 13:25:19 -040063
64 lintPublish(project(':navigation:navigation-common-lint'))
Ian Lake7892d6f2018-02-14 12:12:24 -080065}
66
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070067androidx {
Ian Lake7892d6f2018-02-14 12:12:24 -080068 name = "Android Navigation Common"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070069 publish = Publish.SNAPSHOT_AND_RELEASE
Ian Lake7892d6f2018-02-14 12:12:24 -080070 inceptionYear = "2017"
71 description = "Android Navigation-Common"
Ian Lake7892d6f2018-02-14 12:12:24 -080072}