[go: nahoru, domu]

blob: c876a6f3d8f673f3f7b01153443b45166ab09af5 [file] [log] [blame]
Ian Lake7892d6f2018-02-14 12:12:24 -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 */
16
17import static android.support.dependencies.DependenciesKt.*
18import android.support.LibraryGroups
19import android.support.LibraryVersions
20import android.support.SupportLibraryExtension
21
22plugins {
23 id("SupportAndroidLibraryPlugin")
24}
25
26dependencies {
27 api(SUPPORT_COMPAT)
28
29 testImplementation(JUNIT)
30 testImplementation(MOCKITO_CORE)
31 testImplementation(TEST_RUNNER)
32
33 androidTestImplementation(TEST_RUNNER)
34 androidTestImplementation(ESPRESSO_CORE)
35}
36
37//used by testCompile safe-args-generator
38android.libraryVariants.all { variant ->
39 def name = variant.buildType.name
40 def suffix = name.capitalize()
41 project.tasks.create(name: "jar${suffix}", type: Jar){
42 dependsOn variant.javaCompile
43 from variant.javaCompile.destinationDir
44 destinationDir new File(project.buildDir, "libJar")
45 }
46}
47
48supportLibrary {
49 name = "Android Navigation Common"
50 publish = true
51 mavenVersion = LibraryVersions.NAVIGATION
52 mavenGroup = LibraryGroups.NAVIGATION
53 inceptionYear = "2017"
54 description = "Android Navigation-Common"
55 url = SupportLibraryExtension.ARCHITECTURE_URL
56}