Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 1 | /* |
| 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 Vasilinets | eb9d04ce | 2017-09-18 15:59:33 -0700 | [diff] [blame] | 16 | |
Aurimas Liutikas | 175b74c | 2017-11-28 15:58:40 -0800 | [diff] [blame] | 17 | import static android.support.dependencies.DependenciesKt.* |
Aurimas Liutikas | 3670911 | 2017-11-08 23:28:50 +0000 | [diff] [blame] | 18 | import android.support.LibraryGroups |
Sergey Vasilinets | eb9d04ce | 2017-09-18 15:59:33 -0700 | [diff] [blame] | 19 | import android.support.LibraryVersions |
| 20 | import android.support.SupportLibraryExtension |
| 21 | |
Aurimas Liutikas | 3ba8693 | 2017-11-07 03:46:07 +0000 | [diff] [blame] | 22 | plugins { |
| 23 | id("SupportAndroidLibraryPlugin") |
| 24 | } |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 25 | |
| 26 | android { |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 27 | defaultConfig { |
| 28 | minSdkVersion flatfoot.min_sdk |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 29 | } |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | dependencies { |
Aurimas Liutikas | 0fc74c1 | 2017-11-28 15:28:01 -0800 | [diff] [blame^] | 33 | api(SUPPORT_CORE_UTILS) |
| 34 | api(SUPPORT_FRAGMENTS) |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 35 | |
Aurimas Liutikas | 175b74c | 2017-11-28 15:58:40 -0800 | [diff] [blame] | 36 | testImplementation(JUNIT) |
| 37 | testImplementation(MOCKITO_CORE) |
| 38 | testImplementation(TEST_RUNNER, libs.exclude_annotations) |
Ian Lake | 1ed814b5 | 2017-05-24 16:04:44 -0700 | [diff] [blame] | 39 | |
Aurimas Liutikas | 175b74c | 2017-11-28 15:58:40 -0800 | [diff] [blame] | 40 | androidTestImplementation(TEST_RUNNER, libs.exclude_annotations) |
| 41 | androidTestImplementation(ESPRESSO_CORE, libs.exclude_annotations) |
Adam Powell | b15ee75 | 2017-01-20 16:47:59 -0800 | [diff] [blame] | 42 | } |
| 43 | |
Sergey Vasilinets | 16e05dc | 2017-11-30 15:03:51 -0800 | [diff] [blame] | 44 | //used by testCompile safe-args-generator |
| 45 | android.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 Vasilinets | eb9d04ce | 2017-09-18 15:59:33 -0700 | [diff] [blame] | 55 | supportLibrary { |
Aurimas Liutikas | 3670911 | 2017-11-08 23:28:50 +0000 | [diff] [blame] | 56 | name = "Android Navigation Runtime" |
| 57 | publish = true |
Aurimas Liutikas | c0ba6c7 | 2017-11-09 16:49:08 -0800 | [diff] [blame] | 58 | mavenVersion = LibraryVersions.NAVIGATION |
Aurimas Liutikas | 3670911 | 2017-11-08 23:28:50 +0000 | [diff] [blame] | 59 | mavenGroup = LibraryGroups.NAVIGATION |
| 60 | inceptionYear = "2017" |
| 61 | description = "Android Navigation-Runtime" |
| 62 | url = SupportLibraryExtension.ARCHITECTURE_URL |
Sergey Vasilinets | eb9d04ce | 2017-09-18 15:59:33 -0700 | [diff] [blame] | 63 | } |