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