blob: 3a26ebff6c6ab26cb0b7d598e713dd7023cceed7 [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 {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_base_packages_SystemUI_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
22}
23
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080024genrule {
25 name: "statslog-SystemUI-java-gen",
26 tools: ["stats-log-api-gen"],
27 cmd: "$(location stats-log-api-gen) --java $(out) --module sysui --javaPackage com.android.systemui.shared.system --javaClass SysUiStatsLog",
28 out: ["com/android/systemui/shared/system/SysUiStatsLog.java"],
29}
Jason Monka2f2d822018-08-13 11:10:48 -040030
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080031java_library {
32 name: "SystemUI-statsd",
33
34 srcs: [
35 ":statslog-SystemUI-java-gen",
36 ],
Cole Faust749a6882023-12-20 11:57:03 -080037 lint: {
38 baseline_filename: "lint-baseline.xml",
39 },
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080040}
41
42android_library {
Jason Monka2f2d822018-08-13 11:10:48 -040043 name: "SystemUISharedLib",
Peter Kalauskas84c5a992023-08-23 13:39:23 -070044 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -040045 srcs: [
46 "src/**/*.java",
Josh Tsuji2da469f2021-05-10 11:52:06 -040047 "src/**/*.kt",
48 "src/**/*.aidl",
Winson Chung2b72add2021-02-02 23:27:07 -080049 ":wm_shell-aidls",
Evan Rosky14ea8c62021-09-30 17:28:35 -070050 ":wm_shell_util-sources",
Jason Monka2f2d822018-08-13 11:10:48 -040051 ],
Tony Wickham023cb192018-09-13 15:23:04 -070052 static_libs: [
Hao Dongef486e62023-08-31 22:17:34 +000053 "BiometricsSharedLib",
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080054 "PluginCoreLib",
Hawkwood Glazier8485dc12022-05-21 18:35:22 +000055 "SystemUIAnimationLib",
Hawkwood Glazier44fa7422022-06-07 17:28:09 +000056 "SystemUIPluginLib",
Nick Chameyev0f3c4e52022-05-11 14:49:35 +010057 "SystemUIUnfoldLib",
HyeonjungKim29486382023-08-18 17:02:39 +000058 "SystemUISharedLib-Keyguard",
Peter Kalauskas5d4e2e22023-10-31 22:33:39 +000059 "tracinglib",
Nick Chameyevdc994802021-06-28 19:10:08 +010060 "androidx.dynamicanimation_dynamicanimation",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040061 "androidx.concurrent_concurrent-futures",
Alejandro Nijamkin97860c22022-11-04 12:12:46 -070062 "androidx.lifecycle_lifecycle-runtime-ktx",
63 "androidx.lifecycle_lifecycle-viewmodel-ktx",
64 "androidx.recyclerview_recyclerview",
65 "kotlinx_coroutines_android",
66 "kotlinx_coroutines",
Nicolo' Mazzucato6fb25a62022-01-10 19:56:02 +010067 "dagger2",
68 "jsr330",
Johannes Gallmannb8d96fe2023-12-21 10:44:55 +000069 "com_android_systemui_shared_flags_lib",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040070 ],
Hawkwood Glazier9158a602022-05-27 15:48:40 +000071 resource_dirs: [
72 "res",
73 ],
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040074 min_sdk_version: "current",
Nicolo' Mazzucato6fb25a62022-01-10 19:56:02 +010075 plugins: ["dagger2-compiler"],
Colin Cross6954ea72023-07-18 10:52:21 -070076 kotlincflags: ["-Xjvm-default=all"],
Cole Faust749a6882023-12-20 11:57:03 -080077 lint: {
78 baseline_filename: "lint-baseline.xml",
79 },
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040080}
81
82java_library {
83 name: "SystemUI-flag-types",
84 srcs: [
85 "src/com/android/systemui/flags/Flag.kt",
86 ],
Dave Mankoffd1d48862021-11-05 14:26:41 -040087 include_srcs: true,
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040088 static_kotlin_stdlib: false,
89 java_version: "1.8",
90 min_sdk_version: "current",
Cole Faust749a6882023-12-20 11:57:03 -080091 lint: {
92 baseline_filename: "lint-baseline.xml",
93 },
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040094}
95
96java_library {
97 name: "SystemUIFlagsLib",
98 srcs: [
99 "src/com/android/systemui/flags/**/*.kt",
100 ],
101 static_kotlin_stdlib: false,
102 libs: [
103 "androidx.concurrent_concurrent-futures",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -0400104 ],
105 static_libs: [
106 "SystemUI-flag-types",
Tony Wickham023cb192018-09-13 15:23:04 -0700107 ],
Dave Mankoff8ecf5772022-12-22 17:59:48 +0000108 optimize: {
109 proguard_flags_files: ["proguard_flags.flags"],
110 },
Sunny Goyal226849f2020-05-01 15:45:09 -0700111 java_version: "1.8",
Evan Rosky14ea8c62021-09-30 17:28:35 -0700112 min_sdk_version: "current",
Cole Faust749a6882023-12-20 11:57:03 -0800113 lint: {
114 baseline_filename: "lint-baseline.xml",
115 },
Jason Monka2f2d822018-08-13 11:10:48 -0400116}