Gustav Sennton | 945379a | 2017-11-03 10:16:09 +0000 | [diff] [blame] | 1 | /* |
| 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 Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 16 | |
Aurimas Liutikas | 526389b | 2018-02-27 14:01:24 -0800 | [diff] [blame] | 17 | import static androidx.build.dependencies.DependenciesKt.* |
| 18 | import androidx.build.LibraryGroups |
| 19 | import androidx.build.LibraryVersions |
Gustav Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 20 | |
| 21 | plugins { |
| 22 | id("SupportAndroidLibraryPlugin") |
| 23 | } |
| 24 | |
| 25 | dependencies { |
Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 26 | api(project(":annotation")) |
| 27 | api(project(':core')) |
Gustav Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 28 | |
Filip Pavlis | a879294 | 2018-03-08 21:01:59 +0000 | [diff] [blame] | 29 | androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso) |
Gustav Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | ext { |
| 33 | webviewBoundaryInterfacesDir = project(':webview-support-interfaces').projectDir |
| 34 | } |
Gustav Sennton | 945379a | 2017-11-03 10:16:09 +0000 | [diff] [blame] | 35 | |
| 36 | android { |
Gustav Sennton | 945379a | 2017-11-03 10:16:09 +0000 | [diff] [blame] | 37 | sourceSets { |
Gustav Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 38 | // Allow compiling the WebView support library boundary interfaces from this project. |
| 39 | main.java.srcDirs += new File(webviewBoundaryInterfacesDir, "src").getAbsolutePath() |
Gustav Sennton | 945379a | 2017-11-03 10:16:09 +0000 | [diff] [blame] | 40 | } |
| 41 | } |
| 42 | |
| 43 | supportLibrary { |
Aurimas Liutikas | 44d7d86 | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 44 | name = "WebView Support Library" |
Alan Viverette | 4d8b0fb | 2018-03-02 13:26:55 -0500 | [diff] [blame] | 45 | publish = false |
Gustav Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 46 | mavenVersion = LibraryVersions.SUPPORT_LIBRARY |
Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 47 | mavenGroup = LibraryGroups.WEBKIT |
Aurimas Liutikas | 44d7d86 | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 48 | 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 Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 50 | minSdkVersion = 21 |
Gustav Sennton | 945379a | 2017-11-03 10:16:09 +0000 | [diff] [blame] | 51 | } |