1//
2// Copyright (C) 2022 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
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21android_library {
22    name: "SystemUIGo-core",
23    srcs: [
24        "src/**/*.java",
25    ],
26    resource_dirs: [
27        "res",
28    ],
29    static_libs: [
30        "SystemUI-core",
31        "SystemUIPluginLib",
32        "SystemUISharedLib",
33    ],
34    manifest: "AndroidManifest.xml",
35    plugins: ["dagger2-compiler"],
36}
37
38android_app {
39    name: "SystemUIGo",
40    defaults: [
41        "platform_app_defaults",
42        "SystemUI_optimized_defaults",
43        "wmshell_defaults",
44    ],
45    static_libs: [
46        "SystemUIGo-core"
47    ],
48    overrides: [
49        "SystemUI",
50    ],
51    resource_dirs: [],
52
53    platform_apis: true,
54    system_ext_specific: true,
55    certificate: "platform",
56    privileged: true,
57
58    kotlincflags: ["-Xjvm-default=all"],
59
60    dxflags: ["--multi-dex"],
61    optimize: {
62        proguard_flags_files: ["proguard.flags"],
63    },
64    required: [
65        "privapp_whitelist_com.android.systemui",
66    ],
67}
68