blob: 8d621af30f042db2f40a144f82425d6b7672e82d [file] [log] [blame]
paulhu49ccb6a2021-12-14 01:30:22 +00001//
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
17package {
18 // See: http://go/android-license-faq
19 default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
Remi NGUYEN VAN955c33c2021-12-16 15:10:40 +000022java_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
paulhu49ccb6a2021-12-14 01:30:22 +000030java_sdk_library {
31 name: "framework-connectivity-tiramisu",
32 sdk_version: "module_current",
33 min_sdk_version: "Tiramisu",
Remi NGUYEN VAN51935fc2022-01-07 13:18:54 +090034 jarjar_rules: "jarjar-rules.txt",
Remi NGUYEN VAN955c33c2021-12-16 15:10:40 +000035 defaults: [
36 "framework-module-defaults",
37 "enable-framework-connectivity-t-targets",
38 ],
paulhu49ccb6a2021-12-14 01:30:22 +000039 srcs: [
40 ":framework-connectivity-tiramisu-updatable-sources",
Remi NGUYEN VAN51935fc2022-01-07 13:18:54 +090041 ":framework-nearby-java-sources",
42 ],
43 static_libs: [
44 "modules-utils-preconditions",
paulhu49ccb6a2021-12-14 01:30:22 +000045 ],
46 libs: [
47 "unsupportedappusage",
48 "app-compat-annotations",
Remi NGUYEN VAN51935fc2022-01-07 13:18:54 +090049 "framework-bluetooth",
paulhu49ccb6a2021-12-14 01:30:22 +000050 ],
51 permitted_packages: [
52 "android.net",
53 "android.net.nsd",
Remi NGUYEN VAN51935fc2022-01-07 13:18:54 +090054 "android.nearby",
55 "com.android.connectivity",
56 "com.android.nearby",
paulhu49ccb6a2021-12-14 01:30:22 +000057 ],
58 apex_available: [
59 "com.android.tethering",
60 ],
61 impl_library_visibility: [
62 "//packages/modules/Connectivity/Tethering/apex",
63 // In preparation for future move
64 "//packages/modules/Connectivity/apex",
65 "//packages/modules/Connectivity/service-t",
Remi NGUYEN VAN51935fc2022-01-07 13:18:54 +090066 "//packages/modules/Nearby/service",
paulhu49ccb6a2021-12-14 01:30:22 +000067 "//frameworks/base",
68
69 // Tests using hidden APIs
70 "//cts/tests/netlegacy22.api",
71 "//external/sl4a:__subpackages__",
72 "//frameworks/libs/net/common/testutils",
73 "//frameworks/libs/net/common/tests:__subpackages__",
74 "//frameworks/opt/telephony/tests/telephonytests",
75 "//packages/modules/CaptivePortalLogin/tests",
76 "//packages/modules/Connectivity/Tethering/tests:__subpackages__",
77 "//packages/modules/Connectivity/tests:__subpackages__",
78 "//packages/modules/NetworkStack/tests:__subpackages__",
Remi NGUYEN VAN51935fc2022-01-07 13:18:54 +090079 "//packages/modules/Nearby/tests:__subpackages__",
paulhu49ccb6a2021-12-14 01:30:22 +000080 "//packages/modules/Wifi/service/tests/wifitests",
81 ],
82}