1// 2// Copyright (C) 2023 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 20prebuilt_etc { 21 name: "privapp_extension_com.android.systemui", 22 system_ext_specific: true, 23 sub_dir: "permissions", 24 src: "com.android.systemui_extension.xml", 25 filename_from_src: true, 26} 27 28android_library { 29 name: "TvSystemUI-res", 30 resource_dirs: [ 31 "res", 32 ], 33 manifest: "AndroidManifest-res.xml", 34 use_resource_processor: true, 35} 36 37android_library { 38 name: "TvSystemUI-core", 39 srcs: [ 40 "src/**/*.java", 41 "src/**/*.kt", 42 ], 43 resource_dirs: [], 44 use_resource_processor: true, 45 static_libs: [ 46 "SystemUI-core", 47 "SystemUIPluginLib", 48 "SystemUISharedLib", 49 "TvSystemUI-res", 50 "TwoPanelSettingsLib" 51 ], 52 javacflags: ["-Adagger.fastInit=enabled"], 53 manifest: "AndroidManifest.xml", 54 additional_manifests: ["AndroidManifest-exclude-overrides.xml"], 55 plugins: ["dagger2-compiler"], 56} 57 58android_app { 59 name: "TvSystemUI", 60 defaults: [ 61 "platform_app_defaults", 62 "SystemUI_optimized_defaults", 63 ], 64 static_libs: [ 65 "TvSystemUI-core" 66 ], 67 overrides: [ 68 "SystemUI", 69 ], 70 resource_dirs: [], 71 use_resource_processor: true, 72 73 platform_apis: true, 74 system_ext_specific: true, 75 certificate: "platform", 76 privileged: true, 77 78 kotlincflags: ["-Xjvm-default=all"], 79 80 dxflags: ["--multi-dex"], 81 optimize: { 82 proguard_flags_files: ["proguard.flags"], 83 }, 84 required: [ 85 "privapp_whitelist_com.android.systemui", 86 "privapp_extension_com.android.systemui" 87 ], 88} 89