Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +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 | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +0100 | [diff] [blame] | 25 | |
| 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
| 29 | id("kotlin-android") |
Clara Fok | 2907490 | 2024-04-05 06:57:03 -0700 | [diff] [blame] | 30 | alias(libs.plugins.kotlinSerialization) |
Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +0100 | [diff] [blame] | 31 | } |
| 32 | |
Ian Lake | d08b0da | 2021-04-29 15:24:15 -0700 | [diff] [blame] | 33 | android { |
| 34 | defaultConfig { |
| 35 | multiDexEnabled true |
| 36 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 37 | namespace "androidx.navigation.dynamicfeatures" |
Ian Lake | d08b0da | 2021-04-29 15:24:15 -0700 | [diff] [blame] | 38 | } |
| 39 | |
Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +0100 | [diff] [blame] | 40 | dependencies { |
Jeremy Woods | 14523ed | 2021-04-07 09:22:44 -0700 | [diff] [blame] | 41 | api(project(":navigation:navigation-runtime")) |
Ian Lake | 207af28 | 2022-10-25 20:58:46 +0000 | [diff] [blame] | 42 | api(libs.playFeatureDelivery) |
Clara Fok | 2907490 | 2024-04-05 06:57:03 -0700 | [diff] [blame] | 43 | implementation(libs.kotlinSerializationCore) |
Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +0100 | [diff] [blame] | 44 | |
Ian Lake | d4f6ac6 | 2021-05-06 16:51:03 -0700 | [diff] [blame] | 45 | testImplementation(project(":navigation:navigation-testing")) |
Jeremy Woods | 5dc7b57 | 2023-05-01 22:46:22 +0000 | [diff] [blame] | 46 | testImplementation("androidx.arch.core:core-testing:2.2.0") |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 47 | testImplementation(libs.testCore) |
| 48 | testImplementation(libs.testExtJunit) |
| 49 | testImplementation(libs.testRunner) |
| 50 | testImplementation(libs.junit) |
Aurimas Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 51 | testImplementation(libs.mockitoCore4) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 52 | testImplementation(libs.robolectric) |
| 53 | testImplementation(libs.truth) |
Oleksandr Karpovich | 7b8b543 | 2021-12-29 11:49:35 +0100 | [diff] [blame] | 54 | testImplementation(libs.kotlinCoroutinesTest) |
Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +0100 | [diff] [blame] | 55 | |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 56 | androidTestImplementation(libs.testCore) |
| 57 | androidTestImplementation(libs.testExtJunit) |
| 58 | androidTestImplementation(libs.testRules) |
| 59 | androidTestImplementation(libs.testRunner) |
| 60 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) |
| 61 | androidTestImplementation(libs.espressoCore) |
| 62 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) |
| 63 | androidTestImplementation(libs.truth) |
| 64 | androidTestImplementation(libs.multidex) |
Ben Weiss | a4996f6b | 2021-05-25 22:24:52 +0100 | [diff] [blame] | 65 | androidTestImplementation(project(":internal-testutils-runtime"), { |
| 66 | exclude group: "androidx.fragment", module: "fragment" |
| 67 | }) |
Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +0100 | [diff] [blame] | 68 | } |
| 69 | |
Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +0100 | [diff] [blame] | 70 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 71 | name = "Dynamic Feature Navigation Runtime" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 72 | type = LibraryType.PUBLISHED_LIBRARY |
Ben Weiss | 7b60fa7 | 2019-07-30 15:51:26 +0100 | [diff] [blame] | 73 | inceptionYear = "2019" |
Ian Lake | 173028c | 2020-01-22 14:34:37 -0800 | [diff] [blame] | 74 | description = "Android Dynamic Feature Navigation Runtime" |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 75 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame^] | 76 | legacyDisableKotlinStrictApiMode = true |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 77 | } |