1// 2// Copyright (C) 2018 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// 16android_library { 17 name: "CarSystemUI-core", 18 19 srcs: [ 20 "src/**/*.java", 21 "src/**/I*.aidl", 22 ], 23 24 resource_dirs: [ 25 "res-keyguard", 26 "res", 27 ], 28 29 static_libs: [ 30 "SystemUI-core", 31 "CarNotificationLib", 32 "SystemUIPluginLib", 33 "SystemUISharedLib", 34 "SettingsLib", 35 "android.car.userlib", 36 "androidx.legacy_legacy-support-v4", 37 "androidx.recyclerview_recyclerview", 38 "androidx.preference_preference", 39 "androidx.appcompat_appcompat", 40 "androidx.mediarouter_mediarouter", 41 "androidx.palette_palette", 42 "androidx.legacy_legacy-preference-v14", 43 "androidx.leanback_leanback", 44 "androidx.slice_slice-core", 45 "androidx.slice_slice-view", 46 "androidx.slice_slice-builders", 47 "androidx.arch.core_core-runtime", 48 "androidx.lifecycle_lifecycle-extensions", 49 "SystemUI-tags", 50 "SystemUI-proto", 51 "dagger2-2.19", 52 "//external/kotlinc:kotlin-annotations", 53 ], 54 55 libs: [ 56 "telephony-common", 57 "android.car", 58 ], 59 60 manifest: "AndroidManifest.xml", 61 62 plugins: ["dagger2-compiler-2.19"], 63 64} 65 66android_app { 67 name: "CarSystemUI", 68 69 static_libs: [ 70 "CarSystemUI-core", 71 ], 72 73 libs: [ 74 "telephony-common", 75 "android.car", 76 ], 77 78 resource_dirs: [], 79 80 overrides: [ 81 "SystemUI", 82 ], 83 84 platform_apis: true, 85 system_ext_specific: true, 86 certificate: "platform", 87 privileged: true, 88 89 optimize: { 90 proguard_flags_files: [ 91 "proguard.flags", 92 ], 93 }, 94 dxflags: ["--multi-dex"], 95 96 aaptflags: [ 97 "--extra-packages", 98 "com.android.keyguard", 99 ], 100 101 kotlincflags: ["-Xjvm-default=enable"], 102 103 plugins: ["dagger2-compiler-2.19"], 104 105 required: ["privapp_whitelist_com.android.systemui"], 106} 107