• 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-core-ui",
30        "metrics-constants-protos",
31        "captiveportal-lib",
32    ],
33    manifest: "AndroidManifest.xml",
34    lint: { strict_updatability_linting: true },
35    optimize: {
36        ignore_warnings: false,
37    },
38}
39
40android_app {
41    name: "CaptivePortalLogin",
42    defaults: ["CaptivePortalLoginDefaults"],
43    certificate: "networkstack",
44    updatable: true,
45}
46
47android_library {
48    name: "CaptivePortalLoginTestLib",
49    defaults: ["CaptivePortalLoginDefaults"],
50    static_libs: ["net-tests-utils"],
51    lint: { strict_updatability_linting: true }
52}
53
54// Alternative CaptivePortalLogin signed with the platform cert, to use
55// with InProcessNetworkStack.
56android_app {
57    name: "PlatformCaptivePortalLogin",
58    defaults: ["CaptivePortalLoginDefaults"],
59    certificate: "platform",
60    overrides: ["CaptivePortalLogin"],
61    lint: { strict_updatability_linting: true }
62}
63