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