David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame^] | 1 | // Copyright (C) 2019 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | |
| 16 | filegroup { |
| 17 | name: "framework-wifi-updatable-sources", |
| 18 | srcs: [ |
| 19 | "java/**/*.java", |
| 20 | "java/**/*.aidl", |
| 21 | ], |
| 22 | exclude_srcs: [ |
| 23 | ":framework-wifi-non-updatable-sources" |
| 24 | ], |
| 25 | path: "java", |
| 26 | } |
| 27 | |
| 28 | filegroup { |
| 29 | name: "framework-wifi-non-updatable-sources", |
| 30 | srcs: [ |
| 31 | // TODO(b/146011398) package android.net.wifi is now split amongst 2 jars: framework.jar and |
| 32 | // framework-wifi.jar. This is not a good idea, should move WifiNetworkScoreCache |
| 33 | // to a separate package. |
| 34 | "java/android/net/wifi/WifiNetworkScoreCache.java", |
| 35 | "java/android/net/wifi/WifiCondManager.java", |
| 36 | "java/android/net/wifi/wificond/*.java", |
| 37 | ":libwificond_ipc_aidl", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | java_library { |
| 42 | name: "framework-wifi", |
| 43 | sdk_version: "core_platform", // TODO(b/140299412) should be core_current |
| 44 | libs: [ |
| 45 | "framework-minus-apex", // TODO(b/140299412) should be framework-system-stubs |
| 46 | ], |
| 47 | srcs: [ |
| 48 | ":framework-wifi-updatable-sources", |
| 49 | ], |
| 50 | installable: true, |
| 51 | optimize: { |
| 52 | enabled: false |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | metalava_wifi_docs_args = |
| 57 | "--hide-package com.android.server " + |
| 58 | "--error UnhiddenSystemApi " + |
| 59 | "--hide RequiresPermission " + |
| 60 | "--hide MissingPermission " + |
| 61 | "--hide BroadcastBehavior " + |
| 62 | "--hide HiddenSuperclass " + |
| 63 | "--hide DeprecationMismatch " + |
| 64 | "--hide UnavailableSymbol " + |
| 65 | "--hide SdkConstant " + |
| 66 | "--hide HiddenTypeParameter " + |
| 67 | "--hide Todo --hide Typo " + |
| 68 | "--hide HiddenTypedefConstant " + |
| 69 | "--show-annotation android.annotation.SystemApi " |
| 70 | |
| 71 | droidstubs { |
| 72 | name: "framework-wifi-stubs-srcs", |
| 73 | srcs: [ |
| 74 | ":framework-annotations", |
| 75 | ":framework-wifi-updatable-sources", |
| 76 | ], |
| 77 | aidl: { |
| 78 | include_dirs: ["frameworks/base/core/java"], |
| 79 | }, |
| 80 | args: metalava_wifi_docs_args, |
| 81 | sdk_version: "core_current", |
| 82 | libs: ["android_system_stubs_current"], |
| 83 | } |
| 84 | |
| 85 | java_library { |
| 86 | name: "framework-wifi-stubs", |
| 87 | srcs: [":framework-wifi-stubs-srcs"], |
| 88 | aidl: { |
| 89 | export_include_dirs: [ |
| 90 | "java", |
| 91 | ], |
| 92 | }, |
| 93 | sdk_version: "core_current", |
| 94 | libs: ["android_system_stubs_current"], |
| 95 | installable: false, |
| 96 | } |
| 97 | |