Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 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 | |
| 17 | java_library { |
| 18 | name: "SystemUI-proto", |
| 19 | |
| 20 | srcs: ["src/**/*.proto"], |
| 21 | |
| 22 | proto: { |
| 23 | type: "nano", |
| 24 | }, |
Winson Chung | eb1aa3d | 2020-08-25 19:02:29 -0700 | [diff] [blame] | 25 | |
| 26 | libs: [ |
| 27 | "WindowManager-Shell-proto", |
| 28 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | java_library { |
| 32 | name: "SystemUI-tags", |
| 33 | srcs: ["src/com/android/systemui/EventLogTags.logtags"], |
| 34 | } |
| 35 | |
Dave Mankoff | 8012d7b | 2020-11-13 17:34:39 -0500 | [diff] [blame] | 36 | java_library { |
| 37 | name: "SystemUI-sensors", |
| 38 | srcs: [ |
| 39 | "src/com/android/systemui/util/sensors/ThresholdSensor.java", |
| 40 | ] |
| 41 | } |
| 42 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 43 | android_library { |
| 44 | name: "SystemUI-core", |
| 45 | srcs: [ |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 46 | "src/**/*.kt", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 47 | "src/**/*.java", |
| 48 | "src/**/I*.aidl", |
| 49 | ], |
| 50 | resource_dirs: [ |
Sunny Goyal | b4a2601 | 2019-12-05 15:49:41 -0800 | [diff] [blame] | 51 | "res-product", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 52 | "res-keyguard", |
| 53 | "res", |
| 54 | ], |
| 55 | static_libs: [ |
Winson Chung | 10a9b4b | 2019-12-18 10:01:36 -0800 | [diff] [blame] | 56 | "WindowManager-Shell", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 57 | "SystemUIPluginLib", |
| 58 | "SystemUISharedLib", |
Jerry Chang | 919d1d2 | 2020-07-16 12:31:24 +0800 | [diff] [blame] | 59 | "SystemUI-statsd", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 60 | "SettingsLib", |
Fabian Kozynski | 713b727 | 2020-03-03 18:35:52 -0500 | [diff] [blame] | 61 | "androidx.viewpager2_viewpager2", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 62 | "androidx.legacy_legacy-support-v4", |
| 63 | "androidx.recyclerview_recyclerview", |
| 64 | "androidx.preference_preference", |
| 65 | "androidx.appcompat_appcompat", |
| 66 | "androidx.mediarouter_mediarouter", |
| 67 | "androidx.palette_palette", |
| 68 | "androidx.legacy_legacy-preference-v14", |
| 69 | "androidx.leanback_leanback", |
| 70 | "androidx.slice_slice-core", |
| 71 | "androidx.slice_slice-view", |
| 72 | "androidx.slice_slice-builders", |
| 73 | "androidx.arch.core_core-runtime", |
| 74 | "androidx.lifecycle_lifecycle-extensions", |
Joshua Tsuji | b1a796b | 2019-01-16 15:43:12 -0800 | [diff] [blame] | 75 | "androidx.dynamicanimation_dynamicanimation", |
Steve Elliott | 300b48f | 2019-05-29 14:13:50 -0400 | [diff] [blame] | 76 | "androidx-constraintlayout_constraintlayout", |
Miranda Kephart | e1a22b9 | 2020-12-16 14:01:12 -0500 | [diff] [blame^] | 77 | "androidx.exifinterface_exifinterface", |
Pinyao Ting | 059091b | 2020-04-30 10:22:25 -0700 | [diff] [blame] | 78 | "kotlinx-coroutines-android", |
| 79 | "kotlinx-coroutines-core", |
Hyunyoung Song | 5347a54 | 2019-03-01 13:32:28 -0800 | [diff] [blame] | 80 | "iconloader_base", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 81 | "SystemUI-tags", |
| 82 | "SystemUI-proto", |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 83 | "dagger2", |
Jason Monk | 73e8ffc | 2018-12-06 14:45:19 -0500 | [diff] [blame] | 84 | "jsr330" |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 85 | ], |
| 86 | manifest: "AndroidManifest.xml", |
| 87 | |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 88 | kotlincflags: ["-Xjvm-default=enable"], |
Jason Monk | 73e8ffc | 2018-12-06 14:45:19 -0500 | [diff] [blame] | 89 | |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 90 | plugins: ["dagger2-compiler"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 91 | } |
| 92 | |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 93 | filegroup { |
| 94 | name: "SystemUI-tests-utils", |
| 95 | srcs: [ |
Beverly | 79c89ec | 2019-12-13 10:33:01 -0500 | [diff] [blame] | 96 | "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java", |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 97 | "tests/src/com/android/systemui/statusbar/RankingBuilder.java", |
| 98 | "tests/src/com/android/systemui/statusbar/SbnBuilder.java", |
Prabir Pradhan | 4499bde | 2020-04-09 15:07:41 -0700 | [diff] [blame] | 99 | "tests/src/com/android/systemui/util/concurrency/FakeExecutor.java", |
| 100 | "tests/src/com/android/systemui/util/time/FakeSystemClock.java", |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 101 | ], |
| 102 | path: "tests/src", |
| 103 | } |
| 104 | |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 105 | android_library { |
| 106 | name: "SystemUI-tests", |
Sunny Goyal | eb18d39 | 2020-02-07 16:48:14 -0800 | [diff] [blame] | 107 | manifest: "tests/AndroidManifest-base.xml", |
| 108 | additional_manifests: ["tests/AndroidManifest.xml"], |
| 109 | |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 110 | resource_dirs: [ |
| 111 | "tests/res", |
Sunny Goyal | b4a2601 | 2019-12-05 15:49:41 -0800 | [diff] [blame] | 112 | "res-product", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 113 | "res-keyguard", |
| 114 | "res", |
| 115 | ], |
| 116 | srcs: [ |
| 117 | "tests/src/**/*.kt", |
| 118 | "tests/src/**/*.java", |
| 119 | "src/**/*.kt", |
| 120 | "src/**/*.java", |
| 121 | "src/**/I*.aidl", |
| 122 | ], |
| 123 | static_libs: [ |
| 124 | "SystemUIPluginLib", |
| 125 | "SystemUISharedLib", |
Hyunyoung Song | 3d89c93 | 2020-04-11 13:31:06 -0700 | [diff] [blame] | 126 | "SystemUI-statsd", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 127 | "SettingsLib", |
Fabian Kozynski | 713b727 | 2020-03-03 18:35:52 -0500 | [diff] [blame] | 128 | "androidx.viewpager2_viewpager2", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 129 | "androidx.legacy_legacy-support-v4", |
| 130 | "androidx.recyclerview_recyclerview", |
| 131 | "androidx.preference_preference", |
| 132 | "androidx.appcompat_appcompat", |
| 133 | "androidx.mediarouter_mediarouter", |
| 134 | "androidx.palette_palette", |
| 135 | "androidx.legacy_legacy-preference-v14", |
| 136 | "androidx.leanback_leanback", |
| 137 | "androidx.slice_slice-core", |
| 138 | "androidx.slice_slice-view", |
| 139 | "androidx.slice_slice-builders", |
| 140 | "androidx.arch.core_core-runtime", |
| 141 | "androidx.lifecycle_lifecycle-extensions", |
Joshua Tsuji | b1a796b | 2019-01-16 15:43:12 -0800 | [diff] [blame] | 142 | "androidx.dynamicanimation_dynamicanimation", |
Steve Elliott | 300b48f | 2019-05-29 14:13:50 -0400 | [diff] [blame] | 143 | "androidx-constraintlayout_constraintlayout", |
Miranda Kephart | e1a22b9 | 2020-12-16 14:01:12 -0500 | [diff] [blame^] | 144 | "androidx.exifinterface_exifinterface", |
Pinyao Ting | ee191b1 | 2020-04-29 18:35:39 -0700 | [diff] [blame] | 145 | "kotlinx-coroutines-android", |
| 146 | "kotlinx-coroutines-core", |
Lyn Han | 1b4f25e | 2019-06-11 13:56:34 -0700 | [diff] [blame] | 147 | "iconloader_base", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 148 | "SystemUI-tags", |
| 149 | "SystemUI-proto", |
| 150 | "metrics-helper-lib", |
Tadashi G. Takaoka | c7340fb | 2020-10-20 17:50:13 +0900 | [diff] [blame] | 151 | "hamcrest-library", |
| 152 | "androidx.test.rules", |
| 153 | "androidx.test.uiautomator", |
Beverly | 9028d41 | 2019-12-11 16:33:16 -0500 | [diff] [blame] | 154 | "mockito-target-extended-minus-junit4", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 155 | "testables", |
| 156 | "truth-prebuilt", |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 157 | "dagger2", |
Bill Lin | a17858d1 | 2020-07-14 10:30:10 +0800 | [diff] [blame] | 158 | "jsr330", |
| 159 | "WindowManager-Shell", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 160 | ], |
| 161 | libs: [ |
| 162 | "android.test.runner", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 163 | "android.test.base", |
| 164 | ], |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 165 | kotlincflags: ["-Xjvm-default=enable"], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 166 | aaptflags: [ |
| 167 | "--extra-packages", |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 168 | "com.android.systemui", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 169 | ], |
Dave Mankoff | dffcc47 | 2020-07-08 15:25:16 -0400 | [diff] [blame] | 170 | plugins: ["dagger2-compiler"], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 171 | } |
| 172 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 173 | android_app { |
| 174 | name: "SystemUI", |
Jeff Sharkey | d23b537 | 2020-10-23 14:30:42 -0600 | [diff] [blame] | 175 | defaults: ["platform_app_defaults"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 176 | static_libs: [ |
| 177 | "SystemUI-core", |
| 178 | ], |
Anton Hansson | 7ccca9f | 2019-02-08 09:01:32 +0000 | [diff] [blame] | 179 | resource_dirs: [], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 180 | |
| 181 | platform_apis: true, |
Jeongik Cha | d45d9e1 | 2019-12-04 13:38:39 +0900 | [diff] [blame] | 182 | system_ext_specific: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 183 | certificate: "platform", |
| 184 | privileged: true, |
| 185 | |
| 186 | optimize: { |
| 187 | proguard_flags_files: ["proguard.flags"], |
| 188 | }, |
| 189 | |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 190 | kotlincflags: ["-Xjvm-default=enable"], |
| 191 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 192 | dxflags: ["--multi-dex"], |
Winson Chung | b754f52 | 2020-08-03 22:17:08 -0700 | [diff] [blame] | 193 | required: [ |
| 194 | "privapp_whitelist_com.android.systemui", |
| 195 | "checked-wm_shell_protolog.json", |
| 196 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 197 | } |