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 "SystemUI-shared-utils", 50 "TvSystemUI-res", 51 "TwoPanelSettingsLib" 52 ], 53 javacflags: ["-Adagger.fastInit=enabled"], 54 manifest: "AndroidManifest.xml", 55 additional_manifests: ["AndroidManifest-exclude-overrides.xml"], 56 plugins: ["dagger2-compiler"], 57} 58 59android_app { 60 name: "TvSystemUI", 61 defaults: [ 62 "platform_app_defaults", 63 "SystemUI_optimized_defaults", 64 ], 65 static_libs: [ 66 "TvSystemUI-core" 67 ], 68 overrides: [ 69 "SystemUI", 70 ], 71 resource_dirs: [], 72 use_resource_processor: true, 73 74 platform_apis: true, 75 system_ext_specific: true, 76 certificate: "platform", 77 privileged: true, 78 79 kotlincflags: ["-Xjvm-default=all"], 80 81 dxflags: ["--multi-dex"], 82 optimize: { 83 proguard_flags_files: ["proguard.flags"], 84 }, 85 required: [ 86 "privapp_whitelist_com.android.systemui", 87 "privapp_extension_com.android.systemui" 88 ], 89} 90