blob: 0eadcc74174747e576330c936c2a3de88ae01509 [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001//
2// Copyright (C) 2018 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
17java_library {
18 name: "SystemUI-proto",
19
20 srcs: ["src/**/*.proto"],
21
22 proto: {
23 type: "nano",
24 },
25}
26
27java_library {
28 name: "SystemUI-tags",
29 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
30}
31
32android_library {
33 name: "SystemUI-core",
34 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -040035 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -040036 "src/**/*.java",
37 "src/**/I*.aidl",
38 ],
39 resource_dirs: [
Sunny Goyalb4a26012019-12-05 15:49:41 -080040 "res-product",
Jason Monka2f2d822018-08-13 11:10:48 -040041 "res-keyguard",
42 "res",
43 ],
44 static_libs: [
Winson Chung10a9b4b2019-12-18 10:01:36 -080045 "WindowManager-Shell",
Jason Monka2f2d822018-08-13 11:10:48 -040046 "SystemUIPluginLib",
47 "SystemUISharedLib",
48 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -050049 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -040050 "androidx.legacy_legacy-support-v4",
51 "androidx.recyclerview_recyclerview",
52 "androidx.preference_preference",
53 "androidx.appcompat_appcompat",
54 "androidx.mediarouter_mediarouter",
55 "androidx.palette_palette",
56 "androidx.legacy_legacy-preference-v14",
57 "androidx.leanback_leanback",
58 "androidx.slice_slice-core",
59 "androidx.slice_slice-view",
60 "androidx.slice_slice-builders",
61 "androidx.arch.core_core-runtime",
62 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080063 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -040064 "androidx-constraintlayout_constraintlayout",
Hyunyoung Song5347a542019-03-01 13:32:28 -080065 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040066 "SystemUI-tags",
67 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050068 "dagger2-2.19",
69 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040070 ],
71 manifest: "AndroidManifest.xml",
72
Selim Cinek820ba2d2019-06-18 18:59:09 -070073 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050074
Colin Crossa3b22bf2019-01-23 15:38:30 -080075 plugins: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040076}
77
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090078filegroup {
79 name: "SystemUI-tests-utils",
80 srcs: [
Beverly79c89ec2019-12-13 10:33:01 -050081 "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090082 "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
83 "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
84 ],
85 path: "tests/src",
86}
87
Jason Monkae7ced22018-08-22 16:56:58 -040088android_library {
89 name: "SystemUI-tests",
Sunny Goyaleb18d392020-02-07 16:48:14 -080090 manifest: "tests/AndroidManifest-base.xml",
91 additional_manifests: ["tests/AndroidManifest.xml"],
92
Jason Monkae7ced22018-08-22 16:56:58 -040093 resource_dirs: [
94 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -080095 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -040096 "res-keyguard",
97 "res",
98 ],
99 srcs: [
100 "tests/src/**/*.kt",
101 "tests/src/**/*.java",
102 "src/**/*.kt",
103 "src/**/*.java",
104 "src/**/I*.aidl",
105 ],
106 static_libs: [
107 "SystemUIPluginLib",
108 "SystemUISharedLib",
109 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500110 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400111 "androidx.legacy_legacy-support-v4",
112 "androidx.recyclerview_recyclerview",
113 "androidx.preference_preference",
114 "androidx.appcompat_appcompat",
115 "androidx.mediarouter_mediarouter",
116 "androidx.palette_palette",
117 "androidx.legacy_legacy-preference-v14",
118 "androidx.leanback_leanback",
119 "androidx.slice_slice-core",
120 "androidx.slice_slice-view",
121 "androidx.slice_slice-builders",
122 "androidx.arch.core_core-runtime",
123 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800124 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400125 "androidx-constraintlayout_constraintlayout",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700126 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400127 "SystemUI-tags",
128 "SystemUI-proto",
129 "metrics-helper-lib",
Brett Chabot84151d92019-02-27 15:37:59 -0800130 "androidx.test.rules", "hamcrest-library",
Beverly9028d412019-12-11 16:33:16 -0500131 "mockito-target-extended-minus-junit4",
Jason Monkae7ced22018-08-22 16:56:58 -0400132 "testables",
133 "truth-prebuilt",
Jason Monk27d01a622018-12-10 15:57:09 -0500134 "dagger2-2.19",
135 "jsr330"
Jason Monkae7ced22018-08-22 16:56:58 -0400136 ],
137 libs: [
138 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400139 "android.test.base",
140 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700141 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400142 aaptflags: [
143 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700144 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400145 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800146 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400147}
148
Jason Monka2f2d822018-08-13 11:10:48 -0400149android_app {
150 name: "SystemUI",
151 static_libs: [
152 "SystemUI-core",
153 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000154 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400155
156 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900157 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400158 certificate: "platform",
159 privileged: true,
160
161 optimize: {
162 proguard_flags_files: ["proguard.flags"],
163 },
164
Selim Cinek820ba2d2019-06-18 18:59:09 -0700165 kotlincflags: ["-Xjvm-default=enable"],
166
Jason Monka2f2d822018-08-13 11:10:48 -0400167 dxflags: ["--multi-dex"],
Anton Hanssonc32be242018-12-10 17:05:08 +0000168 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400169
170}