Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 1 | // Copyright (C) 2023 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
| 19 | filegroup { |
| 20 | name: "remoteauth-service-srcs", |
| 21 | srcs: ["java/**/*.java"], |
| 22 | } |
| 23 | |
| 24 | // Main lib for remoteauth services. |
| 25 | java_library { |
| 26 | name: "service-remoteauth-pre-jarjar", |
| 27 | srcs: [":remoteauth-service-srcs"], |
| 28 | |
| 29 | defaults: [ |
Jin Chen | 2ff4b6b | 2023-07-31 14:53:53 -0700 | [diff] [blame^] | 30 | "framework-system-server-module-defaults", |
Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 31 | ], |
Igor Zaslavsky | ec344f4 | 2023-08-08 04:28:45 +0000 | [diff] [blame] | 32 | libs: [ |
| 33 | "androidx.annotation_annotation", |
| 34 | "framework-bluetooth", |
| 35 | "error_prone_annotations", |
| 36 | "framework-configinfrastructure", |
| 37 | "framework-connectivity-pre-jarjar", |
| 38 | "framework-connectivity-t-pre-jarjar", |
| 39 | "framework-statsd", |
| 40 | ], |
| 41 | static_libs: [ |
| 42 | "libprotobuf-java-lite", |
| 43 | "fast-pair-lite-protos", |
| 44 | "modules-utils-build", |
| 45 | "modules-utils-handlerexecutor", |
| 46 | "modules-utils-preconditions", |
| 47 | "modules-utils-backgroundthread", |
| 48 | "presence-lite-protos", |
| 49 | ], |
Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 50 | sdk_version: "system_server_current", |
| 51 | // This is included in service-connectivity which is 30+ |
| 52 | // TODO (b/293613362): allow APEXes to have service jars with higher min_sdk than the APEX |
| 53 | // (service-connectivity is only used on 31+) and use 31 here |
| 54 | min_sdk_version: "30", |
| 55 | |
| 56 | dex_preopt: { |
| 57 | enabled: false, |
| 58 | app_image: false, |
| 59 | }, |
| 60 | visibility: [ |
| 61 | "//packages/modules/RemoteAuth/apex", |
| 62 | ], |
| 63 | apex_available: [ |
| 64 | "com.android.tethering", |
| 65 | ], |
| 66 | } |
| 67 | |
| 68 | genrule { |
| 69 | name: "statslog-remoteauth-java-gen", |
| 70 | tools: ["stats-log-api-gen"], |
| 71 | cmd: "$(location stats-log-api-gen) --java $(out) --module remoteauth " + |
Jin Chen | 2ff4b6b | 2023-07-31 14:53:53 -0700 | [diff] [blame^] | 72 | " --javaPackage com.android.server.remoteauth.proto --javaClass RemoteAuthStatsLog" + |
| 73 | " --minApiLevel 33", |
Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 74 | out: ["com/android/server/remoteauth/proto/RemoteAuthStatsLog.java"], |
| 75 | } |