blob: 1ad4631e11fce7a802fcfe567dd31af1a07ef051 [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
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 Ismail8c545f72024-08-21 17:45:15 +010024
25import androidx.build.KotlinTarget
Omar Ismail86e66062024-05-03 16:10:50 +010026import androidx.build.LibraryType
Sergey Vasilinetseb9d04ce2017-09-18 15:59:33 -070027
Aurimas Liutikas3ba86932017-11-07 03:46:07 +000028plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010029 id("AndroidXPlugin")
30 id("com.android.library")
Ian Lakefc54de32018-08-22 15:47:17 -070031 id("kotlin-android")
Clara Fokfccd74a2024-03-19 10:32:54 -070032 alias(libs.plugins.kotlinSerialization)
Aurimas Liutikas3ba86932017-11-07 03:46:07 +000033}
Adam Powellb15ee752017-01-20 16:47:59 -080034
Adam Powellb15ee752017-01-20 16:47:59 -080035dependencies {
Jeremy Woods70f3e062024-09-23 23:06:38 +000036 api(libs.kotlinStdlib)
37 api(libs.kotlinCoroutinesCore)
Jeremy Woods14523ed2021-04-07 09:22:44 -070038 api(project(":navigation:navigation-common"))
Jeremy Woods251cbde2023-05-03 11:19:43 -070039 api("androidx.activity:activity-ktx:1.7.1")
Jeremy Woods70f3e062024-09-23 23:06:38 +000040 api("androidx.core:core-ktx:1.8.0")
41 api("androidx.lifecycle:lifecycle-common:2.6.2")
Jeremy Woods13796a22023-08-30 15:10:01 +000042 api("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
43 api("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2")
Jinseong Jeon89e05332024-07-04 18:35:02 -070044 api("androidx.annotation:annotation-experimental:1.4.1")
Adam Powellb15ee752017-01-20 16:47:59 -080045
Jeremy Woods70f3e062024-09-23 23:06:38 +000046 implementation(libs.kotlinSerializationCore)
47 implementation("androidx.collection:collection:1.4.2")
48
49 androidTestImplementation("androidx.annotation:annotation:1.8.0")
50 androidTestImplementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2")
51 androidTestImplementation("androidx.lifecycle:lifecycle-common:2.6.2")
52 androidTestImplementation("androidx.lifecycle:lifecycle-runtime:2.6.2")
53 androidTestImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.6.2")
Matthew Fraschilla1c2fe0462019-11-20 12:52:04 -080054 androidTestImplementation(project(":internal-testutils-navigation"))
Faelyn O'Grady793e0982021-07-21 13:24:24 -070055 androidTestImplementation(project(":internal-testutils-runtime"))
Jeremy Woods70f3e062024-09-23 23:06:38 +000056 androidTestImplementation(libs.hamcrestCore)
57 androidTestImplementation(libs.junit)
58 androidTestImplementation(libs.kotlinTest)
59 androidTestImplementation(libs.testCore)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070060 androidTestImplementation(libs.testExtJunit)
61 androidTestImplementation(libs.testExtTruth)
Jeremy Woods70f3e062024-09-23 23:06:38 +000062 androidTestImplementation(libs.testMonitor)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070063 androidTestImplementation(libs.testRunner)
64 androidTestImplementation(libs.testRules)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070065 androidTestImplementation(libs.espressoIntents)
66 androidTestImplementation(libs.truth)
Aurimas Liutikas1a31ba62024-08-30 12:49:00 -070067 androidTestImplementation(libs.dexmakerMockito)
Jeremy Woods70f3e062024-09-23 23:06:38 +000068 androidTestImplementation(libs.mockitoCore)
Julia McClellancd77b4b2022-04-14 15:31:46 -040069
Jeremy Woods70f3e062024-09-23 23:06:38 +000070 lintPublish(project(":navigation:navigation-runtime-lint"))
Alan Viveretteac702b82021-07-30 14:20:02 -040071}
72
73android {
Aurimas Liutikas77952822024-12-04 18:00:17 -080074 namespace = "androidx.navigation"
Adam Powellb15ee752017-01-20 16:47:59 -080075}
76
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070077androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040078 name = "Navigation Runtime"
Omar Ismail86e66062024-05-03 16:10:50 +010079 type = LibraryType.PUBLISHED_LIBRARY
Aurimas Liutikas36709112017-11-08 23:28:50 +000080 inceptionYear = "2017"
81 description = "Android Navigation-Runtime"
Omar Ismail8c545f72024-08-21 17:45:15 +010082 kotlinTarget = KotlinTarget.KOTLIN_1_9
Sergey Vasilinets98971a72018-04-18 10:33:33 -070083}