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: [ |
| 40 | "res-keyguard", |
| 41 | "res", |
| 42 | ], |
| 43 | static_libs: [ |
| 44 | "SystemUIPluginLib", |
| 45 | "SystemUISharedLib", |
| 46 | "SettingsLib", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 47 | "androidx.legacy_legacy-support-v4", |
| 48 | "androidx.recyclerview_recyclerview", |
| 49 | "androidx.preference_preference", |
| 50 | "androidx.appcompat_appcompat", |
| 51 | "androidx.mediarouter_mediarouter", |
| 52 | "androidx.palette_palette", |
| 53 | "androidx.legacy_legacy-preference-v14", |
| 54 | "androidx.leanback_leanback", |
| 55 | "androidx.slice_slice-core", |
| 56 | "androidx.slice_slice-view", |
| 57 | "androidx.slice_slice-builders", |
| 58 | "androidx.arch.core_core-runtime", |
| 59 | "androidx.lifecycle_lifecycle-extensions", |
| 60 | "SystemUI-tags", |
| 61 | "SystemUI-proto", |
Jason Monk | 73e8ffc | 2018-12-06 14:45:19 -0500 | [diff] [blame] | 62 | "dagger2-2.19", |
| 63 | "jsr330" |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 64 | ], |
| 65 | manifest: "AndroidManifest.xml", |
| 66 | |
| 67 | libs: [ |
| 68 | "telephony-common", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 69 | ], |
| 70 | |
| 71 | aaptflags: [ |
| 72 | "--extra-packages", |
| 73 | "com.android.keyguard", |
| 74 | ], |
Jason Monk | 73e8ffc | 2018-12-06 14:45:19 -0500 | [diff] [blame] | 75 | |
Colin Cross | a3b22bf | 2019-01-23 15:38:30 -0800 | [diff] [blame^] | 76 | plugins: ["dagger2-compiler-2.19"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 77 | } |
| 78 | |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 79 | android_library { |
| 80 | name: "SystemUI-tests", |
| 81 | manifest: "tests/AndroidManifest.xml", |
| 82 | resource_dirs: [ |
| 83 | "tests/res", |
| 84 | "res-keyguard", |
| 85 | "res", |
| 86 | ], |
| 87 | srcs: [ |
| 88 | "tests/src/**/*.kt", |
| 89 | "tests/src/**/*.java", |
| 90 | "src/**/*.kt", |
| 91 | "src/**/*.java", |
| 92 | "src/**/I*.aidl", |
| 93 | ], |
| 94 | static_libs: [ |
| 95 | "SystemUIPluginLib", |
| 96 | "SystemUISharedLib", |
| 97 | "SettingsLib", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 98 | "androidx.legacy_legacy-support-v4", |
| 99 | "androidx.recyclerview_recyclerview", |
| 100 | "androidx.preference_preference", |
| 101 | "androidx.appcompat_appcompat", |
| 102 | "androidx.mediarouter_mediarouter", |
| 103 | "androidx.palette_palette", |
| 104 | "androidx.legacy_legacy-preference-v14", |
| 105 | "androidx.leanback_leanback", |
| 106 | "androidx.slice_slice-core", |
| 107 | "androidx.slice_slice-view", |
| 108 | "androidx.slice_slice-builders", |
| 109 | "androidx.arch.core_core-runtime", |
| 110 | "androidx.lifecycle_lifecycle-extensions", |
| 111 | "SystemUI-tags", |
| 112 | "SystemUI-proto", |
| 113 | "metrics-helper-lib", |
| 114 | "android-support-test", |
| 115 | "mockito-target-inline-minus-junit4", |
| 116 | "testables", |
| 117 | "truth-prebuilt", |
Jason Monk | 27d01a62 | 2018-12-10 15:57:09 -0500 | [diff] [blame] | 118 | "dagger2-2.19", |
| 119 | "jsr330" |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 120 | ], |
| 121 | libs: [ |
| 122 | "android.test.runner", |
| 123 | "telephony-common", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 124 | "android.test.base", |
| 125 | ], |
| 126 | aaptflags: [ |
| 127 | "--extra-packages", |
| 128 | "com.android.keyguard:com.android.systemui", |
| 129 | ], |
Colin Cross | a3b22bf | 2019-01-23 15:38:30 -0800 | [diff] [blame^] | 130 | plugins: ["dagger2-compiler-2.19"], |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 131 | } |
| 132 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 133 | android_app { |
| 134 | name: "SystemUI", |
| 135 | static_libs: [ |
| 136 | "SystemUI-core", |
| 137 | ], |
| 138 | |
| 139 | platform_apis: true, |
Anton Hansson | 9068f65 | 2018-12-10 17:18:15 +0000 | [diff] [blame] | 140 | product_specific: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 141 | certificate: "platform", |
| 142 | privileged: true, |
| 143 | |
| 144 | optimize: { |
| 145 | proguard_flags_files: ["proguard.flags"], |
| 146 | }, |
| 147 | |
| 148 | libs: [ |
| 149 | "telephony-common", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 150 | ], |
| 151 | |
| 152 | dxflags: ["--multi-dex"], |
| 153 | aaptflags: [ |
| 154 | "--extra-packages", |
| 155 | "com.android.keyguard", |
| 156 | ], |
Anton Hansson | c32be24 | 2018-12-10 17:05:08 +0000 | [diff] [blame] | 157 | required: ["privapp_whitelist_com.android.systemui"], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 158 | |
| 159 | } |
Winson Chung | 2dbcf09 | 2018-10-24 13:00:41 -0700 | [diff] [blame] | 160 | |
| 161 | // Only used for products that are shipping legacy Recents |
| 162 | android_app { |
| 163 | name: "SystemUIWithLegacyRecents", |
| 164 | overrides: [ |
| 165 | "SystemUI", |
| 166 | ], |
| 167 | |
| 168 | platform_apis: true, |
| 169 | certificate: "platform", |
| 170 | privileged: true, |
| 171 | |
| 172 | dxflags: ["--multi-dex"], |
| 173 | aaptflags: [ |
| 174 | "--extra-packages", |
| 175 | "com.android.keyguard", |
| 176 | ], |
| 177 | optimize: { |
| 178 | proguard_flags_files: ["proguard.flags", "legacy/recents/proguard.flags"], |
| 179 | }, |
| 180 | |
| 181 | static_libs: [ |
| 182 | "SystemUI-core", |
| 183 | ], |
| 184 | libs: [ |
| 185 | "telephony-common", |
Winson Chung | 2dbcf09 | 2018-10-24 13:00:41 -0700 | [diff] [blame] | 186 | ], |
| 187 | |
| 188 | srcs: [ |
| 189 | "legacy/recents/src/**/*.java", |
| 190 | "legacy/recents/src/**/I*.aidl", |
| 191 | ], |
| 192 | resource_dirs: [ |
| 193 | "legacy/recents/res", |
| 194 | ], |
| 195 | |
| 196 | manifest: "legacy/recents/AndroidManifest.xml", |
| 197 | } |