blob: bcbd3626e912b7f2b7a7e52289c9f4980d529bf5 [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
Anushree Ganjam14721d12024-08-29 10:05:12 -070072// Source code for quickstep dagger
73filegroup {
74 name: "launcher-quickstep-dagger",
75 srcs: [
76 "quickstep/dagger/**/*.java",
77 "quickstep/dagger/**/*.kt",
78 ],
79}
80
Jordan Silva4afa1952024-08-06 16:54:59 +010081// Source code for quickstep build with compose enabled, on top of launcher-src
82filegroup {
83 name: "launcher-quickstep-compose-enabled-src",
84 srcs: [
85 "quickstep/compose/facade/core/*.kt",
86 "quickstep/compose/facade/enabled/*.kt",
87 "quickstep/compose/features/**/*.kt",
88 ],
89}
90
91filegroup {
92 name: "launcher-quickstep-compose-disabled-src",
93 srcs: [
94 "quickstep/compose/facade/core/*.kt",
95 "quickstep/compose/facade/disabled/*.kt",
96 ],
97}
98
Sunny Goyal77954ba2024-03-25 11:53:17 -070099// Alternate source when quickstep is not included
Thales Lima2c54bbf2022-07-12 15:45:10 +0000100filegroup {
Sunny Goyal77954ba2024-03-25 11:53:17 -0700101 name: "launcher-src_no_quickstep",
Cole Faustbad33e62023-12-20 11:57:04 -0800102 srcs: [
Sunny Goyal77954ba2024-03-25 11:53:17 -0700103 "src_no_quickstep/**/*.java",
104 "src_no_quickstep/**/*.kt",
Cole Faustbad33e62023-12-20 11:57:04 -0800105 ],
Thales Lima2c54bbf2022-07-12 15:45:10 +0000106}
107
Sunny Goyal77954ba2024-03-25 11:53:17 -0700108// Default build config for Launcher3
Thales Lima2c54bbf2022-07-12 15:45:10 +0000109filegroup {
Sunny Goyal77954ba2024-03-25 11:53:17 -0700110 name: "launcher-build-config",
Cole Faustbad33e62023-12-20 11:57:04 -0800111 srcs: [
Sunny Goyal77954ba2024-03-25 11:53:17 -0700112 "src_build_config/**/*.java",
Cole Faustbad33e62023-12-20 11:57:04 -0800113 ],
Thales Lima2c54bbf2022-07-12 15:45:10 +0000114}
115
Thales Lima2c54bbf2022-07-12 15:45:10 +0000116// Proguard files for Launcher3
117filegroup {
118 name: "launcher-proguard-rules",
119 srcs: ["proguard.flags"],
120}
121
Jordan Silva4afa1952024-08-06 16:54:59 +0100122// Opt-in configuration for Launcher3 code depending on Jetpack Compose.
123soong_config_module_type {
124 name: "launcher_compose_java_defaults",
125 module_type: "java_defaults",
126 config_namespace: "ANDROID",
127 bool_variables: ["release_enable_compose_in_launcher"],
128 properties: [
129 "srcs",
130 "static_libs",
131 ],
132}
133
134// Opt-in configuration for Launcher Quickstep code depending on Jetpack Compose.
135soong_config_bool_variable {
136 name: "release_enable_compose_in_launcher",
137}
138
139soong_config_module_type {
140 name: "quickstep_compose_java_defaults",
141 module_type: "java_defaults",
142 config_namespace: "ANDROID",
143 bool_variables: ["release_enable_compose_in_launcher"],
144 properties: [
145 "srcs",
146 "static_libs",
147 ],
148}
149
150soong_config_module_type {
151 name: "launcher_compose_tests_java_defaults",
152 module_type: "java_defaults",
153 config_namespace: "ANDROID",
154 bool_variables: ["release_enable_compose_in_launcher"],
155 properties: [
156 "static_libs",
157 ],
158}
159
160launcher_compose_java_defaults {
161 name: "launcher_compose_defaults",
162 soong_config_variables: {
163 release_enable_compose_in_launcher: {
164 srcs: [
Anushree Ganjambd863312024-08-23 17:15:30 -0700165 ":launcher-compose-enabled-src",
Jordan Silva4afa1952024-08-06 16:54:59 +0100166 ],
167
168 // Compose dependencies
169 static_libs: [
170 "androidx.compose.runtime_runtime",
171 "androidx.compose.material3_material3",
172 ],
173
174 // By default, Compose is disabled and we compile the ComposeFacade
175 // in compose/launcher3/facade/disabled/.
176 conditions_default: {
177 srcs: [
Anushree Ganjambd863312024-08-23 17:15:30 -0700178 ":launcher-compose-disabled-src",
Jordan Silva4afa1952024-08-06 16:54:59 +0100179 ],
180 static_libs: [],
181 },
182 },
183 },
184}
185
186quickstep_compose_java_defaults {
187 name: "quickstep_compose_defaults",
188 soong_config_variables: {
189 release_enable_compose_in_launcher: {
190 srcs: [
Anushree Ganjambd863312024-08-23 17:15:30 -0700191 ":launcher-quickstep-compose-enabled-src",
Jordan Silva4afa1952024-08-06 16:54:59 +0100192 ],
193
194 // Compose dependencies
195 static_libs: [
196 "androidx.compose.runtime_runtime",
197 "androidx.compose.material3_material3",
198 ],
199
200 // By default, Compose is disabled and we compile the ComposeFacade
201 // in compose/quickstep/facade/disabled/.
202 conditions_default: {
203 srcs: [
Anushree Ganjambd863312024-08-23 17:15:30 -0700204 ":launcher-quickstep-compose-disabled-src",
Jordan Silva4afa1952024-08-06 16:54:59 +0100205 ],
206 static_libs: [],
207 },
208 },
209 },
210}
211
212launcher_compose_tests_java_defaults {
213 name: "launcher_compose_tests_defaults",
214 soong_config_variables: {
215 release_enable_compose_in_launcher: {
216 // Compose dependencies
217 static_libs: [
218 "androidx.compose.runtime_runtime",
219 "androidx.compose.ui_ui-test-junit4",
220 "androidx.compose.ui_ui-test-manifest",
221 ],
222
223 conditions_default: {
224 static_libs: [],
225 },
226 },
227 },
228}
229
vadimt09df0832019-03-07 14:59:30 -0800230android_library {
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700231 name: "launcher-aosp-tapl",
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700232 libs: [
Jihoon Kang9f8e4b62024-08-30 00:29:41 +0000233 "framework-statsd.stubs.module_lib",
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700234 ],
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700235 static_libs: [
236 "androidx.annotation_annotation",
Brett Chabotd7d692c2018-10-23 21:17:58 -0700237 "androidx.test.runner",
238 "androidx.test.rules",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700239 "androidx.test.uiautomator_uiautomator",
Hyunyoung Songbb715822020-08-04 10:45:53 -0700240 "androidx.preference_preference",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700241 "SystemUISharedLib",
Peter Kalauskas9bdb1da2024-04-02 15:38:57 -0700242 "//frameworks/libs/systemui:animationlib",
helencheuk39a60932024-08-05 16:11:07 +0100243 "//frameworks/libs/systemui:contextualeducationlib",
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000244 "launcher-testing-shared",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700245 ],
246 srcs: [
Uwais Ashraf9c2f5a42024-03-04 09:49:39 +0000247 "tests/tapl/**/*.java",
248 "tests/tapl/**/*.kt",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700249 ],
Cole Faustbad33e62023-12-20 11:57:04 -0800250 resource_dirs: [],
Uwais Ashraf9c2f5a42024-03-04 09:49:39 +0000251 manifest: "tests/tapl/AndroidManifest.xml",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -0700252 platform_apis: true,
253}
thiruram5e1ecf62019-11-13 17:49:35 -0800254
255java_library_static {
thiruramc1c2bfa2020-02-04 18:56:40 -0800256 name: "launcher_log_protos_lite",
thiruram5e1ecf62019-11-13 17:49:35 -0800257 srcs: [
258 "protos/*.proto",
thiruramcbeb13d2021-01-27 14:45:58 -0800259 "protos_overrides/*.proto",
thiruram5e1ecf62019-11-13 17:49:35 -0800260 ],
261 sdk_version: "current",
262 proto: {
263 type: "lite",
Cole Faustbad33e62023-12-20 11:57:04 -0800264 local_include_dirs: [
thiruram5e1ecf62019-11-13 17:49:35 -0800265 "protos",
thiruramcbeb13d2021-01-27 14:45:58 -0800266 "protos_overrides",
thiruram5e1ecf62019-11-13 17:49:35 -0800267 ],
268 },
thiruramc1c2bfa2020-02-04 18:56:40 -0800269 static_libs: ["libprotobuf-java-lite"],
thiruram5e1ecf62019-11-13 17:49:35 -0800270}
Hyunyoung Song8605be32020-02-21 14:52:25 -0800271
thiruramcbeb13d2021-01-27 14:45:58 -0800272java_library_static {
273 name: "launcher_quickstep_log_protos_lite",
274 srcs: [
275 "quickstep/protos_overrides/*.proto",
276 ],
277 sdk_version: "current",
278 proto: {
279 type: "lite",
Cole Faustbad33e62023-12-20 11:57:04 -0800280 local_include_dirs: [
thiruramcbeb13d2021-01-27 14:45:58 -0800281 "quickstep/protos_overrides",
282 ],
283 },
284 static_libs: [
Cole Faustbad33e62023-12-20 11:57:04 -0800285 "libprotobuf-java-lite",
286 "launcher_log_protos_lite",
287 ],
thiruramcbeb13d2021-01-27 14:45:58 -0800288}
289
Hyunyoung Song8605be32020-02-21 14:52:25 -0800290java_library {
291 name: "LauncherPluginLib",
292
293 static_libs: ["PluginCoreLib"],
294
295 srcs: ["src_plugins/**/*.java"],
296
297 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700298 min_sdk_version: min_launcher3_sdk_version,
Hyunyoung Song8605be32020-02-21 14:52:25 -0800299}
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800300
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800301// Library with all the dependencies for building Launcher3
302android_library {
303 name: "Launcher3ResLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100304 defaults: [
305 "launcher_compose_defaults",
306 ],
Cole Faustbad33e62023-12-20 11:57:04 -0800307 srcs: [],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800308 resource_dirs: ["res"],
309 static_libs: [
310 "LauncherPluginLib",
311 "launcher_quickstep_log_protos_lite",
312 "androidx-constraintlayout_constraintlayout",
313 "androidx.recyclerview_recyclerview",
314 "androidx.dynamicanimation_dynamicanimation",
315 "androidx.fragment_fragment",
316 "androidx.preference_preference",
317 "androidx.slice_slice-view",
318 "androidx.cardview_cardview",
Sebastian Franco9ae40322023-10-10 10:50:28 -0700319 "androidx.window_window",
Brian Isganitis93031bc2021-06-09 16:34:45 -0400320 "com.google.android.material_material",
Peter Kalauskas9bdb1da2024-04-02 15:38:57 -0700321 "//frameworks/libs/systemui:iconloader_base",
322 "//frameworks/libs/systemui:view_capture",
323 "//frameworks/libs/systemui:animationlib",
helencheuk39a60932024-08-05 16:11:07 +0100324 "//frameworks/libs/systemui:contextualeducationlib",
Anna Zhuravleva9c203812023-11-20 18:30:35 +0000325 "SystemUI-statsd",
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000326 "launcher-testing-shared",
Uwais Ashraf6e9927e2024-03-25 10:53:06 +0000327 "androidx.lifecycle_lifecycle-common-java8",
328 "androidx.lifecycle_lifecycle-extensions",
329 "androidx.lifecycle_lifecycle-runtime-ktx",
330 "kotlinx_coroutines_android",
331 "kotlinx_coroutines",
Anushree Ganjam2a14b972023-08-30 13:31:10 -0700332 "com_android_launcher3_flags_lib",
Jeremy Sim9e44e372023-10-10 14:54:39 -0700333 "com_android_wm_shell_flags_lib",
Anushree Ganjambd863312024-08-23 17:15:30 -0700334 "dagger2",
335 "jsr330",
George Linde4d7452024-08-27 16:57:32 +0000336 "com_android_systemui_shared_flags_lib",
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000337 ],
Sunny Goyal77954ba2024-03-25 11:53:17 -0700338 manifest: "AndroidManifest-common.xml",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800339 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700340 min_sdk_version: min_launcher3_sdk_version,
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000341 lint: {
Sunny Goyal9d2ece12024-03-22 13:52:19 -0700342 baseline_filename: "lint-baseline.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000343 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800344}
345
346//
347// Build rule for Launcher3 app.
348//
349android_app {
350 name: "Launcher3",
Jared Duke1222dd72024-07-12 00:01:11 +0000351 defaults: ["launcher-non-platform-apis-defaults"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800352
353 static_libs: [
Sunny Goyal77954ba2024-03-25 11:53:17 -0700354 "Launcher3ResLib",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800355 ],
356 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000357 ":launcher-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700358 ":launcher-src_no_quickstep",
359 ":launcher-build-config",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800360 ],
Sunny Goyal9d2ece12024-03-22 13:52:19 -0700361
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800362 optimize: {
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000363 proguard_flags_files: [":launcher-proguard-rules"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800364 // Proguard is disable for testing. Derivarive prjects to keep proguard enabled
365 enabled: false,
366 },
367
368 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700369 min_sdk_version: min_launcher3_sdk_version,
370 target_sdk_version: "current",
Anushree Ganjambd863312024-08-23 17:15:30 -0700371 plugins: ["dagger2-compiler"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800372 privileged: true,
373 system_ext_specific: true,
374
375 overrides: [
376 "Home",
377 "Launcher2",
378 ],
379 required: ["privapp_whitelist_com.android.launcher3"],
380
381 jacoco: {
382 include_filter: ["com.android.launcher3.**"],
383 },
384 additional_manifests: [
385 "AndroidManifest-common.xml",
386 ],
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000387 lint: {
Cole Faustc778a672024-01-10 12:30:39 -0800388 baseline_filename: "lint-baseline.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000389 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800390}
391
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800392// Library with all the dependencies for building quickstep
393android_library {
394 name: "QuickstepResLib",
Cole Faustbad33e62023-12-20 11:57:04 -0800395 srcs: [],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800396 resource_dirs: [
397 "quickstep/res",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800398 ],
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700399 libs: [
Jihoon Kang9f8e4b62024-08-30 00:29:41 +0000400 "framework-statsd.stubs.module_lib",
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700401 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800402 static_libs: [
403 "Launcher3ResLib",
Schneider Victor-tuliasd0865f82021-11-09 13:19:21 -0800404 "lottie",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800405 "SystemUISharedLib",
Jagrut Desaifae321c2023-10-30 20:30:39 +0000406 "SettingsLibSettingsTheme",
Anushree Ganjambd863312024-08-23 17:15:30 -0700407 "dagger2",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800408 ],
409 manifest: "quickstep/AndroidManifest.xml",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700410 min_sdk_version: "current",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800411}
412
Sunny Goyal77954ba2024-03-25 11:53:17 -0700413// Library with all the source code and dependencies for building Launcher Go
Jon Spivacka65d68b2021-04-07 10:22:25 -0700414android_library {
Sunny Goyal77954ba2024-03-25 11:53:17 -0700415 name: "Launcher3GoLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100416 defaults: [
417 "launcher_compose_defaults",
418 "quickstep_compose_defaults",
419 ],
Jon Spivacka65d68b2021-04-07 10:22:25 -0700420 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000421 ":launcher-src",
422 ":launcher-quickstep-src",
Anushree Ganjam14721d12024-08-29 10:05:12 -0700423 ":launcher-quickstep-dagger",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700424 "go/quickstep/src/**/*.java",
425 "go/quickstep/src/**/*.kt",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700426 ],
427 resource_dirs: [
Jon Spivacka65d68b2021-04-07 10:22:25 -0700428 "go/quickstep/res",
429 ],
Ben Murdochfabc8732021-12-02 18:22:17 +0000430 // Note the ordering here is important when it comes to resource
431 // overriding. We want the most specific resource overrides defined
432 // in QuickstepResLib to take precendece, so it should be the final
433 // dependency. See b/205278434 for how this can go wrong.
Jon Spivacka65d68b2021-04-07 10:22:25 -0700434 static_libs: [
Jon Spivacka65d68b2021-04-07 10:22:25 -0700435 "QuickstepResLib",
Jon Spivack89c21c72021-08-13 13:18:24 -0700436 "androidx.room_room-runtime",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700437 ],
Anushree Ganjambd863312024-08-23 17:15:30 -0700438 plugins: [
439 "androidx.room_room-compiler-plugin",
440 "dagger2-compiler",
441 ],
Arvind Kumar384a0ed2023-07-07 09:41:29 +0530442 manifest: "quickstep/AndroidManifest.xml",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700443 additional_manifests: [
444 "go/AndroidManifest.xml",
445 "AndroidManifest-common.xml",
446 ],
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700447 min_sdk_version: "current",
Colin Crossf156b6b2024-01-11 14:03:12 -0800448 // TODO(b/319712088): re-enable use_resource_processor
449 use_resource_processor: false,
Jon Spivacka65d68b2021-04-07 10:22:25 -0700450}
451
Sunny Goyal77954ba2024-03-25 11:53:17 -0700452// Library with all the source code and dependencies for building Quickstep
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700453android_library {
454 name: "Launcher3QuickStepLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100455 defaults: [
456 "launcher_compose_defaults",
Anushree Ganjambd863312024-08-23 17:15:30 -0700457 "quickstep_compose_defaults",
Jordan Silva4afa1952024-08-06 16:54:59 +0100458 ],
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700459 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000460 ":launcher-src",
461 ":launcher-quickstep-src",
Anushree Ganjam14721d12024-08-29 10:05:12 -0700462 ":launcher-quickstep-dagger",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700463 ":launcher-build-config",
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700464 ],
Thales Limac335ad22021-11-08 15:31:49 +0000465 resource_dirs: [],
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700466 libs: [
Jihoon Kang9f8e4b62024-08-30 00:29:41 +0000467 "framework-statsd.stubs.module_lib",
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700468 ],
Ben Murdochfabc8732021-12-02 18:22:17 +0000469 // Note the ordering here is important when it comes to resource
470 // overriding. We want the most specific resource overrides defined
471 // in QuickstepResLib to take precendece, so it should be the final
472 // dependency. See b/208647810 for how this can go wrong.
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700473 static_libs: [
474 "SystemUI-statsd",
Ben Murdochfabc8732021-12-02 18:22:17 +0000475 "QuickstepResLib",
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700476 ],
477 manifest: "quickstep/AndroidManifest.xml",
478 platform_apis: true,
Anushree Ganjambd863312024-08-23 17:15:30 -0700479 plugins: ["dagger2-compiler"],
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700480 min_sdk_version: "current",
Colin Crossf156b6b2024-01-11 14:03:12 -0800481 // TODO(b/319712088): re-enable use_resource_processor
482 use_resource_processor: false,
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700483}
Thales Lima813834a2022-05-18 15:29:59 +0000484
Thales Lima813834a2022-05-18 15:29:59 +0000485// Build rule for Quickstep app.
486android_app {
487 name: "Launcher3QuickStep",
Thales Lima813834a2022-05-18 15:29:59 +0000488 static_libs: ["Launcher3QuickStepLib"],
489 optimize: {
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000490 proguard_flags_files: [":launcher-proguard-rules"],
491 enabled: true,
492 shrink_resources: true,
Thales Lima813834a2022-05-18 15:29:59 +0000493 },
494
495 platform_apis: true,
496 min_sdk_version: "current",
497 target_sdk_version: "current",
498
499 privileged: true,
500 system_ext_specific: true,
501 overrides: [
502 "Home",
503 "Launcher2",
504 "Launcher3",
505 ],
506 required: ["privapp_whitelist_com.android.launcher3"],
507
508 resource_dirs: ["quickstep/res"],
509
510 additional_manifests: [
511 "quickstep/AndroidManifest-launcher.xml",
512 "AndroidManifest-common.xml",
513 ],
514
515 manifest: "quickstep/AndroidManifest.xml",
516 jacoco: {
517 include_filter: ["com.android.launcher3.*"],
Cole Faustbad33e62023-12-20 11:57:04 -0800518 },
Thales Lima813834a2022-05-18 15:29:59 +0000519
520}
521
Sunny Goyal77954ba2024-03-25 11:53:17 -0700522// Build rule for Launcher3 Go app with quickstep for Android Go devices.
523// Note that the following two rules are exactly same, and should
524// eventually be merged into a single target
525android_app {
526 name: "Launcher3Go",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700527 static_libs: ["Launcher3GoLib"],
Sunny Goyal3b452f52024-04-12 19:16:19 +0000528 resource_dirs: [],
Thales Lima813834a2022-05-18 15:29:59 +0000529
530 platform_apis: true,
531 min_sdk_version: "current",
532 target_sdk_version: "current",
533
Thales Lima813834a2022-05-18 15:29:59 +0000534 optimize: {
535 proguard_flags_files: ["proguard.flags"],
536 enabled: true,
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000537 shrink_resources: true,
Thales Lima813834a2022-05-18 15:29:59 +0000538 },
539
540 privileged: true,
541 system_ext_specific: true,
542 overrides: [
543 "Home",
544 "Launcher2",
545 "Launcher3",
546 "Launcher3QuickStep",
547 ],
548 required: ["privapp_whitelist_com.android.launcher3"],
549
550 additional_manifests: [
551 "go/AndroidManifest.xml",
552 "go/AndroidManifest-launcher.xml",
553 "AndroidManifest-common.xml",
554 ],
555
556 manifest: "quickstep/AndroidManifest.xml",
557 jacoco: {
558 include_filter: ["com.android.launcher3.*"],
Cole Faustbad33e62023-12-20 11:57:04 -0800559 },
Sunny Goyal77954ba2024-03-25 11:53:17 -0700560}
Anushree Ganjambd863312024-08-23 17:15:30 -0700561
Sunny Goyal77954ba2024-03-25 11:53:17 -0700562android_app {
563 name: "Launcher3QuickStepGo",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700564 static_libs: ["Launcher3GoLib"],
Sunny Goyal3b452f52024-04-12 19:16:19 +0000565 resource_dirs: [],
Sunny Goyal77954ba2024-03-25 11:53:17 -0700566
567 platform_apis: true,
568 min_sdk_version: "current",
569 target_sdk_version: "current",
570
571 optimize: {
572 proguard_flags_files: ["proguard.flags"],
573 enabled: true,
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000574 shrink_resources: true,
Sunny Goyal77954ba2024-03-25 11:53:17 -0700575 },
576
577 privileged: true,
578 system_ext_specific: true,
579 overrides: [
580 "Home",
581 "Launcher2",
582 "Launcher3",
583 "Launcher3QuickStep",
584 ],
585 required: ["privapp_whitelist_com.android.launcher3"],
586
587 additional_manifests: [
588 "go/AndroidManifest.xml",
589 "go/AndroidManifest-launcher.xml",
590 "AndroidManifest-common.xml",
591 ],
592
593 manifest: "quickstep/AndroidManifest.xml",
594 jacoco: {
595 include_filter: ["com.android.launcher3.*"],
596 },
Thales Lima813834a2022-05-18 15:29:59 +0000597}