blob: de174b13a459edbb4d50e24e4776cf2c957322b7 [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
Selim Cinek820ba2d2019-06-18 18:59:09 -070072 kotlincflags: ["-Xjvm-default=enable"],
Jason Monk73e8ffc2018-12-06 14:45:19 -050073
Colin Crossa3b22bf2019-01-23 15:38:30 -080074 plugins: ["dagger2-compiler-2.19"],
Jason Monka2f2d822018-08-13 11:10:48 -040075}
76
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090077filegroup {
78 name: "SystemUI-tests-utils",
79 srcs: [
Beverly79c89ec2019-12-13 10:33:01 -050080 "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
Tadashi G. Takaokaa6572dc2019-09-17 15:18:53 +090081 "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
82 "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
83 ],
84 path: "tests/src",
85}
86
Jason Monkae7ced22018-08-22 16:56:58 -040087android_library {
88 name: "SystemUI-tests",
89 manifest: "tests/AndroidManifest.xml",
90 resource_dirs: [
91 "tests/res",
Sunny Goyalb4a26012019-12-05 15:49:41 -080092 "res-product",
Jason Monkae7ced22018-08-22 16:56:58 -040093 "res-keyguard",
94 "res",
95 ],
96 srcs: [
97 "tests/src/**/*.kt",
98 "tests/src/**/*.java",
99 "src/**/*.kt",
100 "src/**/*.java",
101 "src/**/I*.aidl",
102 ],
103 static_libs: [
104 "SystemUIPluginLib",
105 "SystemUISharedLib",
106 "SettingsLib",
Jason Monkae7ced22018-08-22 16:56:58 -0400107 "androidx.legacy_legacy-support-v4",
108 "androidx.recyclerview_recyclerview",
109 "androidx.preference_preference",
110 "androidx.appcompat_appcompat",
111 "androidx.mediarouter_mediarouter",
112 "androidx.palette_palette",
113 "androidx.legacy_legacy-preference-v14",
114 "androidx.leanback_leanback",
115 "androidx.slice_slice-core",
116 "androidx.slice_slice-view",
117 "androidx.slice_slice-builders",
118 "androidx.arch.core_core-runtime",
119 "androidx.lifecycle_lifecycle-extensions",
Joshua Tsujib1a796b2019-01-16 15:43:12 -0800120 "androidx.dynamicanimation_dynamicanimation",
Steve Elliott300b48f2019-05-29 14:13:50 -0400121 "androidx-constraintlayout_constraintlayout",
Lyn Han1b4f25e2019-06-11 13:56:34 -0700122 "iconloader_base",
Jason Monkae7ced22018-08-22 16:56:58 -0400123 "SystemUI-tags",
124 "SystemUI-proto",
125 "metrics-helper-lib",
Brett Chabot84151d92019-02-27 15:37:59 -0800126 "androidx.test.rules", "hamcrest-library",
Beverly9028d412019-12-11 16:33:16 -0500127 "mockito-target-extended-minus-junit4",
Jason Monkae7ced22018-08-22 16:56:58 -0400128 "testables",
129 "truth-prebuilt",
Jason Monk27d01a622018-12-10 15:57:09 -0500130 "dagger2-2.19",
131 "jsr330"
Jason Monkae7ced22018-08-22 16:56:58 -0400132 ],
133 libs: [
134 "android.test.runner",
Jason Monkae7ced22018-08-22 16:56:58 -0400135 "android.test.base",
136 ],
Selim Cinek820ba2d2019-06-18 18:59:09 -0700137 kotlincflags: ["-Xjvm-default=enable"],
Jason Monkae7ced22018-08-22 16:56:58 -0400138 aaptflags: [
139 "--extra-packages",
Hyunyoung Song8f9d34c2019-08-30 14:47:43 -0700140 "com.android.systemui",
Jason Monkae7ced22018-08-22 16:56:58 -0400141 ],
Colin Crossa3b22bf2019-01-23 15:38:30 -0800142 plugins: ["dagger2-compiler-2.19"],
Jason Monkae7ced22018-08-22 16:56:58 -0400143}
144
Jason Monka2f2d822018-08-13 11:10:48 -0400145android_app {
146 name: "SystemUI",
147 static_libs: [
148 "SystemUI-core",
149 ],
Anton Hansson7ccca9f2019-02-08 09:01:32 +0000150 resource_dirs: [],
Jason Monka2f2d822018-08-13 11:10:48 -0400151
152 platform_apis: true,
Jeongik Chad45d9e12019-12-04 13:38:39 +0900153 system_ext_specific: true,
Jason Monka2f2d822018-08-13 11:10:48 -0400154 certificate: "platform",
155 privileged: true,
156
157 optimize: {
158 proguard_flags_files: ["proguard.flags"],
159 },
160
Selim Cinek820ba2d2019-06-18 18:59:09 -0700161 kotlincflags: ["-Xjvm-default=enable"],
162
Jason Monka2f2d822018-08-13 11:10:48 -0400163 dxflags: ["--multi-dex"],
Anton Hanssonc32be242018-12-10 17:05:08 +0000164 required: ["privapp_whitelist_com.android.systemui"],
Jason Monka2f2d822018-08-13 11:10:48 -0400165
166}