• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: "33", // Keep in sync with CaptivePortalLoginTests
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    lint: { strict_updatability_linting: true }
36}
37
38android_app {
39    name: "CaptivePortalLogin",
40    defaults: ["CaptivePortalLoginDefaults"],
41    certificate: "networkstack",
42    updatable: true,
43}
44
45android_library {
46    name: "CaptivePortalLoginTestLib",
47    defaults: ["CaptivePortalLoginDefaults"],
48    lint: { strict_updatability_linting: true }
49}
50
51// Alternative CaptivePortalLogin signed with the platform cert, to use
52// with InProcessNetworkStack.
53android_app {
54    name: "PlatformCaptivePortalLogin",
55    defaults: ["CaptivePortalLoginDefaults"],
56    certificate: "platform",
57    overrides: ["CaptivePortalLogin"],
58    lint: { strict_updatability_linting: true }
59}
60