1// 2// Copyright (C) 2019 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// 16 17android_library { 18 name: "CompanionDeviceSupport-aidl", 19 20 srcs: [ 21 "src/com/android/car/companiondevicesupport/api/**/*.java", 22 "src/com/android/car/companiondevicesupport/api/**/I*.aidl", 23 ], 24 25 manifest: "AndroidManifest_aidl.xml", 26 27 resource_dirs: [], 28 29 static_libs: [ 30 "connected-device-lib", 31 ], 32 33 aidl: { 34 local_include_dirs: [ 35 "src/com/android/car/companiondevicesupport/api", 36 ], 37 }, 38} 39 40android_library { 41 name: "CompanionDeviceSupport-lib", 42 43 srcs: [ 44 "src/**/*.java", 45 ], 46 47 exclude_srcs: [ 48 "src/com/android/car/companiondevicesupport/api/**/*.java", 49 "src/com/android/car/companiondevicesupport/api/**/I*.aidl", 50 ], 51 52 resource_dirs: ["res"], 53 54 platform_apis: true, 55 56 optimize: { 57 enabled: false, 58 }, 59 60 libs: [ 61 "android.car", 62 ], 63 64 static_libs: [ 65 "CompanionDeviceSupport-aidl", 66 "CompanionDeviceSupport-proto", 67 "EncryptionRunner-lib", 68 "androidx-constraintlayout_constraintlayout", 69 "androidx-constraintlayout_constraintlayout-solver", 70 "androidx.legacy_legacy-support-v4", 71 "androidx.room_room-runtime", 72 "car-messenger-common", 73 "car-messenger-protos", 74 "car-ui-lib", 75 "com.google.android.material_material", 76 "companion-feature-calendarsync-protos", 77 "connected-device-lib", 78 ], 79 80 plugins: [ 81 "car-androidx-room-compiler", 82 ], 83} 84 85android_app { 86 name: "CompanionDeviceSupport", 87 88 platform_apis: true, 89 90 certificate: "platform", 91 92 privileged: true, 93 94 static_libs: [ 95 "CompanionDeviceSupport-aidl", 96 "CompanionDeviceSupport-lib", 97 ], 98 99 optimize: { 100 enabled: false, 101 }, 102 103 dex_preopt: { 104 enabled: false, 105 }, 106 107 product_variables: { 108 pdk: { 109 enabled: false, 110 }, 111 }, 112 113 required: ["privapp_whitelist_com.android.car.companiondevicesupport"] 114} 115