Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 1 | // Copyright (C) 2018 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Bob Badour | 4bdf380 | 2021-02-12 17:08:17 -0800 | [diff] [blame] | 15 | package { |
Bob Badour | a7548b5 | 2022-01-27 22:04:48 -0800 | [diff] [blame] | 16 | // See: http://go/android-license-faq |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
Bob Badour | 4bdf380 | 2021-02-12 17:08:17 -0800 | [diff] [blame] | 18 | } |
| 19 | |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 20 | min_launcher3_sdk_version = "26" |
| 21 | |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 22 | // Common source files used to build launcher (java and kotlin) |
| 23 | // All sources are split so they can be reused in many other libraries/apps in other folders |
| 24 | filegroup { |
| 25 | name: "launcher-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 26 | srcs: [ |
| 27 | "src/**/*.java", |
| 28 | "src/**/*.kt", |
| 29 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | filegroup { |
| 33 | name: "launcher-quickstep-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 34 | srcs: [ |
| 35 | "quickstep/src/**/*.java", |
| 36 | "quickstep/src/**/*.kt", |
| 37 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | filegroup { |
| 41 | name: "launcher-go-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 42 | srcs: [ |
| 43 | "go/src/**/*.java", |
| 44 | "go/src/**/*.kt", |
| 45 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | filegroup { |
| 49 | name: "launcher-go-quickstep-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 50 | srcs: [ |
| 51 | "go/quickstep/src/**/*.java", |
| 52 | "go/quickstep/src/**/*.kt", |
| 53 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | filegroup { |
| 57 | name: "launcher-src_shortcuts_overrides", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 58 | srcs: [ |
| 59 | "src_shortcuts_overrides/**/*.java", |
| 60 | "src_shortcuts_overrides/**/*.kt", |
| 61 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | filegroup { |
| 65 | name: "launcher-src_ui_overrides", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 66 | srcs: [ |
| 67 | "src_ui_overrides/**/*.java", |
| 68 | "src_ui_overrides/**/*.kt", |
| 69 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 70 | } |
| 71 | |
| 72 | filegroup { |
| 73 | name: "launcher-ext_tests", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 74 | srcs: [ |
| 75 | "ext_tests/**/*.java", |
| 76 | "ext_tests/**/*.kt", |
| 77 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | filegroup { |
| 81 | name: "launcher-quickstep-ext_tests", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 82 | srcs: [ |
| 83 | "quickstep/ext_tests/**/*.java", |
| 84 | "quickstep/ext_tests/**/*.kt", |
| 85 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | // Proguard files for Launcher3 |
| 89 | filegroup { |
| 90 | name: "launcher-proguard-rules", |
| 91 | srcs: ["proguard.flags"], |
| 92 | } |
| 93 | |
vadimt | 09df083 | 2019-03-07 14:59:30 -0800 | [diff] [blame] | 94 | android_library { |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 95 | name: "launcher-aosp-tapl", |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 96 | libs: [ |
| 97 | "framework-statsd", |
| 98 | ], |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 99 | static_libs: [ |
| 100 | "androidx.annotation_annotation", |
Brett Chabot | d7d692c | 2018-10-23 21:17:58 -0700 | [diff] [blame] | 101 | "androidx.test.runner", |
| 102 | "androidx.test.rules", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 103 | "androidx.test.uiautomator_uiautomator", |
Hyunyoung Song | bb71582 | 2020-08-04 10:45:53 -0700 | [diff] [blame] | 104 | "androidx.preference_preference", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 105 | "SystemUISharedLib", |
Kateryna Ivanova | c0a003e | 2023-04-26 15:12:30 +0000 | [diff] [blame] | 106 | "animationlib", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 107 | "launcher-testing-shared", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 108 | ], |
| 109 | srcs: [ |
| 110 | "tests/tapl/**/*.java", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 111 | ], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 112 | resource_dirs: [], |
vadimt | 09df083 | 2019-03-07 14:59:30 -0800 | [diff] [blame] | 113 | manifest: "tests/tapl/AndroidManifest.xml", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 114 | platform_apis: true, |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 115 | lint: { |
| 116 | baseline_filename: "lint-baseline.xml", |
| 117 | }, |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 118 | } |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 119 | |
| 120 | java_library_static { |
thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 121 | name: "launcher_log_protos_lite", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 122 | srcs: [ |
| 123 | "protos/*.proto", |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 124 | "protos_overrides/*.proto", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 125 | ], |
| 126 | sdk_version: "current", |
| 127 | proto: { |
| 128 | type: "lite", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 129 | local_include_dirs: [ |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 130 | "protos", |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 131 | "protos_overrides", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 132 | ], |
| 133 | }, |
thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 134 | static_libs: ["libprotobuf-java-lite"], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 135 | lint: { |
| 136 | baseline_filename: "lint-baseline.xml", |
| 137 | }, |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 138 | } |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 139 | |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 140 | java_library_static { |
| 141 | name: "launcher_quickstep_log_protos_lite", |
| 142 | srcs: [ |
| 143 | "quickstep/protos_overrides/*.proto", |
| 144 | ], |
| 145 | sdk_version: "current", |
| 146 | proto: { |
| 147 | type: "lite", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 148 | local_include_dirs: [ |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 149 | "quickstep/protos_overrides", |
| 150 | ], |
| 151 | }, |
| 152 | static_libs: [ |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 153 | "libprotobuf-java-lite", |
| 154 | "launcher_log_protos_lite", |
| 155 | ], |
| 156 | lint: { |
| 157 | baseline_filename: "lint-baseline.xml", |
| 158 | }, |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 159 | } |
| 160 | |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 161 | java_library { |
| 162 | name: "LauncherPluginLib", |
| 163 | |
| 164 | static_libs: ["PluginCoreLib"], |
| 165 | |
| 166 | srcs: ["src_plugins/**/*.java"], |
| 167 | |
| 168 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 169 | min_sdk_version: min_launcher3_sdk_version, |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 170 | lint: { |
| 171 | baseline_filename: "lint-baseline.xml", |
| 172 | }, |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 173 | } |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 174 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 175 | // Library with all the dependencies for building Launcher3 |
| 176 | android_library { |
| 177 | name: "Launcher3ResLib", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 178 | srcs: [], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 179 | resource_dirs: ["res"], |
| 180 | static_libs: [ |
| 181 | "LauncherPluginLib", |
| 182 | "launcher_quickstep_log_protos_lite", |
| 183 | "androidx-constraintlayout_constraintlayout", |
| 184 | "androidx.recyclerview_recyclerview", |
| 185 | "androidx.dynamicanimation_dynamicanimation", |
| 186 | "androidx.fragment_fragment", |
| 187 | "androidx.preference_preference", |
| 188 | "androidx.slice_slice-view", |
| 189 | "androidx.cardview_cardview", |
Brian Isganitis | 93031bc | 2021-06-09 16:34:45 -0400 | [diff] [blame] | 190 | "com.google.android.material_material", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 191 | "iconloader_base", |
Johannes Gallmann | a82eebd | 2023-07-21 18:02:07 +0200 | [diff] [blame] | 192 | "view_capture", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 193 | "animationlib", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 194 | ], |
| 195 | manifest: "AndroidManifest-common.xml", |
| 196 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 197 | min_sdk_version: min_launcher3_sdk_version, |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 198 | lint: { |
| 199 | baseline_filename: "lint-baseline-res-lib.xml", |
| 200 | }, |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 201 | } |
| 202 | |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 203 | // |
| 204 | // Build rule for Launcher3 dependencies lib. |
| 205 | // |
Anushree Ganjam | 2a14b97 | 2023-08-30 13:31:10 -0700 | [diff] [blame] | 206 | android_library { |
| 207 | name: "Launcher3CommonDepsLib", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 208 | srcs: ["src_build_config/**/*.java"], |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 209 | static_libs: [ |
Anna Zhuravleva | 9c20381 | 2023-11-20 18:30:35 +0000 | [diff] [blame] | 210 | "SystemUI-statsd", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 211 | "Launcher3ResLib", |
| 212 | "launcher-testing-shared", |
Anushree Ganjam | 2a14b97 | 2023-08-30 13:31:10 -0700 | [diff] [blame] | 213 | "animationlib", |
| 214 | "com_android_launcher3_flags_lib", |
Jeremy Sim | 9e44e37 | 2023-10-10 14:54:39 -0700 | [diff] [blame] | 215 | "com_android_wm_shell_flags_lib", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 216 | ], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 217 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 218 | min_sdk_version: min_launcher3_sdk_version, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 219 | manifest: "AndroidManifest-common.xml", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 220 | lint: { |
| 221 | baseline_filename: "lint-baseline-common-deps-lib.xml", |
| 222 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 223 | } |
| 224 | |
| 225 | // |
| 226 | // Build rule for Launcher3 app. |
| 227 | // |
| 228 | android_app { |
| 229 | name: "Launcher3", |
| 230 | |
| 231 | static_libs: [ |
Anushree Ganjam | 2a14b97 | 2023-08-30 13:31:10 -0700 | [diff] [blame] | 232 | "Launcher3CommonDepsLib", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 233 | ], |
| 234 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 235 | ":launcher-src", |
| 236 | ":launcher-src_shortcuts_overrides", |
| 237 | ":launcher-src_ui_overrides", |
| 238 | ":launcher-ext_tests", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 239 | ], |
| 240 | resource_dirs: [ |
| 241 | "ext_tests/res", |
| 242 | ], |
| 243 | optimize: { |
| 244 | proguard_flags_files: ["proguard.flags"], |
| 245 | // Proguard is disable for testing. Derivarive prjects to keep proguard enabled |
| 246 | enabled: false, |
| 247 | }, |
| 248 | |
| 249 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 250 | min_sdk_version: min_launcher3_sdk_version, |
| 251 | target_sdk_version: "current", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 252 | privileged: true, |
| 253 | system_ext_specific: true, |
| 254 | |
| 255 | overrides: [ |
| 256 | "Home", |
| 257 | "Launcher2", |
| 258 | ], |
| 259 | required: ["privapp_whitelist_com.android.launcher3"], |
| 260 | |
| 261 | jacoco: { |
| 262 | include_filter: ["com.android.launcher3.**"], |
| 263 | }, |
| 264 | additional_manifests: [ |
| 265 | "AndroidManifest-common.xml", |
| 266 | ], |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 267 | lint: { |
| 268 | baseline_filename: "lint-baseline-launcher3.xml", |
| 269 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 270 | } |
| 271 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 272 | // Library with all the dependencies for building quickstep |
| 273 | android_library { |
| 274 | name: "QuickstepResLib", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 275 | srcs: [], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 276 | resource_dirs: [ |
| 277 | "quickstep/res", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 278 | ], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 279 | libs: [ |
| 280 | "framework-statsd", |
| 281 | ], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 282 | static_libs: [ |
| 283 | "Launcher3ResLib", |
Schneider Victor-tulias | d0865f8 | 2021-11-09 13:19:21 -0800 | [diff] [blame] | 284 | "lottie", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 285 | "SystemUISharedLib", |
Jagrut Desai | fae321c | 2023-10-30 20:30:39 +0000 | [diff] [blame] | 286 | "SettingsLibSettingsTheme", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 287 | "SystemUI-statsd", |
Kateryna Ivanova | c0a003e | 2023-04-26 15:12:30 +0000 | [diff] [blame] | 288 | "animationlib", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 289 | ], |
| 290 | manifest: "quickstep/AndroidManifest.xml", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 291 | min_sdk_version: "current", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 292 | lint: { |
| 293 | baseline_filename: "lint-baseline.xml", |
| 294 | }, |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 295 | } |
| 296 | |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 297 | // Library with all the dependencies for building Launcher Go |
| 298 | android_library { |
| 299 | name: "LauncherGoResLib", |
| 300 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 301 | ":launcher-src", |
| 302 | ":launcher-quickstep-src", |
| 303 | ":launcher-go-src", |
| 304 | ":launcher-go-quickstep-src", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 305 | ], |
| 306 | resource_dirs: [ |
| 307 | "go/res", |
| 308 | "go/quickstep/res", |
| 309 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 310 | // Note the ordering here is important when it comes to resource |
| 311 | // overriding. We want the most specific resource overrides defined |
| 312 | // in QuickstepResLib to take precendece, so it should be the final |
| 313 | // dependency. See b/205278434 for how this can go wrong. |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 314 | static_libs: [ |
Greg Kaiser | 6f220d9 | 2021-11-05 16:12:47 +0000 | [diff] [blame] | 315 | "Launcher3CommonDepsLib", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 316 | "QuickstepResLib", |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 317 | "androidx.room_room-runtime", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 318 | ], |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 319 | plugins: ["androidx.room_room-compiler-plugin"], |
Arvind Kumar | 384a0ed | 2023-07-07 09:41:29 +0530 | [diff] [blame] | 320 | manifest: "quickstep/AndroidManifest.xml", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 321 | additional_manifests: [ |
| 322 | "go/AndroidManifest.xml", |
| 323 | "AndroidManifest-common.xml", |
| 324 | ], |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 325 | min_sdk_version: "current", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 326 | lint: { |
| 327 | baseline_filename: "lint-baseline-go-res-lib.xml", |
| 328 | }, |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 329 | } |
| 330 | |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 331 | // Build rule for Quickstep library |
| 332 | android_library { |
| 333 | name: "Launcher3QuickStepLib", |
| 334 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 335 | ":launcher-src", |
| 336 | ":launcher-quickstep-src", |
| 337 | ":launcher-src_shortcuts_overrides", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 338 | ], |
Thales Lima | c335ad2 | 2021-11-08 15:31:49 +0000 | [diff] [blame] | 339 | resource_dirs: [], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 340 | libs: [ |
| 341 | "framework-statsd", |
| 342 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 343 | // Note the ordering here is important when it comes to resource |
| 344 | // overriding. We want the most specific resource overrides defined |
| 345 | // in QuickstepResLib to take precendece, so it should be the final |
| 346 | // dependency. See b/208647810 for how this can go wrong. |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 347 | static_libs: [ |
| 348 | "SystemUI-statsd", |
| 349 | "SystemUISharedLib", |
Thales Lima | c335ad2 | 2021-11-08 15:31:49 +0000 | [diff] [blame] | 350 | "Launcher3CommonDepsLib", |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 351 | "QuickstepResLib", |
Kateryna Ivanova | c0a003e | 2023-04-26 15:12:30 +0000 | [diff] [blame] | 352 | "animationlib", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 353 | ], |
| 354 | manifest: "quickstep/AndroidManifest.xml", |
| 355 | platform_apis: true, |
| 356 | min_sdk_version: "current", |
| 357 | lint: { |
| 358 | baseline_filename: "lint-baseline-launcher3.xml", |
| 359 | }, |
| 360 | } |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 361 | |
| 362 | // Build rule for Launcher3 Go app for Android Go devices. |
| 363 | android_app { |
| 364 | name: "Launcher3Go", |
| 365 | |
| 366 | static_libs: ["Launcher3CommonDepsLib"], |
| 367 | |
| 368 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 369 | ":launcher-src", |
| 370 | ":launcher-go-src", |
| 371 | ":launcher-src_ui_overrides", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 372 | ], |
| 373 | |
| 374 | resource_dirs: ["go/res"], |
| 375 | |
| 376 | optimize: { |
| 377 | proguard_flags_files: ["proguard.flags"], |
| 378 | }, |
| 379 | |
| 380 | sdk_version: "current", |
| 381 | min_sdk_version: "current", |
| 382 | target_sdk_version: "current", |
| 383 | privileged: true, |
| 384 | system_ext_specific: true, |
| 385 | overrides: [ |
| 386 | "Home", |
| 387 | "Launcher2", |
| 388 | "Launcher3", |
| 389 | "Launcher3QuickStep", |
| 390 | ], |
| 391 | required: ["privapp_whitelist_com.android.launcher3"], |
| 392 | |
| 393 | additional_manifests: [ |
| 394 | "AndroidManifest.xml", |
| 395 | "AndroidManifest-common.xml", |
| 396 | ], |
| 397 | |
| 398 | manifest: "go/AndroidManifest.xml", |
| 399 | jacoco: { |
| 400 | include_filter: ["com.android.launcher3.*"], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 401 | }, |
| 402 | lint: { |
| 403 | baseline_filename: "lint-baseline.xml", |
| 404 | }, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 405 | |
| 406 | } |
| 407 | |
| 408 | // Build rule for Quickstep app. |
| 409 | android_app { |
| 410 | name: "Launcher3QuickStep", |
| 411 | |
| 412 | static_libs: ["Launcher3QuickStepLib"], |
| 413 | optimize: { |
| 414 | enabled: false, |
| 415 | }, |
| 416 | |
| 417 | platform_apis: true, |
| 418 | min_sdk_version: "current", |
| 419 | target_sdk_version: "current", |
| 420 | |
| 421 | privileged: true, |
| 422 | system_ext_specific: true, |
| 423 | overrides: [ |
| 424 | "Home", |
| 425 | "Launcher2", |
| 426 | "Launcher3", |
| 427 | ], |
| 428 | required: ["privapp_whitelist_com.android.launcher3"], |
| 429 | |
| 430 | resource_dirs: ["quickstep/res"], |
| 431 | |
| 432 | additional_manifests: [ |
| 433 | "quickstep/AndroidManifest-launcher.xml", |
| 434 | "AndroidManifest-common.xml", |
| 435 | ], |
| 436 | |
| 437 | manifest: "quickstep/AndroidManifest.xml", |
| 438 | jacoco: { |
| 439 | include_filter: ["com.android.launcher3.*"], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 440 | }, |
| 441 | lint: { |
| 442 | baseline_filename: "lint-baseline.xml", |
| 443 | }, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 444 | |
| 445 | } |
| 446 | |
| 447 | // Build rule for Launcher3 Go app with quickstep for Android Go devices. |
| 448 | android_app { |
| 449 | name: "Launcher3QuickStepGo", |
| 450 | |
| 451 | static_libs: [ |
| 452 | "SystemUI-statsd", |
| 453 | "SystemUISharedLib", |
| 454 | "LauncherGoResLib", |
| 455 | ], |
| 456 | |
| 457 | platform_apis: true, |
| 458 | min_sdk_version: "current", |
| 459 | target_sdk_version: "current", |
| 460 | |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 461 | srcs: [], |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 462 | |
| 463 | resource_dirs: [ |
| 464 | "go/quickstep/res", |
| 465 | "go/res", |
| 466 | "quickstep/res", |
| 467 | ], |
| 468 | |
| 469 | optimize: { |
| 470 | proguard_flags_files: ["proguard.flags"], |
| 471 | enabled: true, |
| 472 | }, |
| 473 | |
| 474 | privileged: true, |
| 475 | system_ext_specific: true, |
| 476 | overrides: [ |
| 477 | "Home", |
| 478 | "Launcher2", |
| 479 | "Launcher3", |
| 480 | "Launcher3QuickStep", |
| 481 | ], |
| 482 | required: ["privapp_whitelist_com.android.launcher3"], |
| 483 | |
| 484 | additional_manifests: [ |
| 485 | "go/AndroidManifest.xml", |
| 486 | "go/AndroidManifest-launcher.xml", |
| 487 | "AndroidManifest-common.xml", |
| 488 | ], |
| 489 | |
| 490 | manifest: "quickstep/AndroidManifest.xml", |
| 491 | jacoco: { |
| 492 | include_filter: ["com.android.launcher3.*"], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 493 | }, |
| 494 | lint: { |
| 495 | baseline_filename: "lint-baseline.xml", |
| 496 | }, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 497 | |
| 498 | } |