blob: b205d0c35c7ff37ced448ce40c4d39fceba73489 [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",
Anushree Ganjambd863312024-08-23 17:15:30 -070030 ],
Jared Duke1222dd72024-07-12 00:01:11 +000031}
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: [
Anushree Ganjambd863312024-08-23 17:15:30 -0700156 ":launcher-compose-enabled-src",
Jordan Silva4afa1952024-08-06 16:54:59 +0100157 ],
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: [
Anushree Ganjambd863312024-08-23 17:15:30 -0700169 ":launcher-compose-disabled-src",
Jordan Silva4afa1952024-08-06 16:54:59 +0100170 ],
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: [
Anushree Ganjambd863312024-08-23 17:15:30 -0700182 ":launcher-quickstep-compose-enabled-src",
Jordan Silva4afa1952024-08-06 16:54:59 +0100183 ],
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: [
Anushree Ganjambd863312024-08-23 17:15:30 -0700195 ":launcher-quickstep-compose-disabled-src",
Jordan Silva4afa1952024-08-06 16:54:59 +0100196 ],
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",
helencheuk39a60932024-08-05 16:11:07 +0100234 "//frameworks/libs/systemui:contextualeducationlib",
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000235 "launcher-testing-shared",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700236 ],
237 srcs: [
Uwais Ashraf9c2f5a42024-03-04 09:49:39 +0000238 "tests/tapl/**/*.java",
239 "tests/tapl/**/*.kt",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700240 ],
Cole Faustbad33e62023-12-20 11:57:04 -0800241 resource_dirs: [],
Uwais Ashraf9c2f5a42024-03-04 09:49:39 +0000242 manifest: "tests/tapl/AndroidManifest.xml",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700243 platform_apis: true,
244}
thiruram5e1ecf62019-11-13 17:49:35 -0800245
246java_library_static {
thiruramc1c2bfa2020-02-04 18:56:40 -0800247 name: "launcher_log_protos_lite",
thiruram5e1ecf62019-11-13 17:49:35 -0800248 srcs: [
249 "protos/*.proto",
thiruramcbeb13d2021-01-27 14:45:58 -0800250 "protos_overrides/*.proto",
thiruram5e1ecf62019-11-13 17:49:35 -0800251 ],
252 sdk_version: "current",
253 proto: {
254 type: "lite",
Cole Faustbad33e62023-12-20 11:57:04 -0800255 local_include_dirs: [
thiruram5e1ecf62019-11-13 17:49:35 -0800256 "protos",
thiruramcbeb13d2021-01-27 14:45:58 -0800257 "protos_overrides",
thiruram5e1ecf62019-11-13 17:49:35 -0800258 ],
259 },
thiruramc1c2bfa2020-02-04 18:56:40 -0800260 static_libs: ["libprotobuf-java-lite"],
thiruram5e1ecf62019-11-13 17:49:35 -0800261}
Hyunyoung Song8605be32020-02-21 14:52:25 -0800262
thiruramcbeb13d2021-01-27 14:45:58 -0800263java_library_static {
264 name: "launcher_quickstep_log_protos_lite",
265 srcs: [
266 "quickstep/protos_overrides/*.proto",
267 ],
268 sdk_version: "current",
269 proto: {
270 type: "lite",
Cole Faustbad33e62023-12-20 11:57:04 -0800271 local_include_dirs: [
thiruramcbeb13d2021-01-27 14:45:58 -0800272 "quickstep/protos_overrides",
273 ],
274 },
275 static_libs: [
Cole Faustbad33e62023-12-20 11:57:04 -0800276 "libprotobuf-java-lite",
277 "launcher_log_protos_lite",
278 ],
thiruramcbeb13d2021-01-27 14:45:58 -0800279}
280
Hyunyoung Song8605be32020-02-21 14:52:25 -0800281java_library {
282 name: "LauncherPluginLib",
283
284 static_libs: ["PluginCoreLib"],
285
286 srcs: ["src_plugins/**/*.java"],
287
288 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700289 min_sdk_version: min_launcher3_sdk_version,
Hyunyoung Song8605be32020-02-21 14:52:25 -0800290}
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800291
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800292// Library with all the dependencies for building Launcher3
293android_library {
294 name: "Launcher3ResLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100295 defaults: [
296 "launcher_compose_defaults",
297 ],
Cole Faustbad33e62023-12-20 11:57:04 -0800298 srcs: [],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800299 resource_dirs: ["res"],
300 static_libs: [
301 "LauncherPluginLib",
302 "launcher_quickstep_log_protos_lite",
303 "androidx-constraintlayout_constraintlayout",
304 "androidx.recyclerview_recyclerview",
305 "androidx.dynamicanimation_dynamicanimation",
306 "androidx.fragment_fragment",
307 "androidx.preference_preference",
308 "androidx.slice_slice-view",
309 "androidx.cardview_cardview",
Sebastian Franco9ae40322023-10-10 10:50:28 -0700310 "androidx.window_window",
Brian Isganitis93031bc2021-06-09 16:34:45 -0400311 "com.google.android.material_material",
Peter Kalauskas9bdb1da2024-04-02 15:38:57 -0700312 "//frameworks/libs/systemui:iconloader_base",
313 "//frameworks/libs/systemui:view_capture",
314 "//frameworks/libs/systemui:animationlib",
helencheuk39a60932024-08-05 16:11:07 +0100315 "//frameworks/libs/systemui:contextualeducationlib",
Anna Zhuravleva9c203812023-11-20 18:30:35 +0000316 "SystemUI-statsd",
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000317 "launcher-testing-shared",
Uwais Ashraf6e9927e2024-03-25 10:53:06 +0000318 "androidx.lifecycle_lifecycle-common-java8",
319 "androidx.lifecycle_lifecycle-extensions",
320 "androidx.lifecycle_lifecycle-runtime-ktx",
321 "kotlinx_coroutines_android",
322 "kotlinx_coroutines",
Anushree Ganjam2a14b972023-08-30 13:31:10 -0700323 "com_android_launcher3_flags_lib",
Jeremy Sim9e44e372023-10-10 14:54:39 -0700324 "com_android_wm_shell_flags_lib",
Anushree Ganjambd863312024-08-23 17:15:30 -0700325 "dagger2",
326 "jsr330",
Jordan Silva4afa1952024-08-06 16:54:59 +0100327
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000328 ],
Sunny Goyal77954ba2024-03-25 11:53:17 -0700329 manifest: "AndroidManifest-common.xml",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800330 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700331 min_sdk_version: min_launcher3_sdk_version,
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000332 lint: {
Sunny Goyal9d2ece12024-03-22 13:52:19 -0700333 baseline_filename: "lint-baseline.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000334 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800335}
336
337//
338// Build rule for Launcher3 app.
339//
340android_app {
341 name: "Launcher3",
Jared Duke1222dd72024-07-12 00:01:11 +0000342 defaults: ["launcher-non-platform-apis-defaults"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800343
344 static_libs: [
Sunny Goyal77954ba2024-03-25 11:53:17 -0700345 "Launcher3ResLib",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800346 ],
347 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000348 ":launcher-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700349 ":launcher-src_no_quickstep",
350 ":launcher-build-config",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800351 ],
Sunny Goyal9d2ece12024-03-22 13:52:19 -0700352
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800353 optimize: {
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000354 proguard_flags_files: [":launcher-proguard-rules"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800355 // Proguard is disable for testing. Derivarive prjects to keep proguard enabled
356 enabled: false,
357 },
358
359 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700360 min_sdk_version: min_launcher3_sdk_version,
361 target_sdk_version: "current",
Anushree Ganjambd863312024-08-23 17:15:30 -0700362 plugins: ["dagger2-compiler"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800363 privileged: true,
364 system_ext_specific: true,
365
366 overrides: [
367 "Home",
368 "Launcher2",
369 ],
370 required: ["privapp_whitelist_com.android.launcher3"],
371
372 jacoco: {
373 include_filter: ["com.android.launcher3.**"],
374 },
375 additional_manifests: [
376 "AndroidManifest-common.xml",
377 ],
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000378 lint: {
Cole Faustc778a672024-01-10 12:30:39 -0800379 baseline_filename: "lint-baseline.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000380 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800381}
382
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800383// Library with all the dependencies for building quickstep
384android_library {
385 name: "QuickstepResLib",
Cole Faustbad33e62023-12-20 11:57:04 -0800386 srcs: [],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800387 resource_dirs: [
388 "quickstep/res",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800389 ],
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700390 libs: [
391 "framework-statsd",
392 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800393 static_libs: [
394 "Launcher3ResLib",
Schneider Victor-tuliasd0865f82021-11-09 13:19:21 -0800395 "lottie",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800396 "SystemUISharedLib",
Jagrut Desaifae321c2023-10-30 20:30:39 +0000397 "SettingsLibSettingsTheme",
Anushree Ganjambd863312024-08-23 17:15:30 -0700398 "dagger2",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800399 ],
400 manifest: "quickstep/AndroidManifest.xml",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700401 min_sdk_version: "current",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800402}
403
Sunny Goyal77954ba2024-03-25 11:53:17 -0700404// Library with all the source code and dependencies for building Launcher Go
Jon Spivacka65d68b2021-04-07 10:22:25 -0700405android_library {
Sunny Goyal77954ba2024-03-25 11:53:17 -0700406 name: "Launcher3GoLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100407 defaults: [
408 "launcher_compose_defaults",
409 "quickstep_compose_defaults",
410 ],
Jon Spivacka65d68b2021-04-07 10:22:25 -0700411 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000412 ":launcher-src",
413 ":launcher-quickstep-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700414 "go/quickstep/src/**/*.java",
415 "go/quickstep/src/**/*.kt",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700416 ],
417 resource_dirs: [
Jon Spivacka65d68b2021-04-07 10:22:25 -0700418 "go/quickstep/res",
419 ],
Ben Murdochfabc8732021-12-02 18:22:17 +0000420 // Note the ordering here is important when it comes to resource
421 // overriding. We want the most specific resource overrides defined
422 // in QuickstepResLib to take precendece, so it should be the final
423 // dependency. See b/205278434 for how this can go wrong.
Jon Spivacka65d68b2021-04-07 10:22:25 -0700424 static_libs: [
Jon Spivacka65d68b2021-04-07 10:22:25 -0700425 "QuickstepResLib",
Jon Spivack89c21c72021-08-13 13:18:24 -0700426 "androidx.room_room-runtime",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700427 ],
Anushree Ganjambd863312024-08-23 17:15:30 -0700428 plugins: [
429 "androidx.room_room-compiler-plugin",
430 "dagger2-compiler",
431 ],
Arvind Kumar384a0ed2023-07-07 09:41:29 +0530432 manifest: "quickstep/AndroidManifest.xml",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700433 additional_manifests: [
434 "go/AndroidManifest.xml",
435 "AndroidManifest-common.xml",
436 ],
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700437 min_sdk_version: "current",
Colin Crossf156b6b2024-01-11 14:03:12 -0800438 // TODO(b/319712088): re-enable use_resource_processor
439 use_resource_processor: false,
Jon Spivacka65d68b2021-04-07 10:22:25 -0700440}
441
Sunny Goyal77954ba2024-03-25 11:53:17 -0700442// Library with all the source code and dependencies for building Quickstep
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700443android_library {
444 name: "Launcher3QuickStepLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100445 defaults: [
446 "launcher_compose_defaults",
Anushree Ganjambd863312024-08-23 17:15:30 -0700447 "quickstep_compose_defaults",
Jordan Silva4afa1952024-08-06 16:54:59 +0100448 ],
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700449 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000450 ":launcher-src",
451 ":launcher-quickstep-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700452 ":launcher-build-config",
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700453 ],
Thales Limac335ad22021-11-08 15:31:49 +0000454 resource_dirs: [],
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700455 libs: [
456 "framework-statsd",
457 ],
Ben Murdochfabc8732021-12-02 18:22:17 +0000458 // Note the ordering here is important when it comes to resource
459 // overriding. We want the most specific resource overrides defined
460 // in QuickstepResLib to take precendece, so it should be the final
461 // dependency. See b/208647810 for how this can go wrong.
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700462 static_libs: [
463 "SystemUI-statsd",
Ben Murdochfabc8732021-12-02 18:22:17 +0000464 "QuickstepResLib",
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700465 ],
466 manifest: "quickstep/AndroidManifest.xml",
467 platform_apis: true,
Anushree Ganjambd863312024-08-23 17:15:30 -0700468 plugins: ["dagger2-compiler"],
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700469 min_sdk_version: "current",
Colin Crossf156b6b2024-01-11 14:03:12 -0800470 // TODO(b/319712088): re-enable use_resource_processor
471 use_resource_processor: false,
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700472}
Thales Lima813834a2022-05-18 15:29:59 +0000473
Thales Lima813834a2022-05-18 15:29:59 +0000474// Build rule for Quickstep app.
475android_app {
476 name: "Launcher3QuickStep",
Thales Lima813834a2022-05-18 15:29:59 +0000477 static_libs: ["Launcher3QuickStepLib"],
478 optimize: {
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000479 proguard_flags_files: [":launcher-proguard-rules"],
480 enabled: true,
481 shrink_resources: true,
Thales Lima813834a2022-05-18 15:29:59 +0000482 },
483
484 platform_apis: true,
485 min_sdk_version: "current",
486 target_sdk_version: "current",
487
488 privileged: true,
489 system_ext_specific: true,
490 overrides: [
491 "Home",
492 "Launcher2",
493 "Launcher3",
494 ],
495 required: ["privapp_whitelist_com.android.launcher3"],
496
497 resource_dirs: ["quickstep/res"],
498
499 additional_manifests: [
500 "quickstep/AndroidManifest-launcher.xml",
501 "AndroidManifest-common.xml",
502 ],
503
504 manifest: "quickstep/AndroidManifest.xml",
505 jacoco: {
506 include_filter: ["com.android.launcher3.*"],
Cole Faustbad33e62023-12-20 11:57:04 -0800507 },
Thales Lima813834a2022-05-18 15:29:59 +0000508
509}
510
Sunny Goyal77954ba2024-03-25 11:53:17 -0700511// Build rule for Launcher3 Go app with quickstep for Android Go devices.
512// Note that the following two rules are exactly same, and should
513// eventually be merged into a single target
514android_app {
515 name: "Launcher3Go",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700516 static_libs: ["Launcher3GoLib"],
Sunny Goyal3b452f52024-04-12 19:16:19 +0000517 resource_dirs: [],
Thales Lima813834a2022-05-18 15:29:59 +0000518
519 platform_apis: true,
520 min_sdk_version: "current",
521 target_sdk_version: "current",
522
Thales Lima813834a2022-05-18 15:29:59 +0000523 optimize: {
524 proguard_flags_files: ["proguard.flags"],
525 enabled: true,
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000526 shrink_resources: true,
Thales Lima813834a2022-05-18 15:29:59 +0000527 },
528
529 privileged: true,
530 system_ext_specific: true,
531 overrides: [
532 "Home",
533 "Launcher2",
534 "Launcher3",
535 "Launcher3QuickStep",
536 ],
537 required: ["privapp_whitelist_com.android.launcher3"],
538
539 additional_manifests: [
540 "go/AndroidManifest.xml",
541 "go/AndroidManifest-launcher.xml",
542 "AndroidManifest-common.xml",
543 ],
544
545 manifest: "quickstep/AndroidManifest.xml",
546 jacoco: {
547 include_filter: ["com.android.launcher3.*"],
Cole Faustbad33e62023-12-20 11:57:04 -0800548 },
Sunny Goyal77954ba2024-03-25 11:53:17 -0700549}
Anushree Ganjambd863312024-08-23 17:15:30 -0700550
Sunny Goyal77954ba2024-03-25 11:53:17 -0700551android_app {
552 name: "Launcher3QuickStepGo",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700553 static_libs: ["Launcher3GoLib"],
Sunny Goyal3b452f52024-04-12 19:16:19 +0000554 resource_dirs: [],
Sunny Goyal77954ba2024-03-25 11:53:17 -0700555
556 platform_apis: true,
557 min_sdk_version: "current",
558 target_sdk_version: "current",
559
560 optimize: {
561 proguard_flags_files: ["proguard.flags"],
562 enabled: true,
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000563 shrink_resources: true,
Sunny Goyal77954ba2024-03-25 11:53:17 -0700564 },
565
566 privileged: true,
567 system_ext_specific: true,
568 overrides: [
569 "Home",
570 "Launcher2",
571 "Launcher3",
572 "Launcher3QuickStep",
573 ],
574 required: ["privapp_whitelist_com.android.launcher3"],
575
576 additional_manifests: [
577 "go/AndroidManifest.xml",
578 "go/AndroidManifest-launcher.xml",
579 "AndroidManifest-common.xml",
580 ],
581
582 manifest: "quickstep/AndroidManifest.xml",
583 jacoco: {
584 include_filter: ["com.android.launcher3.*"],
585 },
Thales Lima813834a2022-05-18 15:29:59 +0000586}