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_team: "trendy_team_fwk_core_networking", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22java_defaults { 23 name: "CaptivePortalLoginDefaults", 24 srcs: ["src/**/*.java"], 25 sdk_version: "module_current", 26 min_sdk_version: "30", 27 target_sdk_version: "35", // Keep in sync with CaptivePortalLoginTests 28 static_libs: [ 29 "androidx.annotation_annotation", 30 "androidx.legacy_legacy-support-core-ui", 31 "captiveportal-lib", 32 "metrics-constants-protos", 33 "net-utils-device-common", 34 ], 35 libs: [ 36 "framework-connectivity", 37 "framework-mediaprovider", 38 "framework-wifi", 39 ], 40 manifest: "AndroidManifest.xml", 41 lint: { 42 strict_updatability_linting: true, 43 }, 44 optimize: { 45 ignore_warnings: false, 46 }, 47} 48 49android_app { 50 name: "CaptivePortalLogin", 51 defaults: ["CaptivePortalLoginDefaults"], 52 certificate: "networkstack", 53 updatable: true, 54} 55 56android_library { 57 name: "CaptivePortalLoginTestLib", 58 defaults: ["CaptivePortalLoginDefaults"], 59 static_libs: ["net-tests-utils"], 60 lint: { 61 strict_updatability_linting: true, 62 }, 63} 64 65// Alternative CaptivePortalLogin signed with the platform cert, to use 66// with InProcessNetworkStack. 67android_app { 68 name: "PlatformCaptivePortalLogin", 69 defaults: ["CaptivePortalLoginDefaults"], 70 certificate: "platform", 71 overrides: ["CaptivePortalLogin"], 72 lint: { 73 strict_updatability_linting: true, 74 }, 75} 76