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 | |
paulhu | 537f720 | 2022-02-08 21:25:28 +0800 | [diff] [blame^] | 22 | // This builds T+ services depending on framework-connectivity-t |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 23 | // hidden symbols separately from the S+ services, to ensure that S+ |
| 24 | // services cannot accidentally depend on T+ hidden symbols from |
paulhu | 537f720 | 2022-02-08 21:25:28 +0800 | [diff] [blame^] | 25 | // framework-connectivity-t. |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 26 | java_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", |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 33 | ":services.connectivity-tiramisu-updatable-sources", |
| 34 | ], |
| 35 | libs: [ |
| 36 | "framework-annotations-lib", |
Remi NGUYEN VAN | 6a20eed | 2022-01-31 11:21:08 +0900 | [diff] [blame] | 37 | "framework-connectivity-pre-jarjar", |
paulhu | 537f720 | 2022-02-08 21:25:28 +0800 | [diff] [blame^] | 38 | "framework-connectivity-t-pre-jarjar", |
Remi NGUYEN VAN | 2ba9dbe | 2022-02-01 23:07:33 +0900 | [diff] [blame] | 39 | "framework-tethering.stubs.module_lib", |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 40 | "service-connectivity-pre-jarjar", |
| 41 | "unsupportedappusage", |
| 42 | ], |
| 43 | static_libs: [ |
Remi NGUYEN VAN | 6a20eed | 2022-01-31 11:21:08 +0900 | [diff] [blame] | 44 | // Do not add static_libs here if they are already included in framework-connectivity |
| 45 | // or in service-connectivity. They are not necessary (included via |
| 46 | // service-connectivity-pre-jarjar), and in the case of code that is already in |
| 47 | // framework-connectivity, the classes would be included in the apex twice. |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 48 | "modules-utils-statemachine", |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 49 | ], |
| 50 | apex_available: [ |
| 51 | "com.android.tethering", |
| 52 | ], |
| 53 | visibility: [ |
Aaron Huang | 720ad7c | 2022-01-26 00:43:10 +0800 | [diff] [blame] | 54 | "//frameworks/base/tests/vcn", |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 55 | "//packages/modules/Connectivity/service", |
| 56 | "//packages/modules/Connectivity/tests:__subpackages__", |
Aaron Huang | 720ad7c | 2022-01-26 00:43:10 +0800 | [diff] [blame] | 57 | "//packages/modules/IPsec/tests/iketests", |
paulhu | 802ab97 | 2021-12-14 01:30:22 +0000 | [diff] [blame] | 58 | ], |
| 59 | } |