1d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake/*
2d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * Copyright (C) 2018 The Android Open Source Project
3d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake *
4d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * Licensed under the Apache License, Version 2.0 (the "License");
5d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * you may not use this file except in compliance with the License.
6d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * You may obtain a copy of the License at
7d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake *
8d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake *      http://www.apache.org/licenses/LICENSE-2.0
9d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake *
10d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * Unless required by applicable law or agreed to in writing, software
11d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * distributed under the License is distributed on an "AS IS" BASIS,
12d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * See the License for the specific language governing permissions and
14d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake * limitations under the License.
15d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake */
16d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake
1798971a7d72d56aeaf5d997ab251629e2550f350cSergey Vasilinetsimport static androidx.build.dependencies.DependenciesKt.*
1898971a7d72d56aeaf5d997ab251629e2550f350cSergey Vasilinetsimport androidx.build.LibraryGroups
1998971a7d72d56aeaf5d997ab251629e2550f350cSergey Vasilinetsimport androidx.build.LibraryVersions
2098971a7d72d56aeaf5d997ab251629e2550f350cSergey Vasilinetsimport androidx.build.SupportLibraryExtension
21d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake
22d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lakeplugins {
23d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    id("SupportAndroidLibraryPlugin")
24d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    id("org.jetbrains.kotlin.android")
25d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake}
26d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake
27d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lakeandroid {
28d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    buildTypes {
29d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake        debug {
30d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake            testCoverageEnabled = false // Breaks Kotlin compiler.
31d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake        }
32d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    }
33d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake}
34d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake
35d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lakedependencies {
36c4ae7e64c1213a29c82d34c54084e8feb385f24bIan Lake    api(project(":navigation:navigation-testing"))
3769043757650b0a279db9a88c89c7fb5ab071c664Ian Lake    // Ensure that the -ktx dependency graph mirrors the Java dependency graph
38c4ae7e64c1213a29c82d34c54084e8feb385f24bIan Lake    api(project(":navigation:navigation-common-ktx"))
39d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    api(KOTLIN_STDLIB)
40d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake
41d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    testImplementation(JUNIT)
42d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    testImplementation(TEST_RUNNER)
43132f050cea59fa19b1b187c0283310839e323774Ian Lake    androidTestImplementation(TEST_RUNNER)
44132f050cea59fa19b1b187c0283310839e323774Ian Lake    androidTestImplementation(ESPRESSO_CORE)
45d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake}
46d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake
47d5873f6c25a7e77e75b7ab761db747f731f05e6cIan LakesupportLibrary {
48d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    name = "Android Navigation Testing Kotlin Extensions"
497a092bb498053ca62edb02e790cf93ee105a9175Ian Lake    publish = true
50d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    mavenVersion = LibraryVersions.NAVIGATION
51d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    mavenGroup = LibraryGroups.NAVIGATION
52d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    inceptionYear = "2018"
53d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    description = "Android Navigation-Testing-Ktx"
54d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake    url = SupportLibraryExtension.ARCHITECTURE_URL
55d5873f6c25a7e77e75b7ab761db747f731f05e6cIan Lake}
56