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 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 139 | // Library with all the dependencies for building Launcher3 |
| 140 | android_library { |
| 141 | name: "Launcher3ResLib", |
| 142 | srcs: [ ], |
| 143 | resource_dirs: ["res"], |
| 144 | static_libs: [ |
| 145 | "LauncherPluginLib", |
| 146 | "launcher_quickstep_log_protos_lite", |
| 147 | "androidx-constraintlayout_constraintlayout", |
| 148 | "androidx.recyclerview_recyclerview", |
| 149 | "androidx.dynamicanimation_dynamicanimation", |
| 150 | "androidx.fragment_fragment", |
| 151 | "androidx.preference_preference", |
| 152 | "androidx.slice_slice-view", |
| 153 | "androidx.cardview_cardview", |
Brian Isganitis | 93031bc | 2021-06-09 16:34:45 -0400 | [diff] [blame] | 154 | "com.google.android.material_material", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 155 | "iconloader_base", |
Johannes Gallmann | 6518efc | 2022-10-04 11:57:37 +0000 | [diff] [blame] | 156 | "view_capture" |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 157 | ], |
| 158 | manifest: "AndroidManifest-common.xml", |
| 159 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 160 | min_sdk_version: min_launcher3_sdk_version, |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 161 | lint: { |
| 162 | baseline_filename: "lint-baseline-res-lib.xml", |
| 163 | }, |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 164 | } |
| 165 | |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 166 | // |
| 167 | // Build rule for Launcher3 dependencies lib. |
| 168 | // |
| 169 | android_library { |
| 170 | name: "Launcher3CommonDepsLib", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 171 | srcs: ["src_build_config/**/*.java"], |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame^] | 172 | static_libs: [ |
| 173 | "Launcher3ResLib", |
| 174 | "launcher-testing-shared", |
| 175 | ], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 176 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 177 | min_sdk_version: min_launcher3_sdk_version, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 178 | manifest: "AndroidManifest-common.xml", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 179 | lint: { |
| 180 | baseline_filename: "lint-baseline-common-deps-lib.xml", |
| 181 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 182 | } |
| 183 | |
| 184 | // |
| 185 | // Build rule for Launcher3 app. |
| 186 | // |
| 187 | android_app { |
| 188 | name: "Launcher3", |
| 189 | |
| 190 | static_libs: [ |
| 191 | "Launcher3CommonDepsLib", |
| 192 | ], |
| 193 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 194 | ":launcher-src", |
| 195 | ":launcher-src_shortcuts_overrides", |
| 196 | ":launcher-src_ui_overrides", |
| 197 | ":launcher-ext_tests", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 198 | ], |
| 199 | resource_dirs: [ |
| 200 | "ext_tests/res", |
| 201 | ], |
| 202 | optimize: { |
| 203 | proguard_flags_files: ["proguard.flags"], |
| 204 | // Proguard is disable for testing. Derivarive prjects to keep proguard enabled |
| 205 | enabled: false, |
| 206 | }, |
| 207 | |
| 208 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 209 | min_sdk_version: min_launcher3_sdk_version, |
| 210 | target_sdk_version: "current", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 211 | privileged: true, |
| 212 | system_ext_specific: true, |
| 213 | |
| 214 | overrides: [ |
| 215 | "Home", |
| 216 | "Launcher2", |
| 217 | ], |
| 218 | required: ["privapp_whitelist_com.android.launcher3"], |
| 219 | |
| 220 | jacoco: { |
| 221 | include_filter: ["com.android.launcher3.**"], |
| 222 | }, |
| 223 | additional_manifests: [ |
| 224 | "AndroidManifest-common.xml", |
| 225 | ], |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 226 | lint: { |
| 227 | baseline_filename: "lint-baseline-launcher3.xml", |
| 228 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 229 | } |
| 230 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 231 | // Library with all the dependencies for building quickstep |
| 232 | android_library { |
| 233 | name: "QuickstepResLib", |
| 234 | srcs: [ ], |
| 235 | resource_dirs: [ |
| 236 | "quickstep/res", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 237 | ], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 238 | libs: [ |
| 239 | "framework-statsd", |
| 240 | ], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 241 | static_libs: [ |
| 242 | "Launcher3ResLib", |
Schneider Victor-tulias | d0865f8 | 2021-11-09 13:19:21 -0800 | [diff] [blame] | 243 | "lottie", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 244 | "SystemUISharedLib", |
| 245 | "SystemUI-statsd", |
Jon Miranda | 27f9559 | 2022-04-06 17:29:09 +0000 | [diff] [blame] | 246 | "SystemUIAnimationLib", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 247 | ], |
| 248 | manifest: "quickstep/AndroidManifest.xml", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 249 | min_sdk_version: "current", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 250 | } |
| 251 | |
| 252 | |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 253 | // Library with all the dependencies for building Launcher Go |
| 254 | android_library { |
| 255 | name: "LauncherGoResLib", |
| 256 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 257 | ":launcher-src", |
| 258 | ":launcher-quickstep-src", |
| 259 | ":launcher-go-src", |
| 260 | ":launcher-go-quickstep-src", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 261 | ], |
| 262 | resource_dirs: [ |
| 263 | "go/res", |
| 264 | "go/quickstep/res", |
| 265 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 266 | // Note the ordering here is important when it comes to resource |
| 267 | // overriding. We want the most specific resource overrides defined |
| 268 | // in QuickstepResLib to take precendece, so it should be the final |
| 269 | // dependency. See b/205278434 for how this can go wrong. |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 270 | static_libs: [ |
Greg Kaiser | 6f220d9 | 2021-11-05 16:12:47 +0000 | [diff] [blame] | 271 | "Launcher3CommonDepsLib", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 272 | "QuickstepResLib", |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 273 | "androidx.room_room-runtime", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 274 | ], |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 275 | plugins: ["androidx.room_room-compiler-plugin"], |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 276 | manifest: "quickstep/AndroidManifest-launcher.xml", |
| 277 | additional_manifests: [ |
| 278 | "go/AndroidManifest.xml", |
| 279 | "AndroidManifest-common.xml", |
| 280 | ], |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 281 | min_sdk_version: "current", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 282 | lint: { |
| 283 | baseline_filename: "lint-baseline-go-res-lib.xml", |
| 284 | }, |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 285 | } |
| 286 | |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 287 | // Build rule for Quickstep library |
| 288 | android_library { |
| 289 | name: "Launcher3QuickStepLib", |
| 290 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 291 | ":launcher-src", |
| 292 | ":launcher-quickstep-src", |
| 293 | ":launcher-src_shortcuts_overrides", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 294 | ], |
Thales Lima | c335ad2 | 2021-11-08 15:31:49 +0000 | [diff] [blame] | 295 | resource_dirs: [], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 296 | libs: [ |
| 297 | "framework-statsd", |
| 298 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 299 | // Note the ordering here is important when it comes to resource |
| 300 | // overriding. We want the most specific resource overrides defined |
| 301 | // in QuickstepResLib to take precendece, so it should be the final |
| 302 | // dependency. See b/208647810 for how this can go wrong. |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 303 | static_libs: [ |
| 304 | "SystemUI-statsd", |
| 305 | "SystemUISharedLib", |
Thales Lima | c335ad2 | 2021-11-08 15:31:49 +0000 | [diff] [blame] | 306 | "Launcher3CommonDepsLib", |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 307 | "QuickstepResLib", |
Jon Miranda | 27f9559 | 2022-04-06 17:29:09 +0000 | [diff] [blame] | 308 | "SystemUIAnimationLib", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 309 | ], |
| 310 | manifest: "quickstep/AndroidManifest.xml", |
| 311 | platform_apis: true, |
| 312 | min_sdk_version: "current", |
| 313 | lint: { |
| 314 | baseline_filename: "lint-baseline-launcher3.xml", |
| 315 | }, |
| 316 | } |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 317 | |
| 318 | // Build rule for Launcher3 Go app for Android Go devices. |
| 319 | android_app { |
| 320 | name: "Launcher3Go", |
| 321 | |
| 322 | static_libs: ["Launcher3CommonDepsLib"], |
| 323 | |
| 324 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 325 | ":launcher-src", |
| 326 | ":launcher-go-src", |
| 327 | ":launcher-src_ui_overrides", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 328 | ], |
| 329 | |
| 330 | resource_dirs: ["go/res"], |
| 331 | |
| 332 | optimize: { |
| 333 | proguard_flags_files: ["proguard.flags"], |
| 334 | }, |
| 335 | |
| 336 | sdk_version: "current", |
| 337 | min_sdk_version: "current", |
| 338 | target_sdk_version: "current", |
| 339 | privileged: true, |
| 340 | system_ext_specific: true, |
| 341 | overrides: [ |
| 342 | "Home", |
| 343 | "Launcher2", |
| 344 | "Launcher3", |
| 345 | "Launcher3QuickStep", |
| 346 | ], |
| 347 | required: ["privapp_whitelist_com.android.launcher3"], |
| 348 | |
| 349 | additional_manifests: [ |
| 350 | "AndroidManifest.xml", |
| 351 | "AndroidManifest-common.xml", |
| 352 | ], |
| 353 | |
| 354 | manifest: "go/AndroidManifest.xml", |
| 355 | jacoco: { |
| 356 | include_filter: ["com.android.launcher3.*"], |
| 357 | } |
| 358 | |
| 359 | } |
| 360 | |
| 361 | // Build rule for Quickstep app. |
| 362 | android_app { |
| 363 | name: "Launcher3QuickStep", |
| 364 | |
| 365 | static_libs: ["Launcher3QuickStepLib"], |
| 366 | optimize: { |
| 367 | enabled: false, |
| 368 | }, |
| 369 | |
| 370 | platform_apis: true, |
| 371 | min_sdk_version: "current", |
| 372 | target_sdk_version: "current", |
| 373 | |
| 374 | privileged: true, |
| 375 | system_ext_specific: true, |
| 376 | overrides: [ |
| 377 | "Home", |
| 378 | "Launcher2", |
| 379 | "Launcher3", |
| 380 | ], |
| 381 | required: ["privapp_whitelist_com.android.launcher3"], |
| 382 | |
| 383 | resource_dirs: ["quickstep/res"], |
| 384 | |
| 385 | additional_manifests: [ |
| 386 | "quickstep/AndroidManifest-launcher.xml", |
| 387 | "AndroidManifest-common.xml", |
| 388 | ], |
| 389 | |
| 390 | manifest: "quickstep/AndroidManifest.xml", |
| 391 | jacoco: { |
| 392 | include_filter: ["com.android.launcher3.*"], |
| 393 | } |
| 394 | |
| 395 | } |
| 396 | |
| 397 | // Build rule for Launcher3 Go app with quickstep for Android Go devices. |
| 398 | android_app { |
| 399 | name: "Launcher3QuickStepGo", |
| 400 | |
| 401 | static_libs: [ |
| 402 | "SystemUI-statsd", |
| 403 | "SystemUISharedLib", |
| 404 | "LauncherGoResLib", |
| 405 | ], |
| 406 | |
| 407 | platform_apis: true, |
| 408 | min_sdk_version: "current", |
| 409 | target_sdk_version: "current", |
| 410 | |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 411 | srcs: [ ], |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 412 | |
| 413 | resource_dirs: [ |
| 414 | "go/quickstep/res", |
| 415 | "go/res", |
| 416 | "quickstep/res", |
| 417 | ], |
| 418 | |
| 419 | optimize: { |
| 420 | proguard_flags_files: ["proguard.flags"], |
| 421 | enabled: true, |
| 422 | }, |
| 423 | |
| 424 | privileged: true, |
| 425 | system_ext_specific: true, |
| 426 | overrides: [ |
| 427 | "Home", |
| 428 | "Launcher2", |
| 429 | "Launcher3", |
| 430 | "Launcher3QuickStep", |
| 431 | ], |
| 432 | required: ["privapp_whitelist_com.android.launcher3"], |
| 433 | |
| 434 | additional_manifests: [ |
| 435 | "go/AndroidManifest.xml", |
| 436 | "go/AndroidManifest-launcher.xml", |
| 437 | "AndroidManifest-common.xml", |
| 438 | ], |
| 439 | |
| 440 | manifest: "quickstep/AndroidManifest.xml", |
| 441 | jacoco: { |
| 442 | include_filter: ["com.android.launcher3.*"], |
| 443 | } |
| 444 | |
| 445 | } |
| 446 | |