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