| 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 | 0395b70 | 2022-03-08 19:49:49 +0900 | [diff] [blame] | 22 | // Include build rules from Sources.bp | 
|  | 23 | build = ["Sources.bp"] | 
|  | 24 |  | 
| Remi NGUYEN VAN | 86bbfe9 | 2022-03-30 18:51:41 +0900 | [diff] [blame] | 25 | filegroup { | 
|  | 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 |  | 
| paulhu | 537f720 | 2022-02-08 21:25:28 +0800 | [diff] [blame] | 36 | // This builds T+ services depending on framework-connectivity-t | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 37 | // hidden symbols separately from the S+ services, to ensure that S+ | 
|  | 38 | // services cannot accidentally depend on T+ hidden symbols from | 
| paulhu | 537f720 | 2022-02-08 21:25:28 +0800 | [diff] [blame] | 39 | // framework-connectivity-t. | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 40 | java_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 VAN | 86bbfe9 | 2022-03-30 18:51:41 +0900 | [diff] [blame] | 46 | ":service-connectivity-tiramisu-sources", | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 47 | ], | 
|  | 48 | libs: [ | 
|  | 49 | "framework-annotations-lib", | 
| Hassan Ali | c4f63fa | 2022-11-17 16:13:48 +0000 | [diff] [blame] | 50 | "framework-configinfrastructure", | 
| Remi NGUYEN VAN | 6a20eed | 2022-01-31 11:21:08 +0900 | [diff] [blame] | 51 | "framework-connectivity-pre-jarjar", | 
| paulhu | 537f720 | 2022-02-08 21:25:28 +0800 | [diff] [blame] | 52 | "framework-connectivity-t-pre-jarjar", | 
| Paul Duffin | 5118a52 | 2022-10-05 18:34:24 +0100 | [diff] [blame] | 53 | "framework-tethering", | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 54 | "service-connectivity-pre-jarjar", | 
| Remi NGUYEN VAN | b6cde3d | 2022-03-10 04:32:15 +0000 | [diff] [blame] | 55 | "service-nearby-pre-jarjar", | 
| Xiao Ma | 0a171c0 | 2022-01-23 16:14:51 +0000 | [diff] [blame] | 56 | "ServiceConnectivityResources", | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 57 | "unsupportedappusage", | 
|  | 58 | ], | 
|  | 59 | static_libs: [ | 
| Remi NGUYEN VAN | 6a20eed | 2022-01-31 11:21:08 +0900 | [diff] [blame] | 60 | // Do not add static_libs here if they are already included in framework-connectivity | 
|  | 61 | // or in service-connectivity. They are not necessary (included via | 
|  | 62 | // service-connectivity-pre-jarjar), and in the case of code that is already in | 
|  | 63 | // framework-connectivity, the classes would be included in the apex twice. | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 64 | "modules-utils-statemachine", | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 65 | ], | 
|  | 66 | apex_available: [ | 
|  | 67 | "com.android.tethering", | 
|  | 68 | ], | 
|  | 69 | visibility: [ | 
| Aaron Huang | 720ad7c | 2022-01-26 00:43:10 +0800 | [diff] [blame] | 70 | "//frameworks/base/tests/vcn", | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 71 | "//packages/modules/Connectivity/service", | 
|  | 72 | "//packages/modules/Connectivity/tests:__subpackages__", | 
| Aaron Huang | 720ad7c | 2022-01-26 00:43:10 +0800 | [diff] [blame] | 73 | "//packages/modules/IPsec/tests/iketests", | 
| paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 74 | ], | 
|  | 75 | } |