blob: 973bfa8e48b1d44aa35bc4b22efc6c6034388623 [file] [log] [blame]
Ben Weiss7b60fa72019-07-30 15:51:26 +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
Ben Weiss7b60fa72019-07-30 15:51:26 +010017import androidx.build.Publish
Oleksandr Karpovich7b8b5432021-12-29 11:49:35 +010018import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Ben Weiss7b60fa72019-07-30 15:51:26 +010019
20plugins {
21 id("AndroidXPlugin")
22 id("com.android.library")
23 id("kotlin-android")
24}
25
Ian Laked08b0da2021-04-29 15:24:15 -070026android {
27 defaultConfig {
28 multiDexEnabled true
29 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070030 namespace "androidx.navigation.dynamicfeatures"
Ian Laked08b0da2021-04-29 15:24:15 -070031}
32
Ben Weiss7b60fa72019-07-30 15:51:26 +010033dependencies {
Jeremy Woods14523ed2021-04-07 09:22:44 -070034 api(project(":navigation:navigation-runtime"))
Ian Lake207af282022-10-25 20:58:46 +000035 api(libs.playFeatureDelivery)
Ben Weiss7b60fa72019-07-30 15:51:26 +010036
Ian Laked4f6ac62021-05-06 16:51:03 -070037 testImplementation(project(":navigation:navigation-testing"))
Jeremy Woods5dc7b572023-05-01 22:46:22 +000038 testImplementation("androidx.arch.core:core-testing:2.2.0")
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070039 testImplementation(libs.testCore)
40 testImplementation(libs.testExtJunit)
41 testImplementation(libs.testRunner)
42 testImplementation(libs.junit)
Aurimas Liutikas759f9682022-10-05 07:01:37 -070043 testImplementation(libs.mockitoCore4)
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070044 testImplementation(libs.robolectric)
45 testImplementation(libs.truth)
Oleksandr Karpovich7b8b5432021-12-29 11:49:35 +010046 testImplementation(libs.kotlinCoroutinesTest)
Ben Weiss7b60fa72019-07-30 15:51:26 +010047
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070048 androidTestImplementation(libs.testCore)
49 androidTestImplementation(libs.testExtJunit)
50 androidTestImplementation(libs.testRules)
51 androidTestImplementation(libs.testRunner)
52 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy)
53 androidTestImplementation(libs.espressoCore)
54 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy)
55 androidTestImplementation(libs.truth)
56 androidTestImplementation(libs.multidex)
Ben Weissa4996f6b2021-05-25 22:24:52 +010057 androidTestImplementation(project(":internal-testutils-runtime"), {
58 exclude group: "androidx.fragment", module: "fragment"
59 })
Ben Weiss7b60fa72019-07-30 15:51:26 +010060}
61
Ben Weiss7b60fa72019-07-30 15:51:26 +010062androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040063 name = "Dynamic Feature Navigation Runtime"
Ian Lake2b0e8eb2020-01-22 15:17:14 -080064 publish = Publish.SNAPSHOT_AND_RELEASE
Ben Weiss7b60fa72019-07-30 15:51:26 +010065 inceptionYear = "2019"
Ian Lake173028c2020-01-22 14:34:37 -080066 description = "Android Dynamic Feature Navigation Runtime"
Jinseong Jeon999075e2023-08-22 00:40:11 -070067 metalavaK2UastEnabled = true
68}