1// 2// Copyright (C) 2014 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 17// Install the prebuilt webview apk. 18package { 19 default_applicable_licenses: ["external_chromium-webview_license"], 20} 21 22// Added automatically by a large-scale-change 23// See: http://go/android-license-faq 24license { 25 name: "external_chromium-webview_license", 26 visibility: [":__subpackages__"], 27 license_kinds: [ 28 "SPDX-license-identifier-Unicode-DFS", 29 ], 30 // large-scale-change unable to identify any license_text files 31} 32 33soong_config_module_type { 34 name: "webview_app_import", 35 module_type: "android_app_import", 36 config_namespace: "webview", 37 value_variables: [ 38 "release_package_webview_version", 39 ], 40 properties: [ 41 "arch.arm.apk", 42 "arch.arm64.apk", 43 "arch.x86.apk", 44 "arch.x86_64.apk", 45 ], 46} 47 48webview_app_import { 49 name: "webview", 50 product_specific: true, 51 default_dev_cert: true, 52 required: [ 53 "libwebviewchromium_loader", 54 "libwebviewchromium_plat_support", 55 ], 56 soong_config_variables: { 57 release_package_webview_version: { 58 arch: { 59 arm: { 60 apk: "%s/arm/webview.apk", 61 }, 62 arm64: { 63 apk: "%s/arm64/webview.apk", 64 }, 65 x86: { 66 apk: "%s/x86/webview.apk", 67 }, 68 x86_64: { 69 apk: "%s/x86_64/webview.apk", 70 }, 71 }, 72 }, 73 }, 74 optional_uses_libs: [ 75 "androidx.window.extensions", 76 "android.ext.adservices", 77 ], 78} 79