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 | }, |
| 25 | } |
| 26 | |
| 27 | java_library { |
| 28 | name: "SystemUI-tags", |
| 29 | srcs: ["src/com/android/systemui/EventLogTags.logtags"], |
| 30 | } |
| 31 | |
| 32 | android_library { |
| 33 | name: "SystemUI-core", |
| 34 | srcs: [ |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 35 | "src/**/*.kt", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 36 | "src/**/*.java", |
| 37 | "src/**/I*.aidl", |
| 38 | ], |
| 39 | resource_dirs: [ |
Sunny Goyal | b4a2601 | 2019-12-05 15:49:41 -0800 | [diff] [blame] | 40 | "res-product", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 41 | "res-keyguard", |
| 42 | "res", |
| 43 | ], |
| 44 | static_libs: [ |
Winson Chung | 10a9b4b | 2019-12-18 10:01:36 -0800 | [diff] [blame] | 45 | "WindowManager-Shell", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 46 | "SystemUIPluginLib", |
| 47 | "SystemUISharedLib", |
| 48 | "SettingsLib", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 49 | "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 Tsuji | b1a796b | 2019-01-16 15:43:12 -0800 | [diff] [blame] | 62 | "androidx.dynamicanimation_dynamicanimation", |
Steve Elliott | 300b48f | 2019-05-29 14:13:50 -0400 | [diff] [blame] | 63 | "androidx-constraintlayout_constraintlayout", |
Hyunyoung Song | 5347a54 | 2019-03-01 13:32:28 -0800 | [diff] [blame] | 64 | "iconloader_base", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 65 | "SystemUI-tags", |
| 66 | "SystemUI-proto", |
Jason Monk | 73e8ffc | 2018-12-06 14:45:19 -0500 | [diff] [blame] | 67 | "dagger2-2.19", |
| 68 | "jsr330" |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 69 | ], |
| 70 | manifest: "AndroidManifest.xml", |
| 71 | |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 72 | kotlincflags: ["-Xjvm-default=enable"], |
Jason Monk | 73e8ffc | 2018-12-06 14:45:19 -0500 | [diff] [blame] | 73 | |
Colin Cross | a3b22bf | 2019-01-23 15:38:30 -0800 | [diff] [blame] | 74 | plugins: ["dagger2-compiler-2.19"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 75 | } |
| 76 | |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 77 | filegroup { |
| 78 | name: "SystemUI-tests-utils", |
| 79 | srcs: [ |
Beverly | 79c89ec | 2019-12-13 10:33:01 -0500 | [diff] [blame] | 80 | "tests/src/com/android/systemui/statusbar/notification/collection/NotificationEntryBuilder.java", |
Tadashi G. Takaoka | a6572dc | 2019-09-17 15:18:53 +0900 | [diff] [blame] | 81 | "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 Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 87 | android_library { |
| 88 | name: "SystemUI-tests", |
| 89 | manifest: "tests/AndroidManifest.xml", |
| 90 | resource_dirs: [ |
| 91 | "tests/res", |
Sunny Goyal | b4a2601 | 2019-12-05 15:49:41 -0800 | [diff] [blame] | 92 | "res-product", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 93 | "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 Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 107 | "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 Tsuji | b1a796b | 2019-01-16 15:43:12 -0800 | [diff] [blame] | 120 | "androidx.dynamicanimation_dynamicanimation", |
Steve Elliott | 300b48f | 2019-05-29 14:13:50 -0400 | [diff] [blame] | 121 | "androidx-constraintlayout_constraintlayout", |
Lyn Han | 1b4f25e | 2019-06-11 13:56:34 -0700 | [diff] [blame] | 122 | "iconloader_base", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 123 | "SystemUI-tags", |
| 124 | "SystemUI-proto", |
| 125 | "metrics-helper-lib", |
Brett Chabot | 84151d9 | 2019-02-27 15:37:59 -0800 | [diff] [blame] | 126 | "androidx.test.rules", "hamcrest-library", |
Beverly | 9028d41 | 2019-12-11 16:33:16 -0500 | [diff] [blame] | 127 | "mockito-target-extended-minus-junit4", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 128 | "testables", |
| 129 | "truth-prebuilt", |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 130 | "dagger2-2.19", |
| 131 | "jsr330" |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 132 | ], |
| 133 | libs: [ |
| 134 | "android.test.runner", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 135 | "android.test.base", |
| 136 | ], |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 137 | kotlincflags: ["-Xjvm-default=enable"], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 138 | aaptflags: [ |
| 139 | "--extra-packages", |
Hyunyoung Song | 8f9d34c | 2019-08-30 14:47:43 -0700 | [diff] [blame] | 140 | "com.android.systemui", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 141 | ], |
Colin Cross | a3b22bf | 2019-01-23 15:38:30 -0800 | [diff] [blame] | 142 | plugins: ["dagger2-compiler-2.19"], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 143 | } |
| 144 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 145 | android_app { |
| 146 | name: "SystemUI", |
| 147 | static_libs: [ |
| 148 | "SystemUI-core", |
| 149 | ], |
Anton Hansson | 7ccca9f | 2019-02-08 09:01:32 +0000 | [diff] [blame] | 150 | resource_dirs: [], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 151 | |
| 152 | platform_apis: true, |
Jeongik Cha | d45d9e1 | 2019-12-04 13:38:39 +0900 | [diff] [blame] | 153 | system_ext_specific: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 154 | certificate: "platform", |
| 155 | privileged: true, |
| 156 | |
| 157 | optimize: { |
| 158 | proguard_flags_files: ["proguard.flags"], |
| 159 | }, |
| 160 | |
Selim Cinek | 820ba2d | 2019-06-18 18:59:09 -0700 | [diff] [blame] | 161 | kotlincflags: ["-Xjvm-default=enable"], |
| 162 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 163 | dxflags: ["--multi-dex"], |
Anton Hansson | c32be24 | 2018-12-10 17:05:08 +0000 | [diff] [blame] | 164 | required: ["privapp_whitelist_com.android.systemui"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 165 | |
| 166 | } |