[go: nahoru, domu]

blob: 3f71e16b11cef56e5e56c878a0b136a88d7de51e [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
Tiem Songee0da742024-01-03 14:08:46 -080017/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
Omar Ismail86e66062024-05-03 16:10:50 +010024import androidx.build.LibraryType
Ian Lake7892d6f2018-02-14 12:12:24 -080025
26plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010027 id("AndroidXPlugin")
28 id("com.android.library")
Ian Lakeca44a772018-09-28 14:26:04 -070029 id("kotlin-android")
Clara Fok5dc21cd2024-02-21 09:59:02 -080030 alias(libs.plugins.kotlinSerialization)
Ian Lake7892d6f2018-02-14 12:12:24 -080031}
32
Ian Lake55af5f12021-06-09 16:57:14 -070033android {
Omar Ismail72444772024-05-14 14:55:28 +010034 buildTypes.configureEach {
Ian Lake55af5f12021-06-09 16:57:14 -070035 consumerProguardFiles "proguard-rules.pro"
36 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070037 namespace "androidx.navigation.common"
Ian Lake55af5f12021-06-09 16:57:14 -070038}
39
Ian Lake7892d6f2018-02-14 12:12:24 -080040dependencies {
Ian Lakeae48ec22019-09-26 15:57:41 -070041 api("androidx.annotation:annotation:1.1.0")
Jeremy Woods13796a22023-08-30 15:10:01 +000042 api("androidx.lifecycle:lifecycle-common:2.6.2")
43 api("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
44 api("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2")
Jeremy Woods078e4ef2023-03-09 23:39:33 +000045 api("androidx.savedstate:savedstate-ktx:1.2.1")
Jeremy Woods13796a22023-08-30 15:10:01 +000046 api("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2")
Jeremy Woods4224f672021-01-26 16:16:03 -080047 implementation("androidx.core:core-ktx:1.1.0")
48 implementation("androidx.collection:collection-ktx:1.1.0")
Chris Craikacb42522024-03-19 13:42:53 -070049 implementation("androidx.profileinstaller:profileinstaller:1.3.1")
Clara Fok5dc21cd2024-02-21 09:59:02 -080050 implementation(libs.kotlinSerializationCore)
Ian Lake7892d6f2018-02-14 12:12:24 -080051
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070052 api(libs.kotlinStdlib)
Ian Laked4f6ac62021-05-06 16:51:03 -070053 testImplementation(project(":navigation:navigation-testing"))
Jeremy Woods5dc7b572023-05-01 22:46:22 +000054 testImplementation("androidx.arch.core:core-testing:2.2.0")
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070055 testImplementation(libs.junit)
Aurimas Liutikas759f9682022-10-05 07:01:37 -070056 testImplementation(libs.mockitoCore4)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070057 testImplementation(libs.truth)
58 testImplementation(libs.kotlinStdlib)
Oleksandr Karpovich7b8b5432021-12-29 11:49:35 +010059 testImplementation(libs.kotlinCoroutinesTest)
Clara Fok5dc21cd2024-02-21 09:59:02 -080060 testImplementation(libs.kotlinTest)
Ian Lake7892d6f2018-02-14 12:12:24 -080061
Clara Fok81870882022-10-25 16:45:43 -070062 androidTestImplementation(libs.kotlinTestJunit)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070063 androidTestImplementation(libs.testExtJunit)
64 androidTestImplementation(libs.testCore)
65 androidTestImplementation(libs.testRunner)
66 androidTestImplementation(libs.espressoCore)
67 androidTestImplementation(libs.truth)
68 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy)
69 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy)
70 androidTestImplementation(libs.kotlinStdlib)
Julia McClellanb582fb42022-04-25 13:25:19 -040071
72 lintPublish(project(':navigation:navigation-common-lint'))
Ian Lake7892d6f2018-02-14 12:12:24 -080073}
74
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070075androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040076 name = "Navigation Common"
Omar Ismail86e66062024-05-03 16:10:50 +010077 type = LibraryType.PUBLISHED_LIBRARY
Ian Lake7892d6f2018-02-14 12:12:24 -080078 inceptionYear = "2017"
79 description = "Android Navigation-Common"
Jinseong Jeon9a505552023-08-22 09:39:16 -070080 metalavaK2UastEnabled = true
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070081 legacyDisableKotlinStrictApiMode = true
Ian Lake7892d6f2018-02-14 12:12:24 -080082}