Ian Lake | 7892d6f | 2018-02-14 12:12:24 -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 | */ |
| 16 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 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 Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 25 | |
| 26 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
Ian Lake | ca44a77 | 2018-09-28 14:26:04 -0700 | [diff] [blame] | 29 | id("kotlin-android") |
Clara Fok | 5dc21cd | 2024-02-21 09:59:02 -0800 | [diff] [blame] | 30 | alias(libs.plugins.kotlinSerialization) |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 31 | } |
| 32 | |
Ian Lake | 55af5f1 | 2021-06-09 16:57:14 -0700 | [diff] [blame] | 33 | android { |
Omar Ismail | 7244477 | 2024-05-14 14:55:28 +0100 | [diff] [blame] | 34 | buildTypes.configureEach { |
Ian Lake | 55af5f1 | 2021-06-09 16:57:14 -0700 | [diff] [blame] | 35 | consumerProguardFiles "proguard-rules.pro" |
| 36 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 37 | namespace "androidx.navigation.common" |
Ian Lake | 55af5f1 | 2021-06-09 16:57:14 -0700 | [diff] [blame] | 38 | } |
| 39 | |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 40 | dependencies { |
Ian Lake | ae48ec2 | 2019-09-26 15:57:41 -0700 | [diff] [blame] | 41 | api("androidx.annotation:annotation:1.1.0") |
Jeremy Woods | 13796a2 | 2023-08-30 15:10:01 +0000 | [diff] [blame] | 42 | 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 Woods | 078e4ef | 2023-03-09 23:39:33 +0000 | [diff] [blame] | 45 | api("androidx.savedstate:savedstate-ktx:1.2.1") |
Jeremy Woods | 13796a2 | 2023-08-30 15:10:01 +0000 | [diff] [blame] | 46 | api("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2") |
Jeremy Woods | 4224f67 | 2021-01-26 16:16:03 -0800 | [diff] [blame] | 47 | implementation("androidx.core:core-ktx:1.1.0") |
| 48 | implementation("androidx.collection:collection-ktx:1.1.0") |
Chris Craik | acb4252 | 2024-03-19 13:42:53 -0700 | [diff] [blame] | 49 | implementation("androidx.profileinstaller:profileinstaller:1.3.1") |
Clara Fok | 5dc21cd | 2024-02-21 09:59:02 -0800 | [diff] [blame] | 50 | implementation(libs.kotlinSerializationCore) |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 51 | |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 52 | api(libs.kotlinStdlib) |
Ian Lake | d4f6ac6 | 2021-05-06 16:51:03 -0700 | [diff] [blame] | 53 | testImplementation(project(":navigation:navigation-testing")) |
Jeremy Woods | 5dc7b57 | 2023-05-01 22:46:22 +0000 | [diff] [blame] | 54 | testImplementation("androidx.arch.core:core-testing:2.2.0") |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 55 | testImplementation(libs.junit) |
Aurimas Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 56 | testImplementation(libs.mockitoCore4) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 57 | testImplementation(libs.truth) |
| 58 | testImplementation(libs.kotlinStdlib) |
Oleksandr Karpovich | 7b8b543 | 2021-12-29 11:49:35 +0100 | [diff] [blame] | 59 | testImplementation(libs.kotlinCoroutinesTest) |
Clara Fok | 5dc21cd | 2024-02-21 09:59:02 -0800 | [diff] [blame] | 60 | testImplementation(libs.kotlinTest) |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 61 | |
Clara Fok | 8187088 | 2022-10-25 16:45:43 -0700 | [diff] [blame] | 62 | androidTestImplementation(libs.kotlinTestJunit) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 63 | 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 McClellan | b582fb4 | 2022-04-25 13:25:19 -0400 | [diff] [blame] | 71 | |
| 72 | lintPublish(project(':navigation:navigation-common-lint')) |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 73 | } |
| 74 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 75 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 76 | name = "Navigation Common" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 77 | type = LibraryType.PUBLISHED_LIBRARY |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 78 | inceptionYear = "2017" |
| 79 | description = "Android Navigation-Common" |
Jinseong Jeon | 9a50555 | 2023-08-22 09:39:16 -0700 | [diff] [blame] | 80 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 81 | legacyDisableKotlinStrictApiMode = true |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 82 | } |