blob: 32ae54f5b649ef21ff212eba869342814ed98036 [file] [log] [blame]
Casey Borders13a35ea2023-07-13 00:30:38 +00001// 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
15package {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000016 default_team: "trendy_team_fwk_core_networking",
Casey Borders13a35ea2023-07-13 00:30:38 +000017 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20filegroup {
21 name: "remoteauth-service-srcs",
Igor Zaslavskye3365862023-09-21 09:26:31 +000022 srcs: [],
Casey Borders13a35ea2023-07-13 00:30:38 +000023}
24
25// Main lib for remoteauth services.
26java_library {
27 name: "service-remoteauth-pre-jarjar",
28 srcs: [":remoteauth-service-srcs"],
Igor Zaslavsky3521a5e2023-09-01 21:00:43 +000029 required: ["libremoteauth_jni_rust"],
Casey Borders13a35ea2023-07-13 00:30:38 +000030 defaults: [
Remi NGUYEN VANc41daa42023-08-14 15:34:20 +090031 "enable-remoteauth-targets",
Jin Chen2ff4b6b2023-07-31 14:53:53 -070032 "framework-system-server-module-defaults",
Casey Borders13a35ea2023-07-13 00:30:38 +000033 ],
Igor Zaslavskyec344f42023-08-08 04:28:45 +000034 libs: [
35 "androidx.annotation_annotation",
36 "framework-bluetooth",
Salil Rajadhyakshaba35a142023-08-14 22:21:52 +000037 "framework-connectivity",
Igor Zaslavskyec344f42023-08-08 04:28:45 +000038 "error_prone_annotations",
39 "framework-configinfrastructure",
40 "framework-connectivity-pre-jarjar",
41 "framework-connectivity-t-pre-jarjar",
42 "framework-statsd",
43 ],
44 static_libs: [
Igor Zaslavskyec344f42023-08-08 04:28:45 +000045 "modules-utils-build",
46 "modules-utils-handlerexecutor",
47 "modules-utils-preconditions",
48 "modules-utils-backgroundthread",
Jin Chenbe08f542023-08-07 15:58:20 -070049 "uwb_androidx_backend",
Igor Zaslavskyec344f42023-08-08 04:28:45 +000050 ],
Casey Borders13a35ea2023-07-13 00:30:38 +000051 sdk_version: "system_server_current",
52 // This is included in service-connectivity which is 30+
53 // TODO (b/293613362): allow APEXes to have service jars with higher min_sdk than the APEX
54 // (service-connectivity is only used on 31+) and use 31 here
55 min_sdk_version: "30",
56
57 dex_preopt: {
58 enabled: false,
59 app_image: false,
60 },
61 visibility: [
62 "//packages/modules/RemoteAuth/apex",
63 ],
64 apex_available: [
65 "com.android.tethering",
66 ],
67}
68
69genrule {
70 name: "statslog-remoteauth-java-gen",
71 tools: ["stats-log-api-gen"],
72 cmd: "$(location stats-log-api-gen) --java $(out) --module remoteauth " +
Jin Chen2ff4b6b2023-07-31 14:53:53 -070073 " --javaPackage com.android.server.remoteauth.proto --javaClass RemoteAuthStatsLog" +
74 " --minApiLevel 33",
Casey Borders13a35ea2023-07-13 00:30:38 +000075 out: ["com/android/server/remoteauth/proto/RemoteAuthStatsLog.java"],
76}