1//
2// Copyright (C) 2023 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
21aconfig_declarations {
22    name: "wifi_aconfig_flags",
23    package: "com.android.wifi.flags",
24    container: "com.android.wifi",
25    srcs: ["wifi_flags.aconfig"],
26}
27
28java_aconfig_library {
29    name: "wifi_aconfig_flags_lib",
30    aconfig_declarations: "wifi_aconfig_flags",
31    min_sdk_version: "30",
32    apex_available: [
33        "//apex_available:platform",
34        "com.android.wifi",
35    ],
36    visibility: [
37        "//frameworks/opt/net/wifi/libs/WifiTrackerLib:__subpackages__",
38        "//packages/modules/Wifi:__subpackages__",
39        "//cts/tests/tests/wifi:__subpackages__",
40    ],
41}
42
43java_aconfig_library {
44    name: "wifi_framework_aconfig_flags_lib",
45    aconfig_declarations: "wifi_aconfig_flags",
46    defaults: ["wifi-framework-aconfig-java-defaults"],
47}
48
49java_defaults {
50    name: "wifi-framework-aconfig-java-defaults",
51    sdk_version: "core_platform",
52    libs: [
53        "fake_device_config",
54        "aconfig_storage_stub",
55    ],
56}
57
58cc_aconfig_library {
59    name: "wifi_aconfig_flags_c_lib",
60    aconfig_declarations: "wifi_aconfig_flags",
61    vendor_available: true,
62}
63