• 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_team: "trendy_team_fwk_core_networking",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22java_defaults {
23    name: "CaptivePortalLoginDefaults",
24    sdk_version: "module_current",
25    min_sdk_version: "30",
26    target_sdk_version: "36", // Keep in sync with CaptivePortalLoginTests
27    lint: {
28        strict_updatability_linting: true,
29    },
30    optimize: {
31        ignore_warnings: false,
32    },
33}
34
35android_library {
36    name: "CaptivePortalLoginLib",
37    defaults: ["CaptivePortalLoginDefaults"],
38    srcs: ["src/**/*.java"],
39    static_libs: [
40        "androidx.annotation_annotation",
41        "androidx.browser_browser",
42        "androidx.legacy_legacy-support-core-ui",
43        "captiveportal-lib",
44        "metrics-constants-protos",
45        "modules-utils-build",
46        "net-utils-connectivity-apks",
47    ],
48    libs: [
49        "framework-configinfrastructure.stubs.module_lib",
50        "framework-connectivity.stubs.module_lib",
51        "framework-mediaprovider.stubs.module_lib",
52        "framework-wifi.stubs.module_lib",
53    ],
54    manifest: "AndroidManifest.xml",
55}
56
57java_genrule {
58    name: "CaptivePortalLoginJarJarRules",
59    tool_files: [
60        ":CaptivePortalLoginLib{.jar}",
61        "jarjar-excludes.txt",
62    ],
63    tools: [
64        "jarjar-rules-generator",
65    ],
66    out: ["CaptivePortalLoginJarJarRules.txt"],
67    cmd: "$(location jarjar-rules-generator) " +
68        "$(location :CaptivePortalLoginLib{.jar}) " +
69        "--excludes $(location jarjar-excludes.txt) " +
70        "--prefix com.android.captiveportallogin " +
71        "--output $(out)",
72    visibility: [
73        "//packages/modules/CaptivePortalLogin:__subpackages__",
74    ],
75}
76
77android_app {
78    name: "CaptivePortalLogin",
79    defaults: ["CaptivePortalLoginDefaults"],
80    static_libs: ["CaptivePortalLoginLib"],
81    jarjar_rules: ":CaptivePortalLoginJarJarRules",
82    certificate: "networkstack",
83    updatable: true,
84}
85
86android_library {
87    name: "CaptivePortalLoginTestLib",
88    defaults: ["CaptivePortalLoginDefaults"],
89    static_libs: [
90        "CaptivePortalLoginLib",
91        "net-tests-utils",
92    ],
93    lint: {
94        strict_updatability_linting: true,
95    },
96}
97