• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    javacflags: [
30        "-Adagger.useBindingGraphFix=ENABLED",
31    ],
32    static_libs: [
33        "SystemUI-core",
34        "SystemUIPluginLib",
35        "SystemUISharedLib",
36    ],
37    manifest: "AndroidManifest.xml",
38    plugins: ["dagger2-compiler"],
39}
40
41android_app {
42    name: "SystemUIGo",
43    defaults: [
44        "platform_app_defaults",
45        "SystemUI_optimized_defaults",
46        "wmshell_defaults",
47    ],
48    static_libs: [
49        "SystemUIGo-core"
50    ],
51    overrides: [
52        "SystemUI",
53    ],
54    resource_dirs: [],
55
56    platform_apis: true,
57    system_ext_specific: true,
58    certificate: "platform",
59    privileged: true,
60
61    javacflags: [
62        "-Adagger.useBindingGraphFix=ENABLED",
63    ],
64
65    kotlincflags: ["-Xjvm-default=all"],
66
67    dxflags: ["--multi-dex"],
68    optimize: {
69        proguard_flags_files: ["proguard.flags"],
70    },
71    required: [
72        "privapp_whitelist_com.android.systemui",
73    ],
74}
75