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