blob: c238d7d49f9b07de85747b7394bff9dc3f8049b5 [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",
Jason Monka2f2d822018-08-13 11:10:48 -040049 "androidx.legacy_legacy-support-v4",
50 "androidx.recyclerview_recyclerview",
51 "androidx.preference_preference",
52 "androidx.appcompat_appcompat",
53 "androidx.mediarouter_mediarouter",
54 "androidx.palette_palette",
55 "androidx.legacy_legacy-preference-v14",
56 "androidx.leanback_leanback",
57 "androidx.slice_slice-core",
58 "androidx.slice_slice-view",
59 "androidx.slice_slice-builders",
60 "androidx.arch.core_core-runtime",
61 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080062 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -040063 "androidx-constraintlayout_constraintlayout",
Hyunyoung Song5347a542019-03-01 13:32:28 -080064 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040065 "SystemUI-tags",
66 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050067 "dagger2-2.19",
68 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040069 ],
70 manifest: "AndroidManifest.xml",
71
72 libs: [
73 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -040074 ],
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",
87 ],
88 path: "tests/src",
89}
90
Jason Monkae7ced22018-08-22 16:56:58 -040091android_library {
92 name: "SystemUI-tests",
93 manifest: "tests/AndroidManifest.xml",
94 resource_dirs: [
95 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -080096 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -040097 "res-keyguard",
98 "res",
99 ],
100 srcs: [
101 "tests/src/**/*.kt",
102 "tests/src/**/*.java",
103 "src/**/*.kt",
104 "src/**/*.java",
105 "src/**/I*.aidl",
106 ],
107 static_libs: [
108 "SystemUIPluginLib",
109 "SystemUISharedLib",
110 "SettingsLib",
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",
139 "telephony-common",
Jason Monkae7ced22018-08-22 16:56:58 -0400140 "android.test.base",
141 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700142 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400143 aaptflags: [
144 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700145 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400146 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800147 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400148}
149
Jason Monka2f2d822018-08-13 11:10:48 -0400150android_app {
151 name: "SystemUI",
152 static_libs: [
153 "SystemUI-core",
154 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000155 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400156
157 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900158 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400159 certificate: "platform",
160 privileged: true,
161
162 optimize: {
163 proguard_flags_files: ["proguard.flags"],
164 },
165
166 libs: [
167 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -0400168 ],
169
Selim Cinek820ba2d2019-06-18 18:59:09 -0700170 kotlincflags: ["-Xjvm-default=enable"],
171
Jason Monka2f2d822018-08-13 11:10:48 -0400172 dxflags: ["--multi-dex"],
Anton Hanssonc32be242018-12-10 17:05:08 +0000173 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400174
175}