blob: 3d9820dd47b6226ab1f98b80124cab9f0d05a247 [file] [log] [blame]
paulhu802ab972021-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
paulhu537f7202022-02-08 21:25:28 +080022// This builds T+ services depending on framework-connectivity-t
paulhu802ab972021-12-14 01:30:22 +000023// hidden symbols separately from the S+ services, to ensure that S+
24// services cannot accidentally depend on T+ hidden symbols from
paulhu537f7202022-02-08 21:25:28 +080025// framework-connectivity-t.
paulhu802ab972021-12-14 01:30:22 +000026java_library {
27 name: "service-connectivity-tiramisu-pre-jarjar",
28 sdk_version: "system_server_current",
29 // TODO(b/210962470): Bump this to at least S, and then T.
30 min_sdk_version: "30",
31 srcs: [
32 "src/**/*.java",
paulhu802ab972021-12-14 01:30:22 +000033 ":services.connectivity-tiramisu-updatable-sources",
34 ],
35 libs: [
36 "framework-annotations-lib",
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090037 "framework-connectivity-pre-jarjar",
paulhu537f7202022-02-08 21:25:28 +080038 "framework-connectivity-t-pre-jarjar",
Remi NGUYEN VAN2ba9dbe2022-02-01 23:07:33 +090039 "framework-tethering.stubs.module_lib",
paulhu802ab972021-12-14 01:30:22 +000040 "service-connectivity-pre-jarjar",
Remi NGUYEN VAN5906c8b2022-01-20 18:40:29 +090041 "service-nearby",
paulhu802ab972021-12-14 01:30:22 +000042 "unsupportedappusage",
43 ],
44 static_libs: [
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090045 // Do not add static_libs here if they are already included in framework-connectivity
46 // or in service-connectivity. They are not necessary (included via
47 // service-connectivity-pre-jarjar), and in the case of code that is already in
48 // framework-connectivity, the classes would be included in the apex twice.
paulhu802ab972021-12-14 01:30:22 +000049 "modules-utils-statemachine",
paulhu802ab972021-12-14 01:30:22 +000050 ],
51 apex_available: [
52 "com.android.tethering",
53 ],
54 visibility: [
Aaron Huang720ad7c2022-01-26 00:43:10 +080055 "//frameworks/base/tests/vcn",
paulhu802ab972021-12-14 01:30:22 +000056 "//packages/modules/Connectivity/service",
57 "//packages/modules/Connectivity/tests:__subpackages__",
Aaron Huang720ad7c2022-01-26 00:43:10 +080058 "//packages/modules/IPsec/tests/iketests",
paulhu802ab972021-12-14 01:30:22 +000059 ],
60}