1// 2// Copyright (C) 2019 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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21java_defaults { 22 name: "CaptivePortalLoginDefaults", 23 srcs: ["src/**/*.java"], 24 sdk_version: "system_current", 25 min_sdk_version: "29", 26 target_sdk_version: "30", 27 static_libs: [ 28 "androidx.annotation_annotation", 29 "androidx.legacy_legacy-support-v4", 30 "metrics-constants-protos", 31 "captiveportal-lib", 32 ], 33 manifest: "AndroidManifest.xml", 34 plugins: ["java_api_finder"], 35} 36 37android_app { 38 name: "CaptivePortalLogin", 39 defaults: ["CaptivePortalLoginDefaults"], 40 certificate: "networkstack", 41 updatable: true, 42} 43 44android_library { 45 name: "CaptivePortalLoginTestLib", 46 defaults: ["CaptivePortalLoginDefaults"], 47} 48 49// Alternative CaptivePortalLogin signed with the platform cert, to use 50// with InProcessNetworkStack. 51android_app { 52 name: "PlatformCaptivePortalLogin", 53 defaults: ["CaptivePortalLoginDefaults"], 54 certificate: "platform", 55 overrides: ["CaptivePortalLogin"], 56} 57