blob: 973ac73914a51914c88e6c7101f6345d523227bd [file] [log] [blame]
Ian Lake7892d6f2018-02-14 12:12:24 -08001/*
Ian Lake7a55d722018-10-12 10:07:44 -07002 * Copyright 2018 The Android Open Source Project
Ian Lake7892d6f2018-02-14 12:12:24 -08003 *
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 Lake7a55d722018-10-12 10:07:44 -070029 id("org.jetbrains.kotlin.android")
Clara Fokf5196162024-05-07 15:51:15 -070030 alias(libs.plugins.kotlinSerialization)
Ian Lake7892d6f2018-02-14 12:12:24 -080031}
32
33dependencies {
Jeremy Woods2a78a492021-04-12 10:57:31 -070034 api(project(":navigation:navigation-runtime"))
Jeremy Woods70f3e062024-09-23 23:06:38 +000035 api("androidx.lifecycle:lifecycle-runtime-testing:2.6.2")
Ian Lake7892d6f2018-02-14 12:12:24 -080036
Jeremy Woods70f3e062024-09-23 23:06:38 +000037 implementation(libs.kotlinCoroutinesCore)
38 implementation(libs.kotlinSerializationCore)
39 implementation(project(":navigation:navigation-common"))
40 implementation("androidx.core:core-ktx:1.8.0")
41 implementation("androidx.lifecycle:lifecycle-common:2.6.2")
42 implementation("androidx.lifecycle:lifecycle-viewmodel:2.6.2")
43 implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2")
44
45 androidTestRuntimeOnly(libs.kotlinTestJunit)
46 androidTestImplementation("androidx.lifecycle:lifecycle-runtime:2.6.2")
Jeremy Woods24227ee2020-11-02 15:36:48 -080047 androidTestImplementation(project(":internal-testutils-navigation"), {
Jeremy Woods2a78a492021-04-12 10:57:31 -070048 exclude group: "androidx.navigation", module: "navigation-common"
Jeremy Woods24227ee2020-11-02 15:36:48 -080049 })
Jeremy Woods70f3e062024-09-23 23:06:38 +000050 androidTestImplementation(libs.junit)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070051 androidTestImplementation(libs.testCore)
52 androidTestImplementation(libs.testExtJunit)
53 androidTestImplementation(libs.testExtTruth)
54 androidTestImplementation(libs.testRunner)
55 androidTestImplementation(libs.testRules)
56 androidTestImplementation(libs.truth)
Clara Fokb333ece2024-06-14 12:33:38 -070057
Jeremy Woods70f3e062024-09-23 23:06:38 +000058 testRuntimeOnly(libs.testCore)
59 testRuntimeOnly(libs.kotlinTestJunit)
60 testImplementation(libs.junit)
Clara Fokb333ece2024-06-14 12:33:38 -070061 testImplementation(libs.testRunner)
Clara Fokb333ece2024-06-14 12:33:38 -070062 testImplementation(libs.truth)
Clara Fokb333ece2024-06-14 12:33:38 -070063 testImplementation(libs.robolectric)
Ian Lake7892d6f2018-02-14 12:12:24 -080064}
65
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070066androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040067 name = "Navigation Testing"
Omar Ismail86e66062024-05-03 16:10:50 +010068 type = LibraryType.PUBLISHED_LIBRARY
Ian Lake7892d6f2018-02-14 12:12:24 -080069 inceptionYear = "2017"
70 description = "Android Navigation-Testing"
Ian Lake7892d6f2018-02-14 12:12:24 -080071}
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070072
73android {
Aurimas Liutikas77952822024-12-04 18:00:17 -080074 namespace = "androidx.navigation.testing"
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070075}