| 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", | 
| Igor Zaslavsky | e336586 | 2023-09-21 09:26:31 +0000 | [diff] [blame] | 21 | srcs: [], | 
| Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 22 | } | 
|  | 23 |  | 
|  | 24 | // Main lib for remoteauth services. | 
|  | 25 | java_library { | 
|  | 26 | name: "service-remoteauth-pre-jarjar", | 
|  | 27 | srcs: [":remoteauth-service-srcs"], | 
| Igor Zaslavsky | 3521a5e | 2023-09-01 21:00:43 +0000 | [diff] [blame] | 28 | required: ["libremoteauth_jni_rust"], | 
| Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 29 | defaults: [ | 
| Remi NGUYEN VAN | c41daa4 | 2023-08-14 15:34:20 +0900 | [diff] [blame] | 30 | "enable-remoteauth-targets", | 
| Jin Chen | 2ff4b6b | 2023-07-31 14:53:53 -0700 | [diff] [blame] | 31 | "framework-system-server-module-defaults", | 
| Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 32 | ], | 
| Igor Zaslavsky | ec344f4 | 2023-08-08 04:28:45 +0000 | [diff] [blame] | 33 | libs: [ | 
|  | 34 | "androidx.annotation_annotation", | 
|  | 35 | "framework-bluetooth", | 
|  | 36 | "error_prone_annotations", | 
|  | 37 | "framework-configinfrastructure", | 
|  | 38 | "framework-connectivity-pre-jarjar", | 
|  | 39 | "framework-connectivity-t-pre-jarjar", | 
|  | 40 | "framework-statsd", | 
|  | 41 | ], | 
|  | 42 | static_libs: [ | 
| Igor Zaslavsky | ec344f4 | 2023-08-08 04:28:45 +0000 | [diff] [blame] | 43 | "modules-utils-build", | 
|  | 44 | "modules-utils-handlerexecutor", | 
|  | 45 | "modules-utils-preconditions", | 
|  | 46 | "modules-utils-backgroundthread", | 
| Jin Chen | be08f54 | 2023-08-07 15:58:20 -0700 | [diff] [blame] | 47 | "uwb_androidx_backend", | 
| Igor Zaslavsky | ec344f4 | 2023-08-08 04:28:45 +0000 | [diff] [blame] | 48 | ], | 
| Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 49 | sdk_version: "system_server_current", | 
|  | 50 | // This is included in service-connectivity which is 30+ | 
|  | 51 | // TODO (b/293613362): allow APEXes to have service jars with higher min_sdk than the APEX | 
|  | 52 | // (service-connectivity is only used on 31+) and use 31 here | 
|  | 53 | min_sdk_version: "30", | 
|  | 54 |  | 
|  | 55 | dex_preopt: { | 
|  | 56 | enabled: false, | 
|  | 57 | app_image: false, | 
|  | 58 | }, | 
|  | 59 | visibility: [ | 
|  | 60 | "//packages/modules/RemoteAuth/apex", | 
|  | 61 | ], | 
|  | 62 | apex_available: [ | 
|  | 63 | "com.android.tethering", | 
|  | 64 | ], | 
|  | 65 | } | 
|  | 66 |  | 
|  | 67 | genrule { | 
|  | 68 | name: "statslog-remoteauth-java-gen", | 
|  | 69 | tools: ["stats-log-api-gen"], | 
|  | 70 | cmd: "$(location stats-log-api-gen) --java $(out) --module remoteauth " + | 
| Jin Chen | 2ff4b6b | 2023-07-31 14:53:53 -0700 | [diff] [blame] | 71 | " --javaPackage com.android.server.remoteauth.proto --javaClass RemoteAuthStatsLog" + | 
|  | 72 | " --minApiLevel 33", | 
| Casey Borders | 13a35ea | 2023-07-13 00:30:38 +0000 | [diff] [blame] | 73 | out: ["com/android/server/remoteauth/proto/RemoteAuthStatsLog.java"], | 
|  | 74 | } |