xref: /aosp_15_r20/frameworks/base/packages/SystemUI/shared/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1// Copyright (C) 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "frameworks_base_packages_SystemUI_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
23}
24
25genrule {
26    name: "statslog-SystemUI-java-gen",
27    tools: ["stats-log-api-gen"],
28    cmd: "$(location stats-log-api-gen) --java $(out) --module sysui --javaPackage com.android.systemui.shared.system --javaClass SysUiStatsLog",
29    out: ["com/android/systemui/shared/system/SysUiStatsLog.java"],
30}
31
32java_library {
33    name: "SystemUI-statsd",
34
35    srcs: [
36        ":statslog-SystemUI-java-gen",
37    ],
38    libs: [
39        "androidx.annotation_annotation",
40    ],
41}
42
43android_library {
44    name: "SystemUISharedLib",
45    use_resource_processor: true,
46    srcs: [
47        "src/**/*.java",
48        "src/**/*.kt",
49        "src/**/*.aidl",
50        ":wm_shell-aidls",
51        ":wm_shell-shared-aidls",
52    ],
53    static_libs: [
54        "BiometricsSharedLib",
55        "PlatformAnimationLib",
56        "PluginCoreLib",
57        "SystemUIPluginLib",
58        "SystemUIUnfoldLib",
59        "SystemUISharedLib-Keyguard",
60        "WindowManager-Shell-shared",
61        "//frameworks/libs/systemui:tracinglib-platform",
62        "androidx.dynamicanimation_dynamicanimation",
63        "androidx.concurrent_concurrent-futures",
64        "androidx.lifecycle_lifecycle-runtime-ktx",
65        "androidx.lifecycle_lifecycle-viewmodel-ktx",
66        "androidx.recyclerview_recyclerview",
67        "kotlinx_coroutines_android",
68        "kotlinx_coroutines",
69        "dagger2",
70        "jsr330",
71        "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib",
72        "//frameworks/libs/systemui:msdl",
73        "//frameworks/libs/systemui:view_capture",
74    ],
75    resource_dirs: [
76        "res",
77    ],
78    min_sdk_version: "current",
79    plugins: ["dagger2-compiler"],
80    kotlincflags: ["-Xjvm-default=all"],
81}
82
83java_library {
84    name: "SystemUI-flag-types",
85    srcs: [
86        "src/com/android/systemui/flags/Flag.kt",
87    ],
88    include_srcs: true,
89    static_kotlin_stdlib: false,
90    java_version: "1.8",
91    min_sdk_version: "current",
92}
93
94java_library {
95    name: "SystemUIFlagsLib",
96    srcs: [
97        "src/com/android/systemui/flags/**/*.kt",
98    ],
99    static_kotlin_stdlib: false,
100    libs: [
101        "androidx.concurrent_concurrent-futures",
102    ],
103    static_libs: [
104        "SystemUI-flag-types",
105    ],
106    optimize: {
107        proguard_flags_files: ["proguard_flags.flags"],
108    },
109    java_version: "1.8",
110    min_sdk_version: "current",
111}
112