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 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 */ 24import androidx.build.SoftwareType 25 26plugins { 27 id("AndroidXPlugin") 28 id("com.android.library") 29 id("org.jetbrains.kotlin.android") 30 alias(libs.plugins.kotlinSerialization) 31} 32 33android { 34 namespace = "androidx.navigation.dynamicfeatures" 35} 36 37dependencies { 38 api(libs.playFeatureDelivery) 39 api("androidx.lifecycle:lifecycle-livedata-core:2.6.2") 40 api(project(":navigation:navigation-common")) 41 api(project(":navigation:navigation-runtime")) 42 43 implementation("androidx.core:core-ktx:1.2.0") 44 implementation(libs.kotlinSerializationCore) 45 46 testRuntimeOnly(libs.testCore) 47 testRuntimeOnly(libs.testRunner) 48 testRuntimeOnly(libs.robolectric) 49 50 testImplementation(project(":navigation:navigation-testing")) 51 testImplementation("androidx.arch.core:core-testing:2.2.0") 52 testImplementation(libs.junit) 53 testImplementation(libs.mockitoCore4) 54 testImplementation(libs.truth) 55 testImplementation(libs.kotlinCoroutinesCore) 56 testImplementation(libs.kotlinCoroutinesTest) 57 58 androidTestImplementation("androidx.annotation:annotation:1.7.0") 59 androidTestImplementation(libs.dexmakerMockito) 60 androidTestImplementation(libs.junit) 61 androidTestImplementation(libs.mockitoCore) 62 androidTestImplementation(libs.testCore) 63 androidTestImplementation(libs.testExtJunit) 64 androidTestImplementation(libs.testRunner) 65 androidTestImplementation(libs.truth) 66 androidTestImplementation(project(":internal-testutils-runtime"), { 67 exclude group: "androidx.fragment", module: "fragment" 68 }) 69} 70 71androidx { 72 name = "Dynamic Feature Navigation Runtime" 73 type = SoftwareType.PUBLISHED_LIBRARY 74 inceptionYear = "2019" 75 description = "Android Dynamic Feature Navigation Runtime" 76} 77