Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 1 | /* |
Ian Lake | 7a55d72 | 2018-10-12 10:07:44 -0700 | [diff] [blame] | 2 | * Copyright 2018 The Android Open Source Project |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 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 | 7a55d72 | 2018-10-12 10:07:44 -0700 | [diff] [blame] | 29 | id("org.jetbrains.kotlin.android") |
Clara Fok | f519616 | 2024-05-07 15:51:15 -0700 | [diff] [blame] | 30 | alias(libs.plugins.kotlinSerialization) |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | dependencies { |
Jeremy Woods | 2a78a49 | 2021-04-12 10:57:31 -0700 | [diff] [blame] | 34 | api(project(":navigation:navigation-runtime")) |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 35 | api("androidx.lifecycle:lifecycle-runtime-testing:2.6.2") |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 36 | |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 37 | 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 Woods | 24227ee | 2020-11-02 15:36:48 -0800 | [diff] [blame] | 47 | androidTestImplementation(project(":internal-testutils-navigation"), { |
Jeremy Woods | 2a78a49 | 2021-04-12 10:57:31 -0700 | [diff] [blame] | 48 | exclude group: "androidx.navigation", module: "navigation-common" |
Jeremy Woods | 24227ee | 2020-11-02 15:36:48 -0800 | [diff] [blame] | 49 | }) |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 50 | androidTestImplementation(libs.junit) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 51 | androidTestImplementation(libs.testCore) |
| 52 | androidTestImplementation(libs.testExtJunit) |
| 53 | androidTestImplementation(libs.testExtTruth) |
| 54 | androidTestImplementation(libs.testRunner) |
| 55 | androidTestImplementation(libs.testRules) |
| 56 | androidTestImplementation(libs.truth) |
Clara Fok | b333ece | 2024-06-14 12:33:38 -0700 | [diff] [blame] | 57 | |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 58 | testRuntimeOnly(libs.testCore) |
| 59 | testRuntimeOnly(libs.kotlinTestJunit) |
| 60 | testImplementation(libs.junit) |
Clara Fok | b333ece | 2024-06-14 12:33:38 -0700 | [diff] [blame] | 61 | testImplementation(libs.testRunner) |
Clara Fok | b333ece | 2024-06-14 12:33:38 -0700 | [diff] [blame] | 62 | testImplementation(libs.truth) |
Clara Fok | b333ece | 2024-06-14 12:33:38 -0700 | [diff] [blame] | 63 | testImplementation(libs.robolectric) |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 64 | } |
| 65 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 66 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 67 | name = "Navigation Testing" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 68 | type = LibraryType.PUBLISHED_LIBRARY |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 69 | inceptionYear = "2017" |
| 70 | description = "Android Navigation-Testing" |
Ian Lake | 7892d6f | 2018-02-14 12:12:24 -0800 | [diff] [blame] | 71 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 72 | |
| 73 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 74 | namespace = "androidx.navigation.testing" |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 75 | } |