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: [ |
| 30 | "framework-system-server-module-defaults" |
| 31 | ], |
| 32 | libs: [], |
| 33 | static_libs: [], |
| 34 | sdk_version: "system_server_current", |
| 35 | // This is included in service-connectivity which is 30+ |
| 36 | // TODO (b/293613362): allow APEXes to have service jars with higher min_sdk than the APEX |
| 37 | // (service-connectivity is only used on 31+) and use 31 here |
| 38 | min_sdk_version: "30", |
| 39 | |
| 40 | dex_preopt: { |
| 41 | enabled: false, |
| 42 | app_image: false, |
| 43 | }, |
| 44 | visibility: [ |
| 45 | "//packages/modules/RemoteAuth/apex", |
| 46 | ], |
| 47 | apex_available: [ |
| 48 | "com.android.tethering", |
| 49 | ], |
| 50 | } |
| 51 | |
| 52 | genrule { |
| 53 | name: "statslog-remoteauth-java-gen", |
| 54 | tools: ["stats-log-api-gen"], |
| 55 | cmd: "$(location stats-log-api-gen) --java $(out) --module remoteauth " + |
| 56 | " --javaPackage com.android.server.remoteauth.proto --javaClass RemoteAuthStatsLog" + |
| 57 | " --minApiLevel 33", |
| 58 | out: ["com/android/server/remoteauth/proto/RemoteAuthStatsLog.java"], |
| 59 | } |