• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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: [
35        "src/**/*.kt",
36        "src/**/*.java",
37        "src/**/I*.aidl",
38    ],
39    resource_dirs: [
40        "res-product",
41        "res-keyguard",
42        "res",
43    ],
44    static_libs: [
45        "WindowManager-Shell",
46        "SystemUIPluginLib",
47        "SystemUISharedLib",
48	"SystemUI-statsd",
49        "SettingsLib",
50        "androidx.viewpager2_viewpager2",
51        "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",
64        "androidx.dynamicanimation_dynamicanimation",
65        "androidx-constraintlayout_constraintlayout",
66        "kotlinx-coroutines-android",
67        "kotlinx-coroutines-core",
68        "iconloader_base",
69        "SystemUI-tags",
70        "SystemUI-proto",
71        "dagger2-2.19",
72        "jsr330"
73    ],
74    manifest: "AndroidManifest.xml",
75
76    kotlincflags: ["-Xjvm-default=enable"],
77
78    plugins: ["dagger2-compiler-2.19"],
79}
80
81filegroup {
82    name: "SystemUI-tests-utils",
83    srcs: [
84        "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java",
85        "tests/src/com/android/systemui/statusbar/RankingBuilder.java",
86        "tests/src/com/android/systemui/statusbar/SbnBuilder.java",
87        "tests/src/com/android/systemui/util/concurrency/FakeExecutor.java",
88        "tests/src/com/android/systemui/util/time/FakeSystemClock.java",
89    ],
90    path: "tests/src",
91}
92
93android_library {
94    name: "SystemUI-tests",
95    manifest: "tests/AndroidManifest-base.xml",
96    additional_manifests: ["tests/AndroidManifest.xml"],
97
98    resource_dirs: [
99        "tests/res",
100        "res-product",
101        "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",
114        "SystemUI-statsd",
115        "SettingsLib",
116        "androidx.viewpager2_viewpager2",
117        "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",
130        "androidx.dynamicanimation_dynamicanimation",
131        "androidx-constraintlayout_constraintlayout",
132        "kotlinx-coroutines-android",
133        "kotlinx-coroutines-core",
134        "iconloader_base",
135        "SystemUI-tags",
136        "SystemUI-proto",
137        "metrics-helper-lib",
138        "androidx.test.rules", "hamcrest-library",
139        "mockito-target-extended-minus-junit4",
140        "testables",
141        "truth-prebuilt",
142        "dagger2-2.19",
143        "jsr330"
144    ],
145    libs: [
146        "android.test.runner",
147        "android.test.base",
148    ],
149    kotlincflags: ["-Xjvm-default=enable"],
150    aaptflags: [
151        "--extra-packages",
152        "com.android.systemui",
153    ],
154    plugins: ["dagger2-compiler-2.19"],
155}
156
157android_app {
158    name: "SystemUI",
159    static_libs: [
160        "SystemUI-core",
161    ],
162    resource_dirs: [],
163
164    platform_apis: true,
165    system_ext_specific: true,
166    certificate: "platform",
167    privileged: true,
168
169    optimize: {
170        proguard_flags_files: ["proguard.flags"],
171    },
172
173    kotlincflags: ["-Xjvm-default=enable"],
174
175    dxflags: ["--multi-dex"],
176    required: ["privapp_whitelist_com.android.systemui"],
177
178}
179