1// 2// Copyright (C) 2022 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// 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20genrule { 21 name: "statslog-rkpd-java-gen", 22 tools: ["stats-log-api-gen"], 23 cmd: "$(location stats-log-api-gen) --java $(out) --module rkpd " + 24 "--javaPackage com.android.rkpdapp.metrics --javaClass RkpdStatsLog", 25 out: ["com/android/rkpdapp/metrics/RkpdStatsLog.java"], 26} 27 28aidl_interface { 29 name: "com.android.rkpdapp-aidl", 30 srcs: ["aidl/**/*.aidl"], 31 local_include_dir: "aidl", 32 unstable: true, 33 backend: { 34 cpp: { 35 enabled: false, 36 }, 37 java: { 38 enabled: true, 39 sdk_version: "module_current", 40 min_sdk_version: "33", 41 apex_available: [ 42 "com.android.rkpd", 43 ], 44 }, 45 ndk: { 46 enabled: false, 47 }, 48 rust: { 49 enabled: false, 50 }, 51 }, 52} 53 54sdk { 55 name: "rkpd-sdk", 56 apexes: ["com.android.rkpd"], 57} 58 59android_app { 60 name: "rkpdapp", 61 sdk_version: "module_current", 62 target_sdk_version: "34", 63 min_sdk_version: "33", 64 updatable: false, 65 privileged: true, 66 libs: [ 67 "framework-annotations-lib", 68 "framework-connectivity", 69 "framework-connectivity-t", 70 "framework-statsd", 71 ], 72 optimize: { 73 proguard_flags_files: ["proguard.flags"], 74 }, 75 static_libs: [ 76 "android.hardware.security.rkp-V3-java", 77 "androidx.room_room-runtime", 78 "androidx.sqlite_sqlite", 79 "androidx.work_work-runtime", 80 "cbor-java", 81 "com.android.rkpdapp-aidl-java", 82 ], 83 resource_dirs: ["res"], 84 srcs: [ 85 ":statslog-rkpd-java-gen", 86 "src/**/*.java", 87 ], 88 plugins: [ 89 "androidx.room_room-compiler-plugin", 90 ], 91 apex_available: [ 92 "com.android.rkpd", 93 ], 94 lint: { 95 baseline_filename: "lint-baseline.xml", 96 }, 97} 98