blob: ba04bb39802f5c7733be1894fe570fe0487c87d3 [file] [log] [blame]
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -07001// 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 Badour4bdf3802021-02-12 17:08:17 -080015package {
Bob Badoura7548b52022-01-27 22:04:48 -080016 // See: http://go/android-license-faq
17 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badour4bdf3802021-02-12 17:08:17 -080018}
19
Sunny Goyal9d2ece12024-03-22 13:52:19 -070020min_launcher3_sdk_version = "30"
Sunny Goyal1fb271f2021-05-20 10:43:23 -070021
Jared Duke1222dd72024-07-12 00:01:11 +000022// Targets that don't inherit framework aconfig libs (i.e., those that don't set
23// `platform_apis: true`) must manually link them.
24java_defaults {
25 name: "launcher-non-platform-apis-defaults",
26 static_libs: [
27 "android.os.flags-aconfig-java",
28 "android.appwidget.flags-aconfig-java",
29 "com.android.window.flags.window-aconfig-java",
30 ]
31}
32
Thales Lima2c54bbf2022-07-12 15:45:10 +000033// Common source files used to build launcher (java and kotlin)
34// All sources are split so they can be reused in many other libraries/apps in other folders
Sunny Goyal77954ba2024-03-25 11:53:17 -070035
36// Main Launcher source, excluding the build config
Thales Lima2c54bbf2022-07-12 15:45:10 +000037filegroup {
38 name: "launcher-src",
Cole Faustbad33e62023-12-20 11:57:04 -080039 srcs: [
40 "src/**/*.java",
41 "src/**/*.kt",
42 ],
Thales Lima2c54bbf2022-07-12 15:45:10 +000043}
44
Jordan Silva4afa1952024-08-06 16:54:59 +010045// Main Launcher source for compose, excluding the build config
46filegroup {
47 name: "launcher-compose-enabled-src",
48 srcs: [
49 "compose/facade/enabled/*.kt",
50 "compose/facade/core/*.kt",
51 "compose/features/**/*.kt",
52 ],
53}
54
55filegroup {
56 name: "launcher-compose-disabled-src",
57 srcs: [
58 "compose/facade/core/*.kt",
59 "compose/facade/disabled/*.kt",
60 ],
61}
62
Sunny Goyal77954ba2024-03-25 11:53:17 -070063// Source code for quickstep build, on top of launcher-src
Thales Lima2c54bbf2022-07-12 15:45:10 +000064filegroup {
65 name: "launcher-quickstep-src",
Cole Faustbad33e62023-12-20 11:57:04 -080066 srcs: [
67 "quickstep/src/**/*.java",
68 "quickstep/src/**/*.kt",
69 ],
Thales Lima2c54bbf2022-07-12 15:45:10 +000070}
71
Jordan Silva4afa1952024-08-06 16:54:59 +010072// Source code for quickstep build with compose enabled, on top of launcher-src
73filegroup {
74 name: "launcher-quickstep-compose-enabled-src",
75 srcs: [
76 "quickstep/compose/facade/core/*.kt",
77 "quickstep/compose/facade/enabled/*.kt",
78 "quickstep/compose/features/**/*.kt",
79 ],
80}
81
82filegroup {
83 name: "launcher-quickstep-compose-disabled-src",
84 srcs: [
85 "quickstep/compose/facade/core/*.kt",
86 "quickstep/compose/facade/disabled/*.kt",
87 ],
88}
89
Sunny Goyal77954ba2024-03-25 11:53:17 -070090// Alternate source when quickstep is not included
Thales Lima2c54bbf2022-07-12 15:45:10 +000091filegroup {
Sunny Goyal77954ba2024-03-25 11:53:17 -070092 name: "launcher-src_no_quickstep",
Cole Faustbad33e62023-12-20 11:57:04 -080093 srcs: [
Sunny Goyal77954ba2024-03-25 11:53:17 -070094 "src_no_quickstep/**/*.java",
95 "src_no_quickstep/**/*.kt",
Cole Faustbad33e62023-12-20 11:57:04 -080096 ],
Thales Lima2c54bbf2022-07-12 15:45:10 +000097}
98
Sunny Goyal77954ba2024-03-25 11:53:17 -070099// Default build config for Launcher3
Thales Lima2c54bbf2022-07-12 15:45:10 +0000100filegroup {
Sunny Goyal77954ba2024-03-25 11:53:17 -0700101 name: "launcher-build-config",
Cole Faustbad33e62023-12-20 11:57:04 -0800102 srcs: [
Sunny Goyal77954ba2024-03-25 11:53:17 -0700103 "src_build_config/**/*.java",
Cole Faustbad33e62023-12-20 11:57:04 -0800104 ],
Thales Lima2c54bbf2022-07-12 15:45:10 +0000105}
106
Thales Lima2c54bbf2022-07-12 15:45:10 +0000107// Proguard files for Launcher3
108filegroup {
109 name: "launcher-proguard-rules",
110 srcs: ["proguard.flags"],
111}
112
Jordan Silva4afa1952024-08-06 16:54:59 +0100113// Opt-in configuration for Launcher3 code depending on Jetpack Compose.
114soong_config_module_type {
115 name: "launcher_compose_java_defaults",
116 module_type: "java_defaults",
117 config_namespace: "ANDROID",
118 bool_variables: ["release_enable_compose_in_launcher"],
119 properties: [
120 "srcs",
121 "static_libs",
122 ],
123}
124
125// Opt-in configuration for Launcher Quickstep code depending on Jetpack Compose.
126soong_config_bool_variable {
127 name: "release_enable_compose_in_launcher",
128}
129
130soong_config_module_type {
131 name: "quickstep_compose_java_defaults",
132 module_type: "java_defaults",
133 config_namespace: "ANDROID",
134 bool_variables: ["release_enable_compose_in_launcher"],
135 properties: [
136 "srcs",
137 "static_libs",
138 ],
139}
140
141soong_config_module_type {
142 name: "launcher_compose_tests_java_defaults",
143 module_type: "java_defaults",
144 config_namespace: "ANDROID",
145 bool_variables: ["release_enable_compose_in_launcher"],
146 properties: [
147 "static_libs",
148 ],
149}
150
151launcher_compose_java_defaults {
152 name: "launcher_compose_defaults",
153 soong_config_variables: {
154 release_enable_compose_in_launcher: {
155 srcs: [
156 ":launcher-compose-enabled-src"
157 ],
158
159 // Compose dependencies
160 static_libs: [
161 "androidx.compose.runtime_runtime",
162 "androidx.compose.material3_material3",
163 ],
164
165 // By default, Compose is disabled and we compile the ComposeFacade
166 // in compose/launcher3/facade/disabled/.
167 conditions_default: {
168 srcs: [
169 ":launcher-compose-disabled-src"
170 ],
171 static_libs: [],
172 },
173 },
174 },
175}
176
177quickstep_compose_java_defaults {
178 name: "quickstep_compose_defaults",
179 soong_config_variables: {
180 release_enable_compose_in_launcher: {
181 srcs: [
182 ":launcher-quickstep-compose-enabled-src"
183 ],
184
185 // Compose dependencies
186 static_libs: [
187 "androidx.compose.runtime_runtime",
188 "androidx.compose.material3_material3",
189 ],
190
191 // By default, Compose is disabled and we compile the ComposeFacade
192 // in compose/quickstep/facade/disabled/.
193 conditions_default: {
194 srcs: [
195 ":launcher-quickstep-compose-disabled-src"
196 ],
197 static_libs: [],
198 },
199 },
200 },
201}
202
203launcher_compose_tests_java_defaults {
204 name: "launcher_compose_tests_defaults",
205 soong_config_variables: {
206 release_enable_compose_in_launcher: {
207 // Compose dependencies
208 static_libs: [
209 "androidx.compose.runtime_runtime",
210 "androidx.compose.ui_ui-test-junit4",
211 "androidx.compose.ui_ui-test-manifest",
212 ],
213
214 conditions_default: {
215 static_libs: [],
216 },
217 },
218 },
219}
220
vadimt09df0832019-03-07 14:59:30 -0800221android_library {
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700222 name: "launcher-aosp-tapl",
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700223 libs: [
224 "framework-statsd",
225 ],
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700226 static_libs: [
227 "androidx.annotation_annotation",
Brett Chabotd7d692c2018-10-23 21:17:58 -0700228 "androidx.test.runner",
229 "androidx.test.rules",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700230 "androidx.test.uiautomator_uiautomator",
Hyunyoung Songbb715822020-08-04 10:45:53 -0700231 "androidx.preference_preference",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700232 "SystemUISharedLib",
Peter Kalauskas9bdb1da2024-04-02 15:38:57 -0700233 "//frameworks/libs/systemui:animationlib",
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000234 "launcher-testing-shared",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700235 ],
236 srcs: [
Uwais Ashraf9c2f5a42024-03-04 09:49:39 +0000237 "tests/tapl/**/*.java",
238 "tests/tapl/**/*.kt",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700239 ],
Cole Faustbad33e62023-12-20 11:57:04 -0800240 resource_dirs: [],
Uwais Ashraf9c2f5a42024-03-04 09:49:39 +0000241 manifest: "tests/tapl/AndroidManifest.xml",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700242 platform_apis: true,
243}
thiruram5e1ecf62019-11-13 17:49:35 -0800244
245java_library_static {
thiruramc1c2bfa2020-02-04 18:56:40 -0800246 name: "launcher_log_protos_lite",
thiruram5e1ecf62019-11-13 17:49:35 -0800247 srcs: [
248 "protos/*.proto",
thiruramcbeb13d2021-01-27 14:45:58 -0800249 "protos_overrides/*.proto",
thiruram5e1ecf62019-11-13 17:49:35 -0800250 ],
251 sdk_version: "current",
252 proto: {
253 type: "lite",
Cole Faustbad33e62023-12-20 11:57:04 -0800254 local_include_dirs: [
thiruram5e1ecf62019-11-13 17:49:35 -0800255 "protos",
thiruramcbeb13d2021-01-27 14:45:58 -0800256 "protos_overrides",
thiruram5e1ecf62019-11-13 17:49:35 -0800257 ],
258 },
thiruramc1c2bfa2020-02-04 18:56:40 -0800259 static_libs: ["libprotobuf-java-lite"],
thiruram5e1ecf62019-11-13 17:49:35 -0800260}
Hyunyoung Song8605be32020-02-21 14:52:25 -0800261
thiruramcbeb13d2021-01-27 14:45:58 -0800262java_library_static {
263 name: "launcher_quickstep_log_protos_lite",
264 srcs: [
265 "quickstep/protos_overrides/*.proto",
266 ],
267 sdk_version: "current",
268 proto: {
269 type: "lite",
Cole Faustbad33e62023-12-20 11:57:04 -0800270 local_include_dirs: [
thiruramcbeb13d2021-01-27 14:45:58 -0800271 "quickstep/protos_overrides",
272 ],
273 },
274 static_libs: [
Cole Faustbad33e62023-12-20 11:57:04 -0800275 "libprotobuf-java-lite",
276 "launcher_log_protos_lite",
277 ],
thiruramcbeb13d2021-01-27 14:45:58 -0800278}
279
Hyunyoung Song8605be32020-02-21 14:52:25 -0800280java_library {
281 name: "LauncherPluginLib",
282
283 static_libs: ["PluginCoreLib"],
284
285 srcs: ["src_plugins/**/*.java"],
286
287 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700288 min_sdk_version: min_launcher3_sdk_version,
Hyunyoung Song8605be32020-02-21 14:52:25 -0800289}
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800290
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800291// Library with all the dependencies for building Launcher3
292android_library {
293 name: "Launcher3ResLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100294 defaults: [
295 "launcher_compose_defaults",
296 ],
Cole Faustbad33e62023-12-20 11:57:04 -0800297 srcs: [],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800298 resource_dirs: ["res"],
299 static_libs: [
300 "LauncherPluginLib",
301 "launcher_quickstep_log_protos_lite",
302 "androidx-constraintlayout_constraintlayout",
303 "androidx.recyclerview_recyclerview",
304 "androidx.dynamicanimation_dynamicanimation",
305 "androidx.fragment_fragment",
306 "androidx.preference_preference",
307 "androidx.slice_slice-view",
308 "androidx.cardview_cardview",
Sebastian Franco9ae40322023-10-10 10:50:28 -0700309 "androidx.window_window",
Brian Isganitis93031bc2021-06-09 16:34:45 -0400310 "com.google.android.material_material",
Peter Kalauskas9bdb1da2024-04-02 15:38:57 -0700311 "//frameworks/libs/systemui:iconloader_base",
312 "//frameworks/libs/systemui:view_capture",
313 "//frameworks/libs/systemui:animationlib",
Anna Zhuravleva9c203812023-11-20 18:30:35 +0000314 "SystemUI-statsd",
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000315 "launcher-testing-shared",
Uwais Ashraf6e9927e2024-03-25 10:53:06 +0000316 "androidx.lifecycle_lifecycle-common-java8",
317 "androidx.lifecycle_lifecycle-extensions",
318 "androidx.lifecycle_lifecycle-runtime-ktx",
319 "kotlinx_coroutines_android",
320 "kotlinx_coroutines",
Anushree Ganjam2a14b972023-08-30 13:31:10 -0700321 "com_android_launcher3_flags_lib",
Jeremy Sim9e44e372023-10-10 14:54:39 -0700322 "com_android_wm_shell_flags_lib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100323
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000324 ],
Sunny Goyal77954ba2024-03-25 11:53:17 -0700325 manifest: "AndroidManifest-common.xml",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800326 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700327 min_sdk_version: min_launcher3_sdk_version,
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000328 lint: {
Sunny Goyal9d2ece12024-03-22 13:52:19 -0700329 baseline_filename: "lint-baseline.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000330 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800331}
332
333//
334// Build rule for Launcher3 app.
335//
336android_app {
337 name: "Launcher3",
Jared Duke1222dd72024-07-12 00:01:11 +0000338 defaults: ["launcher-non-platform-apis-defaults"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800339
340 static_libs: [
Sunny Goyal77954ba2024-03-25 11:53:17 -0700341 "Launcher3ResLib",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800342 ],
343 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000344 ":launcher-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700345 ":launcher-src_no_quickstep",
346 ":launcher-build-config",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800347 ],
Sunny Goyal9d2ece12024-03-22 13:52:19 -0700348
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800349 optimize: {
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000350 proguard_flags_files: [":launcher-proguard-rules"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800351 // Proguard is disable for testing. Derivarive prjects to keep proguard enabled
352 enabled: false,
353 },
354
355 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700356 min_sdk_version: min_launcher3_sdk_version,
357 target_sdk_version: "current",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800358 privileged: true,
359 system_ext_specific: true,
360
361 overrides: [
362 "Home",
363 "Launcher2",
364 ],
365 required: ["privapp_whitelist_com.android.launcher3"],
366
367 jacoco: {
368 include_filter: ["com.android.launcher3.**"],
369 },
370 additional_manifests: [
371 "AndroidManifest-common.xml",
372 ],
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000373 lint: {
Cole Faustc778a672024-01-10 12:30:39 -0800374 baseline_filename: "lint-baseline.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000375 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800376}
377
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800378// Library with all the dependencies for building quickstep
379android_library {
380 name: "QuickstepResLib",
Cole Faustbad33e62023-12-20 11:57:04 -0800381 srcs: [],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800382 resource_dirs: [
383 "quickstep/res",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800384 ],
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700385 libs: [
386 "framework-statsd",
387 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800388 static_libs: [
389 "Launcher3ResLib",
Schneider Victor-tuliasd0865f82021-11-09 13:19:21 -0800390 "lottie",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800391 "SystemUISharedLib",
Jagrut Desaifae321c2023-10-30 20:30:39 +0000392 "SettingsLibSettingsTheme",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800393 ],
394 manifest: "quickstep/AndroidManifest.xml",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700395 min_sdk_version: "current",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800396}
397
Sunny Goyal77954ba2024-03-25 11:53:17 -0700398// Library with all the source code and dependencies for building Launcher Go
Jon Spivacka65d68b2021-04-07 10:22:25 -0700399android_library {
Sunny Goyal77954ba2024-03-25 11:53:17 -0700400 name: "Launcher3GoLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100401 defaults: [
402 "launcher_compose_defaults",
403 "quickstep_compose_defaults",
404 ],
Jon Spivacka65d68b2021-04-07 10:22:25 -0700405 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000406 ":launcher-src",
407 ":launcher-quickstep-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700408 "go/quickstep/src/**/*.java",
409 "go/quickstep/src/**/*.kt",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700410 ],
411 resource_dirs: [
Jon Spivacka65d68b2021-04-07 10:22:25 -0700412 "go/quickstep/res",
413 ],
Ben Murdochfabc8732021-12-02 18:22:17 +0000414 // Note the ordering here is important when it comes to resource
415 // overriding. We want the most specific resource overrides defined
416 // in QuickstepResLib to take precendece, so it should be the final
417 // dependency. See b/205278434 for how this can go wrong.
Jon Spivacka65d68b2021-04-07 10:22:25 -0700418 static_libs: [
Jon Spivacka65d68b2021-04-07 10:22:25 -0700419 "QuickstepResLib",
Jon Spivack89c21c72021-08-13 13:18:24 -0700420 "androidx.room_room-runtime",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700421 ],
Jon Spivack89c21c72021-08-13 13:18:24 -0700422 plugins: ["androidx.room_room-compiler-plugin"],
Arvind Kumar384a0ed2023-07-07 09:41:29 +0530423 manifest: "quickstep/AndroidManifest.xml",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700424 additional_manifests: [
425 "go/AndroidManifest.xml",
426 "AndroidManifest-common.xml",
427 ],
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700428 min_sdk_version: "current",
Colin Crossf156b6b2024-01-11 14:03:12 -0800429 // TODO(b/319712088): re-enable use_resource_processor
430 use_resource_processor: false,
Jon Spivacka65d68b2021-04-07 10:22:25 -0700431}
432
Sunny Goyal77954ba2024-03-25 11:53:17 -0700433// Library with all the source code and dependencies for building Quickstep
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700434android_library {
435 name: "Launcher3QuickStepLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100436 defaults: [
437 "launcher_compose_defaults",
438 "quickstep_compose_defaults"
439 ],
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700440 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000441 ":launcher-src",
442 ":launcher-quickstep-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700443 ":launcher-build-config",
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700444 ],
Thales Limac335ad22021-11-08 15:31:49 +0000445 resource_dirs: [],
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700446 libs: [
447 "framework-statsd",
448 ],
Ben Murdochfabc8732021-12-02 18:22:17 +0000449 // Note the ordering here is important when it comes to resource
450 // overriding. We want the most specific resource overrides defined
451 // in QuickstepResLib to take precendece, so it should be the final
452 // dependency. See b/208647810 for how this can go wrong.
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700453 static_libs: [
454 "SystemUI-statsd",
Ben Murdochfabc8732021-12-02 18:22:17 +0000455 "QuickstepResLib",
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700456 ],
457 manifest: "quickstep/AndroidManifest.xml",
458 platform_apis: true,
459 min_sdk_version: "current",
Colin Crossf156b6b2024-01-11 14:03:12 -0800460 // TODO(b/319712088): re-enable use_resource_processor
461 use_resource_processor: false,
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700462}
Thales Lima813834a2022-05-18 15:29:59 +0000463
Thales Lima813834a2022-05-18 15:29:59 +0000464// Build rule for Quickstep app.
465android_app {
466 name: "Launcher3QuickStep",
Thales Lima813834a2022-05-18 15:29:59 +0000467 static_libs: ["Launcher3QuickStepLib"],
468 optimize: {
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000469 proguard_flags_files: [":launcher-proguard-rules"],
470 enabled: true,
471 shrink_resources: true,
Thales Lima813834a2022-05-18 15:29:59 +0000472 },
473
474 platform_apis: true,
475 min_sdk_version: "current",
476 target_sdk_version: "current",
477
478 privileged: true,
479 system_ext_specific: true,
480 overrides: [
481 "Home",
482 "Launcher2",
483 "Launcher3",
484 ],
485 required: ["privapp_whitelist_com.android.launcher3"],
486
487 resource_dirs: ["quickstep/res"],
488
489 additional_manifests: [
490 "quickstep/AndroidManifest-launcher.xml",
491 "AndroidManifest-common.xml",
492 ],
493
494 manifest: "quickstep/AndroidManifest.xml",
495 jacoco: {
496 include_filter: ["com.android.launcher3.*"],
Cole Faustbad33e62023-12-20 11:57:04 -0800497 },
Thales Lima813834a2022-05-18 15:29:59 +0000498
499}
500
Thales Lima813834a2022-05-18 15:29:59 +0000501
Sunny Goyal77954ba2024-03-25 11:53:17 -0700502// Build rule for Launcher3 Go app with quickstep for Android Go devices.
503// Note that the following two rules are exactly same, and should
504// eventually be merged into a single target
505android_app {
506 name: "Launcher3Go",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700507 static_libs: ["Launcher3GoLib"],
Sunny Goyal3b452f52024-04-12 19:16:19 +0000508 resource_dirs: [],
Thales Lima813834a2022-05-18 15:29:59 +0000509
510 platform_apis: true,
511 min_sdk_version: "current",
512 target_sdk_version: "current",
513
Thales Lima813834a2022-05-18 15:29:59 +0000514 optimize: {
515 proguard_flags_files: ["proguard.flags"],
516 enabled: true,
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000517 shrink_resources: true,
Thales Lima813834a2022-05-18 15:29:59 +0000518 },
519
520 privileged: true,
521 system_ext_specific: true,
522 overrides: [
523 "Home",
524 "Launcher2",
525 "Launcher3",
526 "Launcher3QuickStep",
527 ],
528 required: ["privapp_whitelist_com.android.launcher3"],
529
530 additional_manifests: [
531 "go/AndroidManifest.xml",
532 "go/AndroidManifest-launcher.xml",
533 "AndroidManifest-common.xml",
534 ],
535
536 manifest: "quickstep/AndroidManifest.xml",
537 jacoco: {
538 include_filter: ["com.android.launcher3.*"],
Cole Faustbad33e62023-12-20 11:57:04 -0800539 },
Sunny Goyal77954ba2024-03-25 11:53:17 -0700540}
541android_app {
542 name: "Launcher3QuickStepGo",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700543 static_libs: ["Launcher3GoLib"],
Sunny Goyal3b452f52024-04-12 19:16:19 +0000544 resource_dirs: [],
Sunny Goyal77954ba2024-03-25 11:53:17 -0700545
546 platform_apis: true,
547 min_sdk_version: "current",
548 target_sdk_version: "current",
549
550 optimize: {
551 proguard_flags_files: ["proguard.flags"],
552 enabled: true,
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000553 shrink_resources: true,
Sunny Goyal77954ba2024-03-25 11:53:17 -0700554 },
555
556 privileged: true,
557 system_ext_specific: true,
558 overrides: [
559 "Home",
560 "Launcher2",
561 "Launcher3",
562 "Launcher3QuickStep",
563 ],
564 required: ["privapp_whitelist_com.android.launcher3"],
565
566 additional_manifests: [
567 "go/AndroidManifest.xml",
568 "go/AndroidManifest-launcher.xml",
569 "AndroidManifest-common.xml",
570 ],
571
572 manifest: "quickstep/AndroidManifest.xml",
573 jacoco: {
574 include_filter: ["com.android.launcher3.*"],
575 },
Thales Lima813834a2022-05-18 15:29:59 +0000576}