blob: 06f380156e85f0f56da02b2de20ebddb85bd15b4 [file] [log] [blame]
Gustav Sennton945379a2017-11-03 10:16:09 +00001/*
2 * Copyright (C) 2017 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 */
Gustav Senntonf9916c32018-02-14 14:27:45 +000016
Aurimas Liutikas526389b2018-02-27 14:01:24 -080017import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryGroups
19import androidx.build.LibraryVersions
Gustav Senntonf9916c32018-02-14 14:27:45 +000020
21plugins {
22 id("SupportAndroidLibraryPlugin")
23}
24
25dependencies {
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080026 api(project(":annotation"))
27 api(project(':core'))
Gustav Senntonf9916c32018-02-14 14:27:45 +000028
Filip Pavlisa8792942018-03-08 21:01:59 +000029 androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso)
Gustav Senntonf9916c32018-02-14 14:27:45 +000030}
31
32ext {
33 webviewBoundaryInterfacesDir = project(':webview-support-interfaces').projectDir
34}
Gustav Sennton945379a2017-11-03 10:16:09 +000035
36android {
Gustav Sennton945379a2017-11-03 10:16:09 +000037 sourceSets {
Gustav Senntonf9916c32018-02-14 14:27:45 +000038 // Allow compiling the WebView support library boundary interfaces from this project.
39 main.java.srcDirs += new File(webviewBoundaryInterfacesDir, "src").getAbsolutePath()
Gustav Sennton945379a2017-11-03 10:16:09 +000040 }
41}
42
43supportLibrary {
Aurimas Liutikas44d7d862017-10-27 17:55:06 -070044 name = "WebView Support Library"
Alan Viverette4d8b0fb2018-03-02 13:26:55 -050045 publish = false
Gustav Senntonf9916c32018-02-14 14:27:45 +000046 mavenVersion = LibraryVersions.SUPPORT_LIBRARY
Aurimas Liutikasac5fe7c2018-03-06 14:40:53 -080047 mavenGroup = LibraryGroups.WEBKIT
Aurimas Liutikas44d7d862017-10-27 17:55:06 -070048 inceptionYear = "2017"
49 description = "The WebView Support Library is a static library you can add to your Android application in order to use android.webkit APIs that are not available for older platform versions."
Gustav Senntonf9916c32018-02-14 14:27:45 +000050 minSdkVersion = 21
Gustav Sennton945379a2017-11-03 10:16:09 +000051}