blob: 1b9f2ec7f23398360548265924d7124b41e299d9 [file] [log] [blame]
paulhu667e8fb2021-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 VANaf582a02022-03-08 19:49:49 +090022// Include build rules from Sources.bp
23build = ["Sources.bp"]
24
Remi NGUYEN VAN1efa3b62022-03-30 18:51:41 +090025filegroup {
26 name: "service-connectivity-tiramisu-sources",
27 srcs: [
28 "src/**/*.java",
29 ],
30 visibility: ["//visibility:private"],
31}
32// The above filegroup can be used to specify different sources depending
33// on the branch, while minimizing merge conflicts in the rest of the
34// build rules.
35
paulhu699477a2022-02-08 21:25:28 +080036// This builds T+ services depending on framework-connectivity-t
paulhu667e8fb2021-12-14 01:30:22 +000037// hidden symbols separately from the S+ services, to ensure that S+
38// services cannot accidentally depend on T+ hidden symbols from
paulhu699477a2022-02-08 21:25:28 +080039// framework-connectivity-t.
paulhu667e8fb2021-12-14 01:30:22 +000040java_library {
41 name: "service-connectivity-tiramisu-pre-jarjar",
42 sdk_version: "system_server_current",
43 // TODO(b/210962470): Bump this to at least S, and then T.
44 min_sdk_version: "30",
45 srcs: [
Remi NGUYEN VAN1efa3b62022-03-30 18:51:41 +090046 ":service-connectivity-tiramisu-sources",
paulhu667e8fb2021-12-14 01:30:22 +000047 ],
48 libs: [
49 "framework-annotations-lib",
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090050 "framework-connectivity-pre-jarjar",
paulhu699477a2022-02-08 21:25:28 +080051 "framework-connectivity-t-pre-jarjar",
Remi NGUYEN VAN78585622022-02-01 23:07:33 +090052 "framework-tethering.stubs.module_lib",
paulhu667e8fb2021-12-14 01:30:22 +000053 "service-connectivity-pre-jarjar",
Chun Zhang92b70402022-03-07 21:59:19 -080054 "service-nearby-pre-jarjar",
Xiao Maeaaf7d32022-01-23 16:14:51 +000055 "ServiceConnectivityResources",
paulhu667e8fb2021-12-14 01:30:22 +000056 "unsupportedappusage",
57 ],
58 static_libs: [
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090059 // Do not add static_libs here if they are already included in framework-connectivity
60 // or in service-connectivity. They are not necessary (included via
61 // service-connectivity-pre-jarjar), and in the case of code that is already in
62 // framework-connectivity, the classes would be included in the apex twice.
paulhu667e8fb2021-12-14 01:30:22 +000063 "modules-utils-statemachine",
paulhu667e8fb2021-12-14 01:30:22 +000064 ],
65 apex_available: [
66 "com.android.tethering",
67 ],
68 visibility: [
Aaron Huang7174ac32022-01-26 00:43:10 +080069 "//frameworks/base/tests/vcn",
paulhu667e8fb2021-12-14 01:30:22 +000070 "//packages/modules/Connectivity/service",
71 "//packages/modules/Connectivity/tests:__subpackages__",
Aaron Huang7174ac32022-01-26 00:43:10 +080072 "//packages/modules/IPsec/tests/iketests",
paulhu667e8fb2021-12-14 01:30:22 +000073 ],
74}