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