blob: 50dd995ef4852c679e4d482aa1dcda1d49c59018 [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
Remi NGUYEN VAN0395b702022-03-08 19:49:49 +090022// Include build rules from Sources.bp
23build = ["Sources.bp"]
24
paulhu537f7202022-02-08 21:25:28 +080025// This builds T+ services depending on framework-connectivity-t
paulhu802ab972021-12-14 01:30:22 +000026// hidden symbols separately from the S+ services, to ensure that S+
27// services cannot accidentally depend on T+ hidden symbols from
paulhu537f7202022-02-08 21:25:28 +080028// framework-connectivity-t.
paulhu802ab972021-12-14 01:30:22 +000029java_library {
30 name: "service-connectivity-tiramisu-pre-jarjar",
31 sdk_version: "system_server_current",
32 // TODO(b/210962470): Bump this to at least S, and then T.
33 min_sdk_version: "30",
34 srcs: [
35 "src/**/*.java",
Xiao Ma0a171c02022-01-23 16:14:51 +000036 ":ethernet-service-updatable-sources",
paulhu802ab972021-12-14 01:30:22 +000037 ":services.connectivity-tiramisu-updatable-sources",
38 ],
39 libs: [
40 "framework-annotations-lib",
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090041 "framework-connectivity-pre-jarjar",
paulhu537f7202022-02-08 21:25:28 +080042 "framework-connectivity-t-pre-jarjar",
Remi NGUYEN VAN2ba9dbe2022-02-01 23:07:33 +090043 "framework-tethering.stubs.module_lib",
paulhu802ab972021-12-14 01:30:22 +000044 "service-connectivity-pre-jarjar",
Remi NGUYEN VANb6cde3d2022-03-10 04:32:15 +000045 "service-nearby-pre-jarjar",
Xiao Ma0a171c02022-01-23 16:14:51 +000046 "ServiceConnectivityResources",
paulhu802ab972021-12-14 01:30:22 +000047 "unsupportedappusage",
48 ],
49 static_libs: [
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090050 // Do not add static_libs here if they are already included in framework-connectivity
51 // or in service-connectivity. They are not necessary (included via
52 // service-connectivity-pre-jarjar), and in the case of code that is already in
53 // framework-connectivity, the classes would be included in the apex twice.
paulhu802ab972021-12-14 01:30:22 +000054 "modules-utils-statemachine",
paulhu802ab972021-12-14 01:30:22 +000055 ],
56 apex_available: [
57 "com.android.tethering",
58 ],
59 visibility: [
Aaron Huang720ad7c2022-01-26 00:43:10 +080060 "//frameworks/base/tests/vcn",
paulhu802ab972021-12-14 01:30:22 +000061 "//packages/modules/Connectivity/service",
62 "//packages/modules/Connectivity/tests:__subpackages__",
Aaron Huang720ad7c2022-01-26 00:43:10 +080063 "//packages/modules/IPsec/tests/iketests",
paulhu802ab972021-12-14 01:30:22 +000064 ],
65}