blob: 347d0cf56cecaa9d002b50087d1909280fafe199 [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 }
30}
31
Ben Weiss7b60fa72019-07-30 15:51:26 +010032dependencies {
Jeremy Woods14523ed2021-04-07 09:22:44 -070033 api(project(":navigation:navigation-runtime"))
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070034 api(libs.playCore)
Ben Weiss7b60fa72019-07-30 15:51:26 +010035
Ian Laked4f6ac62021-05-06 16:51:03 -070036 testImplementation(project(":navigation:navigation-testing"))
37 testImplementation("androidx.arch.core:core-testing:2.1.0")
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070038 testImplementation(libs.testCore)
39 testImplementation(libs.testExtJunit)
40 testImplementation(libs.testRunner)
41 testImplementation(libs.junit)
42 testImplementation(libs.mockitoCore)
43 testImplementation(libs.robolectric)
44 testImplementation(libs.truth)
Oleksandr Karpovich7b8b5432021-12-29 11:49:35 +010045 testImplementation(libs.kotlinCoroutinesTest)
Ben Weiss7b60fa72019-07-30 15:51:26 +010046
Aurimas Liutikasbc1dbeb2021-05-04 13:36:59 -070047 androidTestImplementation(libs.testCore)
48 androidTestImplementation(libs.testExtJunit)
49 androidTestImplementation(libs.testRules)
50 androidTestImplementation(libs.testRunner)
51 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy)
52 androidTestImplementation(libs.espressoCore)
53 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy)
54 androidTestImplementation(libs.truth)
55 androidTestImplementation(libs.multidex)
Ben Weissa4996f6b2021-05-25 22:24:52 +010056 androidTestImplementation(project(":internal-testutils-runtime"), {
57 exclude group: "androidx.fragment", module: "fragment"
58 })
Ben Weiss7b60fa72019-07-30 15:51:26 +010059}
60
Ben Weiss7b60fa72019-07-30 15:51:26 +010061androidx {
Ian Lake173028c2020-01-22 14:34:37 -080062 name = "Android Dynamic Feature Navigation Runtime"
Ian Lake2b0e8eb2020-01-22 15:17:14 -080063 publish = Publish.SNAPSHOT_AND_RELEASE
Ben Weiss7b60fa72019-07-30 15:51:26 +010064 mavenGroup = LibraryGroups.NAVIGATION
65 inceptionYear = "2019"
Ian Lake173028c2020-01-22 14:34:37 -080066 description = "Android Dynamic Feature Navigation Runtime"
Ben Weiss7b60fa72019-07-30 15:51:26 +010067}
Oleksandr Karpovich7b8b5432021-12-29 11:49:35 +010068
69tasks.withType(KotlinCompile).configureEach {
70 kotlinOptions {
71 freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
72 }
73}