blob: ea11fd9dce38ec401fc3564c91dae470b0486037 [file] [log] [blame]
Max Birese24b7822020-12-03 14:49:58 -08001//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
Bob Badourd60244e2021-02-12 17:07:10 -080016package {
17 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
Seth Moore6ac2f492022-05-06 10:15:03 -070020genrule {
21 name: "statslog-remoteprovisioner-java-gen",
22 tools: ["stats-log-api-gen"],
23 cmd: "$(location stats-log-api-gen) --java $(out) --module remoteprovisioner " +
24 "--javaPackage com.android.remoteprovisioner --javaClass RemoteProvisionerStatsLog",
25 out: ["com/android/remoteprovisioner/RemoteProvisionerStatsLog.java"],
26}
27
Max Birese24b7822020-12-03 14:49:58 -080028android_app {
29 name: "RemoteProvisioner",
30 platform_apis: true,
31 privileged: true,
Max Bires07c97ea2021-03-23 08:41:49 -070032 system_ext_specific: true,
Max Birese24b7822020-12-03 14:49:58 -080033 libs: [
Jeongik Cha58d181e2021-02-17 12:38:50 +090034 "android.system.keystore2-V1-java",
Max Birese24b7822020-12-03 14:49:58 -080035 "framework-annotations-lib",
Max Birese24b7822020-12-03 14:49:58 -080036 ],
Max Bires7b8b6ad2022-04-27 09:21:30 -070037 optimize: {
38 proguard_flags_files: ["proguard.flags"]
39 },
Max Bires0dbe39c2021-02-07 18:39:00 -080040 static_libs: [
Max Bires1b697e22021-02-15 01:07:15 -080041 "android.hardware.security.keymint-V1-java",
42 "android.security.remoteprovisioning-java",
Max Biresc8a7ae42021-12-15 16:37:29 -080043 "androidx.work_work-runtime",
Max Biresd8da1e42021-04-21 16:14:55 -070044 "cbor-java",
Max Bires0dbe39c2021-02-07 18:39:00 -080045 ],
Max Birese24b7822020-12-03 14:49:58 -080046 resource_dirs: ["res"],
Seth Moore6ac2f492022-05-06 10:15:03 -070047 srcs: [
48 ":statslog-remoteprovisioner-java-gen",
49 "src/**/*.java"
50 ],
Max Birese24b7822020-12-03 14:49:58 -080051}