Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [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 | 8c545f7 | 2024-08-21 17:45:15 +0100 | [diff] [blame] | 24 | |
| 25 | import androidx.build.KotlinTarget |
Aurimas Liutikas | 37e8321 | 2025-01-23 13:26:10 -0800 | [diff] [blame] | 26 | import androidx.build.SoftwareType |
Sergey Vasilinets | 15d5a9d | 2021-06-25 14:30:22 +0100 | [diff] [blame] | 27 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 28 | |
| 29 | plugins { |
| 30 | id("AndroidXPlugin") |
| 31 | id("com.android.library") |
| 32 | id("kotlin-android") |
Clara Fok | 3e77309 | 2024-04-05 14:11:45 -0700 | [diff] [blame] | 33 | alias(libs.plugins.kotlinSerialization) |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 34 | } |
| 35 | |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 36 | dependencies { |
Jeremy Woods | acd902c | 2024-09-23 23:00:38 +0000 | [diff] [blame] | 37 | api("androidx.fragment:fragment:1.6.2") |
Ian Lake | 173028c | 2020-01-22 14:34:37 -0800 | [diff] [blame] | 38 | api(project(":navigation:navigation-dynamic-features-runtime")) |
Jeremy Woods | acd902c | 2024-09-23 23:00:38 +0000 | [diff] [blame] | 39 | api(project(":navigation:navigation-common")) |
Jeremy Woods | 14523ed | 2021-04-07 09:22:44 -0700 | [diff] [blame] | 40 | api(project(":navigation:navigation-fragment")) |
Jeremy Woods | acd902c | 2024-09-23 23:00:38 +0000 | [diff] [blame] | 41 | api(project(":navigation:navigation-runtime")) |
| 42 | api(libs.playFeatureDelivery) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 43 | api(libs.kotlinStdlib) |
Jeremy Woods | acd902c | 2024-09-23 23:00:38 +0000 | [diff] [blame] | 44 | |
Clara Fok | 3e77309 | 2024-04-05 14:11:45 -0700 | [diff] [blame] | 45 | implementation(libs.kotlinSerializationCore) |
Jeremy Woods | acd902c | 2024-09-23 23:00:38 +0000 | [diff] [blame] | 46 | implementation("androidx.activity:activity:1.7.2") |
| 47 | implementation("androidx.core:core-ktx:1.2.0") |
| 48 | implementation("androidx.lifecycle:lifecycle-common:2.6.2") |
| 49 | implementation("androidx.lifecycle:lifecycle-livedata-core:2.6.2") |
| 50 | implementation("androidx.lifecycle:lifecycle-viewmodel:2.6.2") |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 51 | |
Jeremy Woods | acd902c | 2024-09-23 23:00:38 +0000 | [diff] [blame] | 52 | testRuntimeOnly(libs.testCore) |
| 53 | testRuntimeOnly(libs.testRunner) |
| 54 | testRuntimeOnly(libs.robolectric) |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 55 | |
Jeremy Woods | acd902c | 2024-09-23 23:00:38 +0000 | [diff] [blame] | 56 | androidTestImplementation(libs.junit) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 57 | androidTestImplementation(libs.testCore) |
| 58 | androidTestImplementation(libs.testExtJunit) |
| 59 | androidTestImplementation(libs.testRules) |
| 60 | androidTestImplementation(libs.testRunner) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 61 | androidTestImplementation(libs.truth) |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 62 | androidTestImplementation(project(":internal-testutils-runtime"), { |
| 63 | exclude group: "androidx.fragment", module: "fragment" |
| 64 | }) |
Jim Sproch | e238bad | 2021-03-23 16:47:15 -0700 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 68 | namespace = "androidx.navigation.dynamicfeatures.fragment" |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 69 | } |
| 70 | |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 71 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 72 | name = "Dynamic Feature Navigation Fragment" |
Aurimas Liutikas | 37e8321 | 2025-01-23 13:26:10 -0800 | [diff] [blame] | 73 | type = SoftwareType.PUBLISHED_LIBRARY |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 74 | inceptionYear = "2019" |
| 75 | description = "Android Dynamic Feature Navigation Fragment" |
Omar Ismail | 8c545f7 | 2024-08-21 17:45:15 +0100 | [diff] [blame] | 76 | kotlinTarget = KotlinTarget.KOTLIN_1_9 |
Ben Weiss | 7c1e104 | 2019-09-13 13:05:23 +0100 | [diff] [blame] | 77 | } |