Nate Jiang | 0d36111 | 2023-09-19 15:01:53 -0700 | [diff] [blame] | 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 | |
| 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
| 21 | aconfig_declarations { |
| 22 | name: "wifi_aconfig_flags", |
| 23 | package: "com.android.wifi.flags", |
Oriol Prieto Gasco | 40eaabc | 2024-02-06 18:34:46 +0000 | [diff] [blame] | 24 | container: "com.android.wifi", |
Nate Jiang | 0d36111 | 2023-09-19 15:01:53 -0700 | [diff] [blame] | 25 | srcs: ["wifi_flags.aconfig"], |
| 26 | } |
| 27 | |
| 28 | java_aconfig_library { |
| 29 | name: "wifi_aconfig_flags_lib", |
| 30 | aconfig_declarations: "wifi_aconfig_flags", |
| 31 | min_sdk_version: "30", |
| 32 | apex_available: [ |
Andrew Sapperstein | c007008 | 2023-10-17 16:35:58 +0000 | [diff] [blame] | 33 | "//apex_available:platform", |
Nate Jiang | 0d36111 | 2023-09-19 15:01:53 -0700 | [diff] [blame] | 34 | "com.android.wifi", |
| 35 | ], |
| 36 | visibility: [ |
Andrew Sapperstein | c007008 | 2023-10-17 16:35:58 +0000 | [diff] [blame] | 37 | "//frameworks/opt/net/wifi/libs/WifiTrackerLib:__subpackages__", |
Nate Jiang | 0d36111 | 2023-09-19 15:01:53 -0700 | [diff] [blame] | 38 | "//packages/modules/Wifi:__subpackages__", |
Nate Jiang | c2e518b | 2023-10-02 14:58:15 -0700 | [diff] [blame] | 39 | "//cts/tests/tests/wifi:__subpackages__", |
Nate Jiang | 0d36111 | 2023-09-19 15:01:53 -0700 | [diff] [blame] | 40 | ], |
Nate Jiang | e6bcb3c | 2024-01-04 13:53:14 -0800 | [diff] [blame] | 41 | } |
| 42 | |
Nate Jiang | f5522cb | 2024-01-10 14:41:30 -0800 | [diff] [blame] | 43 | java_aconfig_library { |
| 44 | name: "wifi_framework_aconfig_flags_lib", |
| 45 | aconfig_declarations: "wifi_aconfig_flags", |
| 46 | defaults: ["wifi-framework-aconfig-java-defaults"], |
| 47 | } |
| 48 | |
Nate Jiang | e6bcb3c | 2024-01-04 13:53:14 -0800 | [diff] [blame] | 49 | java_defaults { |
Nate Jiang | e6bcb3c | 2024-01-04 13:53:14 -0800 | [diff] [blame] | 50 | name: "wifi-framework-aconfig-java-defaults", |
| 51 | sdk_version: "core_platform", |
Zhi Dou | 0a8e873 | 2024-07-25 21:52:04 +0000 | [diff] [blame] | 52 | libs: [ |
| 53 | "fake_device_config", |
zhidou | a50da37 | 2024-11-20 04:04:58 +0000 | [diff] [blame] | 54 | "aconfig_storage_stub", |
Zhi Dou | 0a8e873 | 2024-07-25 21:52:04 +0000 | [diff] [blame] | 55 | ], |
Nate Jiang | f5522cb | 2024-01-10 14:41:30 -0800 | [diff] [blame] | 56 | } |
Chris Weir | ef459b3 | 2024-10-04 09:51:01 -0700 | [diff] [blame] | 57 | |
| 58 | cc_aconfig_library { |
| 59 | name: "wifi_aconfig_flags_c_lib", |
| 60 | aconfig_declarations: "wifi_aconfig_flags", |
Chris Weir | 2a23cba | 2024-10-03 14:27:09 -0700 | [diff] [blame] | 61 | vendor_available: true, |
Chris Weir | ef459b3 | 2024-10-04 09:51:01 -0700 | [diff] [blame] | 62 | } |