blob: e68da09b26d13562a87524a8248c38743d6121be [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001// 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
Bob Badour8a6a2bc2021-02-12 17:07:05 -080015package {
Aditya Choudharyb4262272024-01-31 11:09:29 +000016 default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_",
Bob Badour8a6a2bc2021-02-12 17:07:05 -080017 // 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
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080025genrule {
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}
Jason Monka2f2d822018-08-13 11:10:48 -040031
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080032java_library {
33 name: "SystemUI-statsd",
34
35 srcs: [
36 ":statslog-SystemUI-java-gen",
37 ],
Muhammad Qureshib8b4aec2024-03-07 00:15:14 +000038 libs: [
39 "androidx.annotation_annotation",
40 ],
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080041}
42
43android_library {
Jason Monka2f2d822018-08-13 11:10:48 -040044 name: "SystemUISharedLib",
Peter Kalauskas84c5a992023-08-23 13:39:23 -070045 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -040046 srcs: [
47 "src/**/*.java",
Josh Tsuji2da469f2021-05-10 11:52:06 -040048 "src/**/*.kt",
49 "src/**/*.aidl",
Winson Chung2b72add2021-02-02 23:27:07 -080050 ":wm_shell-aidls",
Luca Zuccarinia8091db2024-08-19 14:44:56 +000051 ":wm_shell-shared-aidls",
Evan Rosky14ea8c62021-09-30 17:28:35 -070052 ":wm_shell_util-sources",
Jason Monka2f2d822018-08-13 11:10:48 -040053 ],
Tony Wickham023cb192018-09-13 15:23:04 -070054 static_libs: [
Hao Dongef486e62023-08-31 22:17:34 +000055 "BiometricsSharedLib",
Luca Zuccarini674ecf02023-12-20 15:51:55 +010056 "PlatformAnimationLib",
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080057 "PluginCoreLib",
Hawkwood Glazier44fa7422022-06-07 17:28:09 +000058 "SystemUIPluginLib",
Nick Chameyev0f3c4e52022-05-11 14:49:35 +010059 "SystemUIUnfoldLib",
HyeonjungKim29486382023-08-18 17:02:39 +000060 "SystemUISharedLib-Keyguard",
Luca Zuccarinid6073dc2024-01-22 17:06:41 +000061 "WindowManager-Shell-shared",
Peter Kalauskascd50f532024-04-02 15:41:14 -070062 "//frameworks/libs/systemui:tracinglib-platform",
Nick Chameyevdc994802021-06-28 19:10:08 +010063 "androidx.dynamicanimation_dynamicanimation",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040064 "androidx.concurrent_concurrent-futures",
Alejandro Nijamkin97860c22022-11-04 12:12:46 -070065 "androidx.lifecycle_lifecycle-runtime-ktx",
66 "androidx.lifecycle_lifecycle-viewmodel-ktx",
67 "androidx.recyclerview_recyclerview",
68 "kotlinx_coroutines_android",
69 "kotlinx_coroutines",
Nicolo' Mazzucato6fb25a62022-01-10 19:56:02 +010070 "dagger2",
71 "jsr330",
Peter Kalauskascd50f532024-04-02 15:41:14 -070072 "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib",
Juan Sebastian Martinez1b4b60b2024-08-22 12:53:22 -070073 "//frameworks/libs/systemui:msdl",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040074 ],
Hawkwood Glazier9158a602022-05-27 15:48:40 +000075 resource_dirs: [
76 "res",
77 ],
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040078 min_sdk_version: "current",
Nicolo' Mazzucato6fb25a62022-01-10 19:56:02 +010079 plugins: ["dagger2-compiler"],
Colin Cross6954ea72023-07-18 10:52:21 -070080 kotlincflags: ["-Xjvm-default=all"],
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040081}
82
83java_library {
84 name: "SystemUI-flag-types",
85 srcs: [
86 "src/com/android/systemui/flags/Flag.kt",
87 ],
Dave Mankoffd1d48862021-11-05 14:26:41 -040088 include_srcs: true,
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040089 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",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -0400102 ],
103 static_libs: [
104 "SystemUI-flag-types",
Tony Wickham023cb192018-09-13 15:23:04 -0700105 ],
Dave Mankoff8ecf5772022-12-22 17:59:48 +0000106 optimize: {
107 proguard_flags_files: ["proguard_flags.flags"],
108 },
Sunny Goyal226849f2020-05-01 15:45:09 -0700109 java_version: "1.8",
Evan Rosky14ea8c62021-09-30 17:28:35 -0700110 min_sdk_version: "current",
Jason Monka2f2d822018-08-13 11:10:48 -0400111}