Adam Powell | b15ee75 | 2017-01-20 16:47:59 -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 | */ |
Sergey Vasilinets | eb9d04ce | 2017-09-18 15:59:33 -0700 | [diff] [blame] | 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 | 8c545f7 | 2024-08-21 17:45:15 +0100 | [diff] [blame] | 24 | |
| 25 | import androidx.build.KotlinTarget |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 26 | import androidx.build.LibraryType |
Sergey Vasilinets | eb9d04ce | 2017-09-18 15:59:33 -0700 | [diff] [blame] | 27 | |
Aurimas Liutikas | 3ba8693 | 2017-11-07 03:46:07 +0000 | [diff] [blame] | 28 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 29 | id("AndroidXPlugin") |
| 30 | id("com.android.library") |
Ian Lake | fc54de3 | 2018-08-22 15:47:17 -0700 | [diff] [blame] | 31 | id("kotlin-android") |
Clara Fok | fccd74a | 2024-03-19 10:32:54 -0700 | [diff] [blame] | 32 | alias(libs.plugins.kotlinSerialization) |
Aurimas Liutikas | 3ba8693 | 2017-11-07 03:46:07 +0000 | [diff] [blame] | 33 | } |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 34 | |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 35 | dependencies { |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 36 | api(libs.kotlinStdlib) |
| 37 | api(libs.kotlinCoroutinesCore) |
Jeremy Woods | 14523ed | 2021-04-07 09:22:44 -0700 | [diff] [blame] | 38 | api(project(":navigation:navigation-common")) |
Jeremy Woods | 251cbde | 2023-05-03 11:19:43 -0700 | [diff] [blame] | 39 | api("androidx.activity:activity-ktx:1.7.1") |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 40 | api("androidx.core:core-ktx:1.8.0") |
| 41 | api("androidx.lifecycle:lifecycle-common:2.6.2") |
Jeremy Woods | 13796a2 | 2023-08-30 15:10:01 +0000 | [diff] [blame] | 42 | api("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2") |
| 43 | api("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2") |
Jinseong Jeon | 89e0533 | 2024-07-04 18:35:02 -0700 | [diff] [blame] | 44 | api("androidx.annotation:annotation-experimental:1.4.1") |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 45 | |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 46 | 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 Fraschilla | 1c2fe046 | 2019-11-20 12:52:04 -0800 | [diff] [blame] | 54 | androidTestImplementation(project(":internal-testutils-navigation")) |
Faelyn O'Grady | 793e098 | 2021-07-21 13:24:24 -0700 | [diff] [blame] | 55 | androidTestImplementation(project(":internal-testutils-runtime")) |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 56 | androidTestImplementation(libs.hamcrestCore) |
| 57 | androidTestImplementation(libs.junit) |
| 58 | androidTestImplementation(libs.kotlinTest) |
| 59 | androidTestImplementation(libs.testCore) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 60 | androidTestImplementation(libs.testExtJunit) |
| 61 | androidTestImplementation(libs.testExtTruth) |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 62 | androidTestImplementation(libs.testMonitor) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 63 | androidTestImplementation(libs.testRunner) |
| 64 | androidTestImplementation(libs.testRules) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 65 | androidTestImplementation(libs.espressoIntents) |
| 66 | androidTestImplementation(libs.truth) |
Aurimas Liutikas | 1a31ba6 | 2024-08-30 12:49:00 -0700 | [diff] [blame] | 67 | androidTestImplementation(libs.dexmakerMockito) |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 68 | androidTestImplementation(libs.mockitoCore) |
Julia McClellan | cd77b4b | 2022-04-14 15:31:46 -0400 | [diff] [blame] | 69 | |
Jeremy Woods | 70f3e06 | 2024-09-23 23:06:38 +0000 | [diff] [blame] | 70 | lintPublish(project(":navigation:navigation-runtime-lint")) |
Alan Viverette | ac702b8 | 2021-07-30 14:20:02 -0400 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 74 | namespace = "androidx.navigation" |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 75 | } |
| 76 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 77 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 78 | name = "Navigation Runtime" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 79 | type = LibraryType.PUBLISHED_LIBRARY |
Aurimas Liutikas | 3670911 | 2017-11-08 23:28:50 +0000 | [diff] [blame] | 80 | inceptionYear = "2017" |
| 81 | description = "Android Navigation-Runtime" |
Omar Ismail | 8c545f7 | 2024-08-21 17:45:15 +0100 | [diff] [blame] | 82 | kotlinTarget = KotlinTarget.KOTLIN_1_9 |
Sergey Vasilinets | 98971a7 | 2018-04-18 10:33:33 -0700 | [diff] [blame] | 83 | } |