blob: 0f4608e36b4810d92b66bf33f7f6998312b98bb6 [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
Aurimas Liutikas175b74c2017-11-28 15:58:40 -080017import static android.support.dependencies.DependenciesKt.*
Aurimas Liutikas36709112017-11-08 23:28:50 +000018import android.support.LibraryGroups
Sergey Vasilinetseb9d04ce2017-09-18 15:59:33 -070019import android.support.LibraryVersions
20import android.support.SupportLibraryExtension
21
Aurimas Liutikas3ba86932017-11-07 03:46:07 +000022plugins {
23 id("SupportAndroidLibraryPlugin")
24}
Adam Powellb15ee752017-01-20 16:47:59 -080025
26android {
Adam Powellb15ee752017-01-20 16:47:59 -080027 defaultConfig {
28 minSdkVersion flatfoot.min_sdk
Adam Powellb15ee752017-01-20 16:47:59 -080029 }
Adam Powellb15ee752017-01-20 16:47:59 -080030}
31
32dependencies {
Aurimas Liutikas0fc74c12017-11-28 15:28:01 -080033 api(SUPPORT_CORE_UTILS)
34 api(SUPPORT_FRAGMENTS)
Adam Powellb15ee752017-01-20 16:47:59 -080035
Aurimas Liutikas175b74c2017-11-28 15:58:40 -080036 testImplementation(JUNIT)
37 testImplementation(MOCKITO_CORE)
38 testImplementation(TEST_RUNNER, libs.exclude_annotations)
Ian Lake1ed814b52017-05-24 16:04:44 -070039
Aurimas Liutikas175b74c2017-11-28 15:58:40 -080040 androidTestImplementation(TEST_RUNNER, libs.exclude_annotations)
41 androidTestImplementation(ESPRESSO_CORE, libs.exclude_annotations)
Adam Powellb15ee752017-01-20 16:47:59 -080042}
43
Sergey Vasilinets16e05dc2017-11-30 15:03:51 -080044//used by testCompile safe-args-generator
45android.libraryVariants.all { variant ->
46 def name = variant.buildType.name
47 def suffix = name.capitalize()
48 project.tasks.create(name: "jar${suffix}", type: Jar){
49 dependsOn variant.javaCompile
50 from variant.javaCompile.destinationDir
51 destinationDir new File(project.buildDir, "libJar")
52 }
53}
54
Sergey Vasilinetseb9d04ce2017-09-18 15:59:33 -070055supportLibrary {
Aurimas Liutikas36709112017-11-08 23:28:50 +000056 name = "Android Navigation Runtime"
57 publish = true
Aurimas Liutikasc0ba6c72017-11-09 16:49:08 -080058 mavenVersion = LibraryVersions.NAVIGATION
Aurimas Liutikas36709112017-11-08 23:28:50 +000059 mavenGroup = LibraryGroups.NAVIGATION
60 inceptionYear = "2017"
61 description = "Android Navigation-Runtime"
62 url = SupportLibraryExtension.ARCHITECTURE_URL
Sergey Vasilinetseb9d04ce2017-09-18 15:59:33 -070063}