blob: 7a27676237a1acfffa63f70cee41ce2cf6f483e6 [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",
Hyunyoung Song3d89c932020-04-11 13:31:06 -070048 "SystemUI-statsd",
Jason Monka2f2d822018-08-13 11:10:48 -040049 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -050050 "androidx.viewpager2_viewpager2",
Jason Monka2f2d822018-08-13 11:10:48 -040051 "androidx.legacy_legacy-support-v4",
52 "androidx.recyclerview_recyclerview",
53 "androidx.preference_preference",
54 "androidx.appcompat_appcompat",
55 "androidx.mediarouter_mediarouter",
56 "androidx.palette_palette",
57 "androidx.legacy_legacy-preference-v14",
58 "androidx.leanback_leanback",
59 "androidx.slice_slice-core",
60 "androidx.slice_slice-view",
61 "androidx.slice_slice-builders",
62 "androidx.arch.core_core-runtime",
63 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080064 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -040065 "androidx-constraintlayout_constraintlayout",
Pinyao Ting059091b2020-04-30 10:22:25 -070066 "kotlinx-coroutines-android",
67 "kotlinx-coroutines-core",
Hyunyoung Song5347a542019-03-01 13:32:28 -080068 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040069 "SystemUI-tags",
70 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050071 "dagger2-2.19",
72 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040073 ],
74 manifest: "AndroidManifest.xml",
75
Selim Cinek820ba2d2019-06-18 18:59:09 -070076 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050077
Colin Crossa3b22bf2019-01-23 15:38:30 -080078 plugins: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040079}
80
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090081filegroup {
82 name: "SystemUI-tests-utils",
83 srcs: [
Beverly79c89ec2019-12-13 10:33:01 -050084 "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090085 "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
86 "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
Prabir Pradhan4499bde2020-04-09 15:07:41 -070087 "tests/src/com/android/systemui/util/concurrency/FakeExecutor.java",
88 "tests/src/com/android/systemui/util/time/FakeSystemClock.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090089 ],
90 path: "tests/src",
91}
92
Jason Monkae7ced22018-08-22 16:56:58 -040093android_library {
94 name: "SystemUI-tests",
Sunny Goyaleb18d392020-02-07 16:48:14 -080095 manifest: "tests/AndroidManifest-base.xml",
96 additional_manifests: ["tests/AndroidManifest.xml"],
97
Jason Monkae7ced22018-08-22 16:56:58 -040098 resource_dirs: [
99 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -0800100 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -0400101 "res-keyguard",
102 "res",
103 ],
104 srcs: [
105 "tests/src/**/*.kt",
106 "tests/src/**/*.java",
107 "src/**/*.kt",
108 "src/**/*.java",
109 "src/**/I*.aidl",
110 ],
111 static_libs: [
112 "SystemUIPluginLib",
113 "SystemUISharedLib",
Hyunyoung Song3d89c932020-04-11 13:31:06 -0700114 "SystemUI-statsd",
Jason Monkae7ced22018-08-22 16:56:58 -0400115 "SettingsLib",
Fabian Kozynski713b7272020-03-03 18:35:52 -0500116 "androidx.viewpager2_viewpager2",
Jason Monkae7ced22018-08-22 16:56:58 -0400117 "androidx.legacy_legacy-support-v4",
118 "androidx.recyclerview_recyclerview",
119 "androidx.preference_preference",
120 "androidx.appcompat_appcompat",
121 "androidx.mediarouter_mediarouter",
122 "androidx.palette_palette",
123 "androidx.legacy_legacy-preference-v14",
124 "androidx.leanback_leanback",
125 "androidx.slice_slice-core",
126 "androidx.slice_slice-view",
127 "androidx.slice_slice-builders",
128 "androidx.arch.core_core-runtime",
129 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800130 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400131 "androidx-constraintlayout_constraintlayout",
Pinyao Tingee191b12020-04-29 18:35:39 -0700132 "kotlinx-coroutines-android",
133 "kotlinx-coroutines-core",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700134 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400135 "SystemUI-tags",
136 "SystemUI-proto",
137 "metrics-helper-lib",
Brett Chabot84151d92019-02-27 15:37:59 -0800138 "androidx.test.rules", "hamcrest-library",
Beverly9028d412019-12-11 16:33:16 -0500139 "mockito-target-extended-minus-junit4",
Jason Monkae7ced22018-08-22 16:56:58 -0400140 "testables",
141 "truth-prebuilt",
Jason Monk27d01a622018-12-10 15:57:09 -0500142 "dagger2-2.19",
143 "jsr330"
Jason Monkae7ced22018-08-22 16:56:58 -0400144 ],
145 libs: [
146 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400147 "android.test.base",
148 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700149 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400150 aaptflags: [
151 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700152 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400153 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800154 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400155}
156
Jason Monka2f2d822018-08-13 11:10:48 -0400157android_app {
158 name: "SystemUI",
159 static_libs: [
160 "SystemUI-core",
161 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000162 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400163
164 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900165 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400166 certificate: "platform",
167 privileged: true,
168
169 optimize: {
170 proguard_flags_files: ["proguard.flags"],
171 },
172
Selim Cinek820ba2d2019-06-18 18:59:09 -0700173 kotlincflags: ["-Xjvm-default=enable"],
174
Jason Monka2f2d822018-08-13 11:10:48 -0400175 dxflags: ["--multi-dex"],
Anton Hanssonc32be242018-12-10 17:05:08 +0000176 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400177
178}