blob: b37a9b973a6321d17f79427890a2917f32af10c3 [file] [log] [blame]
Adam Powellb15ee752017-01-20 16:47:59 -08001/*
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 */
Sergey Vasilinetseb9d04ce2017-09-18 15:59:33 -070016
Sergey Vasilinets98971a72018-04-18 10:33:33 -070017import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryGroups
19import androidx.build.LibraryVersions
Aurimas Liutikasb63ef632019-04-01 04:37:49 -070020import androidx.build.AndroidXExtension
Sergey Vasilinetseb9d04ce2017-09-18 15:59:33 -070021
Aurimas Liutikas3ba86932017-11-07 03:46:07 +000022plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010023 id("AndroidXPlugin")
24 id("com.android.library")
Ian Lakefc54de32018-08-22 15:47:17 -070025 id("kotlin-android")
Aurimas Liutikas3ba86932017-11-07 03:46:07 +000026}
Adam Powellb15ee752017-01-20 16:47:59 -080027
Jake Whartona74eeec2018-08-04 03:06:13 -040028android {
29 lintOptions {
30 fatal("UnknownNullness")
31 }
32}
33
Adam Powellb15ee752017-01-20 16:47:59 -080034dependencies {
Ian Lakec4ae7e62018-04-12 14:36:09 -070035 api(project(":navigation:navigation-common"))
jbwoods1e09fdb2019-03-25 22:36:00 -070036 api(project(":lifecycle:lifecycle-viewmodel"))
Adam Powellb15ee752017-01-20 16:47:59 -080037
Aurimas Liutikas175b74c2017-11-28 15:58:40 -080038 testImplementation(JUNIT)
39 testImplementation(MOCKITO_CORE)
Alan Viverettebadf2f82018-12-18 12:14:10 -050040 testImplementation(TEST_EXT_JUNIT)
41 testImplementation(TEST_CORE)
Aurimas Liutikas544a1d72018-01-31 15:30:19 -080042 testImplementation(TEST_RUNNER)
Ian Lake1ed814b52017-05-24 16:04:44 -070043
Ian Lake7a55d722018-10-12 10:07:44 -070044 androidTestImplementation(project(":navigation:navigation-testing"))
Alan Viverettebadf2f82018-12-18 12:14:10 -050045 androidTestImplementation(TEST_EXT_JUNIT)
46 androidTestImplementation(TEST_CORE)
Aurimas Liutikas544a1d72018-01-31 15:30:19 -080047 androidTestImplementation(TEST_RUNNER)
Ian Lakefc54de32018-08-22 15:47:17 -070048 androidTestImplementation(TEST_RULES)
Aurimas Liutikas544a1d72018-01-31 15:30:19 -080049 androidTestImplementation(ESPRESSO_CORE)
Ian Lake3dce08c2018-11-20 14:50:11 -080050 androidTestImplementation(TRUTH)
Ian Lakefc54de32018-08-22 15:47:17 -070051 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy)
52 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy)
53 androidTestImplementation(KOTLIN_STDLIB)
Adam Powellb15ee752017-01-20 16:47:59 -080054}
55
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070056androidx {
Aurimas Liutikas36709112017-11-08 23:28:50 +000057 name = "Android Navigation Runtime"
Ian Lake7a092bb2018-04-30 21:58:10 -070058 publish = true
Aurimas Liutikasc0ba6c72017-11-09 16:49:08 -080059 mavenVersion = LibraryVersions.NAVIGATION
Aurimas Liutikas36709112017-11-08 23:28:50 +000060 mavenGroup = LibraryGroups.NAVIGATION
61 inceptionYear = "2017"
62 description = "Android Navigation-Runtime"
Aurimas Liutikasb63ef632019-04-01 04:37:49 -070063 url = AndroidXExtension.ARCHITECTURE_URL
Sergey Vasilinets98971a72018-04-18 10:33:33 -070064}