blob: 6d8aa97d7e92b59f400933105c475e70974dff2d [file] [log] [blame]
Ben Weiss7c1e1042019-09-13 13:05:23 +01001/*
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 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
Aurimas Liutikas37e83212025-01-23 13:26:10 -080026import androidx.build.SoftwareType
Sergey Vasilinets15d5a9d2021-06-25 14:30:22 +010027import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Ben Weiss7c1e1042019-09-13 13:05:23 +010028
29plugins {
30 id("AndroidXPlugin")
31 id("com.android.library")
32 id("kotlin-android")
Clara Fok3e773092024-04-05 14:11:45 -070033 alias(libs.plugins.kotlinSerialization)
Ben Weiss7c1e1042019-09-13 13:05:23 +010034}
35
Ben Weiss7c1e1042019-09-13 13:05:23 +010036dependencies {
Jeremy Woodsacd902c2024-09-23 23:00:38 +000037 api("androidx.fragment:fragment:1.6.2")
Ian Lake173028c2020-01-22 14:34:37 -080038 api(project(":navigation:navigation-dynamic-features-runtime"))
Jeremy Woodsacd902c2024-09-23 23:00:38 +000039 api(project(":navigation:navigation-common"))
Jeremy Woods14523ed2021-04-07 09:22:44 -070040 api(project(":navigation:navigation-fragment"))
Jeremy Woodsacd902c2024-09-23 23:00:38 +000041 api(project(":navigation:navigation-runtime"))
42 api(libs.playFeatureDelivery)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070043 api(libs.kotlinStdlib)
Jeremy Woodsacd902c2024-09-23 23:00:38 +000044
Clara Fok3e773092024-04-05 14:11:45 -070045 implementation(libs.kotlinSerializationCore)
Jeremy Woodsacd902c2024-09-23 23:00:38 +000046 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 Weiss7c1e1042019-09-13 13:05:23 +010051
Jeremy Woodsacd902c2024-09-23 23:00:38 +000052 testRuntimeOnly(libs.testCore)
53 testRuntimeOnly(libs.testRunner)
54 testRuntimeOnly(libs.robolectric)
Ben Weiss7c1e1042019-09-13 13:05:23 +010055
Jeremy Woodsacd902c2024-09-23 23:00:38 +000056 androidTestImplementation(libs.junit)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070057 androidTestImplementation(libs.testCore)
58 androidTestImplementation(libs.testExtJunit)
59 androidTestImplementation(libs.testRules)
60 androidTestImplementation(libs.testRunner)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070061 androidTestImplementation(libs.truth)
Jim Sproch9e38b4f2021-01-06 14:21:06 -080062 androidTestImplementation(project(":internal-testutils-runtime"), {
63 exclude group: "androidx.fragment", module: "fragment"
64 })
Jim Sproche238bad2021-03-23 16:47:15 -070065}
66
67android {
Aurimas Liutikas77952822024-12-04 18:00:17 -080068 namespace = "androidx.navigation.dynamicfeatures.fragment"
Ben Weiss7c1e1042019-09-13 13:05:23 +010069}
70
Ben Weiss7c1e1042019-09-13 13:05:23 +010071androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040072 name = "Dynamic Feature Navigation Fragment"
Aurimas Liutikas37e83212025-01-23 13:26:10 -080073 type = SoftwareType.PUBLISHED_LIBRARY
Ben Weiss7c1e1042019-09-13 13:05:23 +010074 inceptionYear = "2019"
75 description = "Android Dynamic Feature Navigation Fragment"
Omar Ismail8c545f72024-08-21 17:45:15 +010076 kotlinTarget = KotlinTarget.KOTLIN_1_9
Ben Weiss7c1e1042019-09-13 13:05:23 +010077}