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