paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2021 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 | // See: http://go/android-license-faq |
| 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 20 | } |
| 21 | |
Remi NGUYEN VAN | 24b3c37 | 2021-12-16 15:10:40 +0000 | [diff] [blame] | 22 | java_defaults { |
| 23 | name: "enable-framework-connectivity-t-targets", |
| 24 | enabled: true, |
| 25 | } |
| 26 | // The above defaults can be used to disable framework-connectivity t |
| 27 | // targets while minimizing merge conflicts in the build rules. |
| 28 | |
| 29 | |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 30 | java_sdk_library { |
| 31 | name: "framework-connectivity-tiramisu", |
| 32 | sdk_version: "module_current", |
| 33 | min_sdk_version: "Tiramisu", |
Remi NGUYEN VAN | 24b3c37 | 2021-12-16 15:10:40 +0000 | [diff] [blame] | 34 | defaults: [ |
| 35 | "framework-module-defaults", |
| 36 | "enable-framework-connectivity-t-targets", |
| 37 | ], |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 38 | srcs: [ |
| 39 | ":framework-connectivity-tiramisu-updatable-sources", |
| 40 | ], |
| 41 | libs: [ |
| 42 | "unsupportedappusage", |
| 43 | "app-compat-annotations", |
| 44 | ], |
| 45 | permitted_packages: [ |
| 46 | "android.net", |
| 47 | "android.net.nsd", |
| 48 | ], |
| 49 | apex_available: [ |
| 50 | "com.android.tethering", |
| 51 | ], |
| 52 | impl_library_visibility: [ |
| 53 | "//packages/modules/Connectivity/Tethering/apex", |
| 54 | // In preparation for future move |
| 55 | "//packages/modules/Connectivity/apex", |
| 56 | "//packages/modules/Connectivity/service-t", |
| 57 | "//frameworks/base", |
| 58 | |
| 59 | // Tests using hidden APIs |
| 60 | "//cts/tests/netlegacy22.api", |
| 61 | "//external/sl4a:__subpackages__", |
| 62 | "//frameworks/libs/net/common/testutils", |
| 63 | "//frameworks/libs/net/common/tests:__subpackages__", |
| 64 | "//frameworks/opt/telephony/tests/telephonytests", |
| 65 | "//packages/modules/CaptivePortalLogin/tests", |
| 66 | "//packages/modules/Connectivity/Tethering/tests:__subpackages__", |
| 67 | "//packages/modules/Connectivity/tests:__subpackages__", |
| 68 | "//packages/modules/NetworkStack/tests:__subpackages__", |
| 69 | "//packages/modules/Wifi/service/tests/wifitests", |
| 70 | ], |
| 71 | } |