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", |
Jon Miranda | 27f9559 | 2022-04-06 17:29:09 +0000 | [diff] [blame] | 82 | "SystemUIAnimationLib", |
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 | e016d58 | 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", |
Michael Bestas | 3803d3a | 2023-03-14 04:39:27 +0200 | [diff] [blame] | 163 | "view_capture", |
Edward Cross | e016d58 | 2018-07-31 15:17:57 +0200 | [diff] [blame] | 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", |
Michael Bestas | ce0bcfe | 2023-06-14 02:20:11 +0300 | [diff] [blame] | 183 | "org.lineageos.platform" |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 184 | ], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 185 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 186 | min_sdk_version: min_launcher3_sdk_version, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 187 | manifest: "AndroidManifest-common.xml", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 188 | lint: { |
| 189 | baseline_filename: "lint-baseline-common-deps-lib.xml", |
| 190 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | // |
| 194 | // Build rule for Launcher3 app. |
| 195 | // |
| 196 | android_app { |
Alexander Martinz | d97e43b | 2023-04-17 13:35:15 +0200 | [diff] [blame] | 197 | name: "SHIFT-Home", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 198 | |
| 199 | static_libs: [ |
| 200 | "Launcher3CommonDepsLib", |
| 201 | ], |
| 202 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 203 | ":launcher-src", |
| 204 | ":launcher-src_shortcuts_overrides", |
| 205 | ":launcher-src_ui_overrides", |
| 206 | ":launcher-ext_tests", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 207 | ], |
| 208 | resource_dirs: [ |
| 209 | "ext_tests/res", |
| 210 | ], |
| 211 | optimize: { |
| 212 | proguard_flags_files: ["proguard.flags"], |
| 213 | // Proguard is disable for testing. Derivarive prjects to keep proguard enabled |
| 214 | enabled: false, |
| 215 | }, |
| 216 | |
| 217 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 218 | min_sdk_version: min_launcher3_sdk_version, |
| 219 | target_sdk_version: "current", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 220 | privileged: true, |
| 221 | system_ext_specific: true, |
| 222 | |
| 223 | overrides: [ |
| 224 | "Home", |
| 225 | "Launcher2", |
Alexander Martinz | d97e43b | 2023-04-17 13:35:15 +0200 | [diff] [blame] | 226 | "Trebuchet", |
Nolen Johnson | 11c9ebd | 2022-09-27 17:08:57 -0400 | [diff] [blame] | 227 | "QuickSearchBox", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 228 | ], |
| 229 | required: ["privapp_whitelist_com.android.launcher3"], |
| 230 | |
| 231 | jacoco: { |
| 232 | include_filter: ["com.android.launcher3.**"], |
| 233 | }, |
| 234 | additional_manifests: [ |
| 235 | "AndroidManifest-common.xml", |
| 236 | ], |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 237 | lint: { |
| 238 | baseline_filename: "lint-baseline-launcher3.xml", |
| 239 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 240 | } |
| 241 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 242 | // Library with all the dependencies for building quickstep |
| 243 | android_library { |
| 244 | name: "QuickstepResLib", |
| 245 | srcs: [ ], |
| 246 | resource_dirs: [ |
| 247 | "quickstep/res", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 248 | ], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 249 | libs: [ |
| 250 | "framework-statsd", |
| 251 | ], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 252 | static_libs: [ |
| 253 | "Launcher3ResLib", |
Schneider Victor-tulias | d0865f8 | 2021-11-09 13:19:21 -0800 | [diff] [blame] | 254 | "lottie", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 255 | "SystemUISharedLib", |
| 256 | "SystemUI-statsd", |
Jon Miranda | 27f9559 | 2022-04-06 17:29:09 +0000 | [diff] [blame] | 257 | "SystemUIAnimationLib", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 258 | ], |
| 259 | manifest: "quickstep/AndroidManifest.xml", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 260 | min_sdk_version: "current", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 261 | } |
| 262 | |
| 263 | |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 264 | // Library with all the dependencies for building Launcher Go |
| 265 | android_library { |
| 266 | name: "LauncherGoResLib", |
| 267 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 268 | ":launcher-src", |
| 269 | ":launcher-quickstep-src", |
| 270 | ":launcher-go-src", |
| 271 | ":launcher-go-quickstep-src", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 272 | ], |
| 273 | resource_dirs: [ |
| 274 | "go/res", |
| 275 | "go/quickstep/res", |
| 276 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 277 | // Note the ordering here is important when it comes to resource |
| 278 | // overriding. We want the most specific resource overrides defined |
| 279 | // in QuickstepResLib to take precendece, so it should be the final |
| 280 | // dependency. See b/205278434 for how this can go wrong. |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 281 | static_libs: [ |
Greg Kaiser | 6f220d9 | 2021-11-05 16:12:47 +0000 | [diff] [blame] | 282 | "Launcher3CommonDepsLib", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 283 | "QuickstepResLib", |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 284 | "androidx.room_room-runtime", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 285 | ], |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 286 | plugins: ["androidx.room_room-compiler-plugin"], |
Bruno Martins | 8c54c24 | 2023-10-02 23:05:29 +0100 | [diff] [blame] | 287 | manifest: "go/AndroidManifest-launcher.xml", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 288 | additional_manifests: [ |
| 289 | "go/AndroidManifest.xml", |
| 290 | "AndroidManifest-common.xml", |
| 291 | ], |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 292 | min_sdk_version: "current", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 293 | lint: { |
| 294 | baseline_filename: "lint-baseline-go-res-lib.xml", |
| 295 | }, |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 296 | } |
| 297 | |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 298 | // Build rule for Quickstep library |
| 299 | android_library { |
| 300 | name: "Launcher3QuickStepLib", |
| 301 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 302 | ":launcher-src", |
| 303 | ":launcher-quickstep-src", |
| 304 | ":launcher-src_shortcuts_overrides", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 305 | ], |
Thales Lima | c335ad2 | 2021-11-08 15:31:49 +0000 | [diff] [blame] | 306 | resource_dirs: [], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 307 | libs: [ |
| 308 | "framework-statsd", |
| 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/208647810 for how this can go wrong. |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 314 | static_libs: [ |
| 315 | "SystemUI-statsd", |
| 316 | "SystemUISharedLib", |
Thales Lima | c335ad2 | 2021-11-08 15:31:49 +0000 | [diff] [blame] | 317 | "Launcher3CommonDepsLib", |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 318 | "QuickstepResLib", |
Jon Miranda | 27f9559 | 2022-04-06 17:29:09 +0000 | [diff] [blame] | 319 | "SystemUIAnimationLib", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 320 | ], |
| 321 | manifest: "quickstep/AndroidManifest.xml", |
| 322 | platform_apis: true, |
| 323 | min_sdk_version: "current", |
| 324 | lint: { |
| 325 | baseline_filename: "lint-baseline-launcher3.xml", |
| 326 | }, |
| 327 | } |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 328 | |
| 329 | // Build rule for Launcher3 Go app for Android Go devices. |
| 330 | android_app { |
Alexander Martinz | d97e43b | 2023-04-17 13:35:15 +0200 | [diff] [blame] | 331 | name: "SHIFT-HomeGo", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 332 | |
| 333 | static_libs: ["Launcher3CommonDepsLib"], |
| 334 | |
| 335 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 336 | ":launcher-src", |
| 337 | ":launcher-go-src", |
| 338 | ":launcher-src_ui_overrides", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 339 | ], |
| 340 | |
| 341 | resource_dirs: ["go/res"], |
| 342 | |
| 343 | optimize: { |
| 344 | proguard_flags_files: ["proguard.flags"], |
| 345 | }, |
| 346 | |
| 347 | sdk_version: "current", |
| 348 | min_sdk_version: "current", |
| 349 | target_sdk_version: "current", |
| 350 | privileged: true, |
| 351 | system_ext_specific: true, |
| 352 | overrides: [ |
| 353 | "Home", |
| 354 | "Launcher2", |
| 355 | "Launcher3", |
| 356 | "Launcher3QuickStep", |
Michael Bestas | 1a99cb8 | 2022-12-06 18:04:18 +0200 | [diff] [blame] | 357 | "Launcher3Go", |
Alexander Martinz | d97e43b | 2023-04-17 13:35:15 +0200 | [diff] [blame] | 358 | "TrebuchetGo", |
Michael Bestas | 1a99cb8 | 2022-12-06 18:04:18 +0200 | [diff] [blame] | 359 | "QuickSearchBox", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 360 | ], |
| 361 | required: ["privapp_whitelist_com.android.launcher3"], |
| 362 | |
| 363 | additional_manifests: [ |
| 364 | "AndroidManifest.xml", |
| 365 | "AndroidManifest-common.xml", |
| 366 | ], |
| 367 | |
| 368 | manifest: "go/AndroidManifest.xml", |
| 369 | jacoco: { |
| 370 | include_filter: ["com.android.launcher3.*"], |
| 371 | } |
| 372 | |
| 373 | } |
| 374 | |
| 375 | // Build rule for Quickstep app. |
| 376 | android_app { |
Alexander Martinz | d97e43b | 2023-04-17 13:35:15 +0200 | [diff] [blame] | 377 | name: "SHIFT-HomeQuickStep", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 378 | |
| 379 | static_libs: ["Launcher3QuickStepLib"], |
| 380 | optimize: { |
| 381 | enabled: false, |
| 382 | }, |
| 383 | |
| 384 | platform_apis: true, |
| 385 | min_sdk_version: "current", |
| 386 | target_sdk_version: "current", |
| 387 | |
| 388 | privileged: true, |
| 389 | system_ext_specific: true, |
| 390 | overrides: [ |
| 391 | "Home", |
| 392 | "Launcher2", |
| 393 | "Launcher3", |
Michael Bestas | 1a99cb8 | 2022-12-06 18:04:18 +0200 | [diff] [blame] | 394 | "Launcher3QuickStep", |
Alexander Martinz | d97e43b | 2023-04-17 13:35:15 +0200 | [diff] [blame] | 395 | "TrebuchetQuickStep", |
Michael Bestas | 1a99cb8 | 2022-12-06 18:04:18 +0200 | [diff] [blame] | 396 | "QuickSearchBox", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 397 | ], |
| 398 | required: ["privapp_whitelist_com.android.launcher3"], |
| 399 | |
| 400 | resource_dirs: ["quickstep/res"], |
| 401 | |
| 402 | additional_manifests: [ |
| 403 | "quickstep/AndroidManifest-launcher.xml", |
| 404 | "AndroidManifest-common.xml", |
| 405 | ], |
| 406 | |
| 407 | manifest: "quickstep/AndroidManifest.xml", |
| 408 | jacoco: { |
| 409 | include_filter: ["com.android.launcher3.*"], |
| 410 | } |
| 411 | |
| 412 | } |
| 413 | |
| 414 | // Build rule for Launcher3 Go app with quickstep for Android Go devices. |
| 415 | android_app { |
Alexander Martinz | d97e43b | 2023-04-17 13:35:15 +0200 | [diff] [blame] | 416 | name: "SHIFT-HomeQuickStepGo", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 417 | |
| 418 | static_libs: [ |
| 419 | "SystemUI-statsd", |
| 420 | "SystemUISharedLib", |
| 421 | "LauncherGoResLib", |
| 422 | ], |
| 423 | |
| 424 | platform_apis: true, |
| 425 | min_sdk_version: "current", |
| 426 | target_sdk_version: "current", |
| 427 | |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 428 | srcs: [ ], |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 429 | |
| 430 | resource_dirs: [ |
| 431 | "go/quickstep/res", |
| 432 | "go/res", |
| 433 | "quickstep/res", |
| 434 | ], |
| 435 | |
| 436 | optimize: { |
| 437 | proguard_flags_files: ["proguard.flags"], |
| 438 | enabled: true, |
| 439 | }, |
| 440 | |
| 441 | privileged: true, |
| 442 | system_ext_specific: true, |
| 443 | overrides: [ |
| 444 | "Home", |
| 445 | "Launcher2", |
| 446 | "Launcher3", |
| 447 | "Launcher3QuickStep", |
Michael Bestas | 1a99cb8 | 2022-12-06 18:04:18 +0200 | [diff] [blame] | 448 | "Launcher3QuickStepGo", |
Alexander Martinz | d97e43b | 2023-04-17 13:35:15 +0200 | [diff] [blame] | 449 | "TrebuchetQuickStepGo", |
Michael Bestas | 1a99cb8 | 2022-12-06 18:04:18 +0200 | [diff] [blame] | 450 | "QuickSearchBox", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 451 | ], |
| 452 | required: ["privapp_whitelist_com.android.launcher3"], |
| 453 | |
| 454 | additional_manifests: [ |
| 455 | "go/AndroidManifest.xml", |
| 456 | "go/AndroidManifest-launcher.xml", |
| 457 | "AndroidManifest-common.xml", |
| 458 | ], |
| 459 | |
| 460 | manifest: "quickstep/AndroidManifest.xml", |
| 461 | jacoco: { |
| 462 | include_filter: ["com.android.launcher3.*"], |
| 463 | } |
| 464 | |
| 465 | } |
| 466 | |