blob: 4fb3be2d588fe483c5abc79d45421297a8d68647 [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: [
45 "SystemUIPluginLib",
46 "SystemUISharedLib",
47 "SettingsLib",
Jason Monka2f2d822018-08-13 11:10:48 -040048 "androidx.legacy_legacy-support-v4",
49 "androidx.recyclerview_recyclerview",
50 "androidx.preference_preference",
51 "androidx.appcompat_appcompat",
52 "androidx.mediarouter_mediarouter",
53 "androidx.palette_palette",
54 "androidx.legacy_legacy-preference-v14",
55 "androidx.leanback_leanback",
56 "androidx.slice_slice-core",
57 "androidx.slice_slice-view",
58 "androidx.slice_slice-builders",
59 "androidx.arch.core_core-runtime",
60 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -080061 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -040062 "androidx-constraintlayout_constraintlayout",
Hyunyoung Song5347a542019-03-01 13:32:28 -080063 "iconloader_base",
Jason Monka2f2d822018-08-13 11:10:48 -040064 "SystemUI-tags",
65 "SystemUI-proto",
Jason Monk73e8ffc2018-12-06 14:45:19 -050066 "dagger2-2.19",
67 "jsr330"
Jason Monka2f2d822018-08-13 11:10:48 -040068 ],
69 manifest: "AndroidManifest.xml",
70
71 libs: [
72 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -040073 ],
74
Selim Cinek820ba2d2019-06-18 18:59:09 -070075 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050076
Colin Crossa3b22bf2019-01-23 15:38:30 -080077 plugins: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040078}
79
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090080filegroup {
81 name: "SystemUI-tests-utils",
82 srcs: [
Beverly79c89ec2019-12-13 10:33:01 -050083 "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090084 "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
85 "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
86 ],
87 path: "tests/src",
88}
89
Jason Monkae7ced22018-08-22 16:56:58 -040090android_library {
91 name: "SystemUI-tests",
92 manifest: "tests/AndroidManifest.xml",
93 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",
Jason Monkae7ced22018-08-22 16:56:58 -0400110 "androidx.legacy_legacy-support-v4",
111 "androidx.recyclerview_recyclerview",
112 "androidx.preference_preference",
113 "androidx.appcompat_appcompat",
114 "androidx.mediarouter_mediarouter",
115 "androidx.palette_palette",
116 "androidx.legacy_legacy-preference-v14",
117 "androidx.leanback_leanback",
118 "androidx.slice_slice-core",
119 "androidx.slice_slice-view",
120 "androidx.slice_slice-builders",
121 "androidx.arch.core_core-runtime",
122 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800123 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400124 "androidx-constraintlayout_constraintlayout",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700125 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400126 "SystemUI-tags",
127 "SystemUI-proto",
128 "metrics-helper-lib",
Brett Chabot84151d92019-02-27 15:37:59 -0800129 "androidx.test.rules", "hamcrest-library",
Beverly9028d412019-12-11 16:33:16 -0500130 "mockito-target-extended-minus-junit4",
Jason Monkae7ced22018-08-22 16:56:58 -0400131 "testables",
132 "truth-prebuilt",
Jason Monk27d01a622018-12-10 15:57:09 -0500133 "dagger2-2.19",
134 "jsr330"
Jason Monkae7ced22018-08-22 16:56:58 -0400135 ],
136 libs: [
137 "android.test.runner",
138 "telephony-common",
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
165 libs: [
166 "telephony-common",
Jason Monka2f2d822018-08-13 11:10:48 -0400167 ],
168
Selim Cinek820ba2d2019-06-18 18:59:09 -0700169 kotlincflags: ["-Xjvm-default=enable"],
170
Jason Monka2f2d822018-08-13 11:10:48 -0400171 dxflags: ["--multi-dex"],
Anton Hanssonc32be242018-12-10 17:05:08 +0000172 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400173
174}