blob: c7e5419e640997b81fc0efe8ac52535d5552bfd1 [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 {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19filegroup {
20 name: "remoteauth-service-srcs",
21 srcs: ["java/**/*.java"],
22}
23
24// Main lib for remoteauth services.
25java_library {
26 name: "service-remoteauth-pre-jarjar",
27 srcs: [":remoteauth-service-srcs"],
28
29 defaults: [
Jin Chen2ff4b6b2023-07-31 14:53:53 -070030 "framework-system-server-module-defaults",
Casey Borders13a35ea2023-07-13 00:30:38 +000031 ],
Igor Zaslavskyec344f42023-08-08 04:28:45 +000032 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: [
Jin Chen393e6112023-07-31 14:57:50 -070042 "guava",
Igor Zaslavskyec344f42023-08-08 04:28:45 +000043 "libprotobuf-java-lite",
44 "fast-pair-lite-protos",
45 "modules-utils-build",
46 "modules-utils-handlerexecutor",
47 "modules-utils-preconditions",
48 "modules-utils-backgroundthread",
49 "presence-lite-protos",
Jin Chenbe08f542023-08-07 15:58:20 -070050 "uwb_androidx_backend",
Igor Zaslavskyec344f42023-08-08 04:28:45 +000051 ],
Casey Borders13a35ea2023-07-13 00:30:38 +000052 sdk_version: "system_server_current",
53 // This is included in service-connectivity which is 30+
54 // TODO (b/293613362): allow APEXes to have service jars with higher min_sdk than the APEX
55 // (service-connectivity is only used on 31+) and use 31 here
56 min_sdk_version: "30",
57
58 dex_preopt: {
59 enabled: false,
60 app_image: false,
61 },
62 visibility: [
63 "//packages/modules/RemoteAuth/apex",
64 ],
65 apex_available: [
66 "com.android.tethering",
67 ],
68}
69
70genrule {
71 name: "statslog-remoteauth-java-gen",
72 tools: ["stats-log-api-gen"],
73 cmd: "$(location stats-log-api-gen) --java $(out) --module remoteauth " +
Jin Chen2ff4b6b2023-07-31 14:53:53 -070074 " --javaPackage com.android.server.remoteauth.proto --javaClass RemoteAuthStatsLog" +
75 " --minApiLevel 33",
Casey Borders13a35ea2023-07-13 00:30:38 +000076 out: ["com/android/server/remoteauth/proto/RemoteAuthStatsLog.java"],
77}