blob: def024efee4f57450eae0486bf719f44f313d357 [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",
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",
Jordan Silva4afa1952024-08-06 16:54:59 +0100325
Nicolo' Mazzucatoe8ee34a2023-01-24 15:41:10 +0000326 ],
Sunny Goyal77954ba2024-03-25 11:53:17 -0700327 manifest: "AndroidManifest-common.xml",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800328 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700329 min_sdk_version: min_launcher3_sdk_version,
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000330 lint: {
Sunny Goyal9d2ece12024-03-22 13:52:19 -0700331 baseline_filename: "lint-baseline.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000332 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800333}
334
335//
336// Build rule for Launcher3 app.
337//
338android_app {
339 name: "Launcher3",
Jared Duke1222dd72024-07-12 00:01:11 +0000340 defaults: ["launcher-non-platform-apis-defaults"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800341
342 static_libs: [
Sunny Goyal77954ba2024-03-25 11:53:17 -0700343 "Launcher3ResLib",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800344 ],
345 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000346 ":launcher-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700347 ":launcher-src_no_quickstep",
348 ":launcher-build-config",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800349 ],
Sunny Goyal9d2ece12024-03-22 13:52:19 -0700350
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800351 optimize: {
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000352 proguard_flags_files: [":launcher-proguard-rules"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800353 // Proguard is disable for testing. Derivarive prjects to keep proguard enabled
354 enabled: false,
355 },
356
357 sdk_version: "current",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700358 min_sdk_version: min_launcher3_sdk_version,
359 target_sdk_version: "current",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800360 privileged: true,
361 system_ext_specific: true,
362
363 overrides: [
364 "Home",
365 "Launcher2",
366 ],
367 required: ["privapp_whitelist_com.android.launcher3"],
368
369 jacoco: {
370 include_filter: ["com.android.launcher3.**"],
371 },
372 additional_manifests: [
373 "AndroidManifest-common.xml",
374 ],
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000375 lint: {
Cole Faustc778a672024-01-10 12:30:39 -0800376 baseline_filename: "lint-baseline.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000377 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800378}
379
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800380// Library with all the dependencies for building quickstep
381android_library {
382 name: "QuickstepResLib",
Cole Faustbad33e62023-12-20 11:57:04 -0800383 srcs: [],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800384 resource_dirs: [
385 "quickstep/res",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800386 ],
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700387 libs: [
388 "framework-statsd",
389 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800390 static_libs: [
391 "Launcher3ResLib",
Schneider Victor-tuliasd0865f82021-11-09 13:19:21 -0800392 "lottie",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800393 "SystemUISharedLib",
Jagrut Desaifae321c2023-10-30 20:30:39 +0000394 "SettingsLibSettingsTheme",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800395 ],
396 manifest: "quickstep/AndroidManifest.xml",
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700397 min_sdk_version: "current",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800398}
399
Sunny Goyal77954ba2024-03-25 11:53:17 -0700400// Library with all the source code and dependencies for building Launcher Go
Jon Spivacka65d68b2021-04-07 10:22:25 -0700401android_library {
Sunny Goyal77954ba2024-03-25 11:53:17 -0700402 name: "Launcher3GoLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100403 defaults: [
404 "launcher_compose_defaults",
405 "quickstep_compose_defaults",
406 ],
Jon Spivacka65d68b2021-04-07 10:22:25 -0700407 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000408 ":launcher-src",
409 ":launcher-quickstep-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700410 "go/quickstep/src/**/*.java",
411 "go/quickstep/src/**/*.kt",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700412 ],
413 resource_dirs: [
Jon Spivacka65d68b2021-04-07 10:22:25 -0700414 "go/quickstep/res",
415 ],
Ben Murdochfabc8732021-12-02 18:22:17 +0000416 // Note the ordering here is important when it comes to resource
417 // overriding. We want the most specific resource overrides defined
418 // in QuickstepResLib to take precendece, so it should be the final
419 // dependency. See b/205278434 for how this can go wrong.
Jon Spivacka65d68b2021-04-07 10:22:25 -0700420 static_libs: [
Jon Spivacka65d68b2021-04-07 10:22:25 -0700421 "QuickstepResLib",
Jon Spivack89c21c72021-08-13 13:18:24 -0700422 "androidx.room_room-runtime",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700423 ],
Jon Spivack89c21c72021-08-13 13:18:24 -0700424 plugins: ["androidx.room_room-compiler-plugin"],
Arvind Kumar384a0ed2023-07-07 09:41:29 +0530425 manifest: "quickstep/AndroidManifest.xml",
Jon Spivacka65d68b2021-04-07 10:22:25 -0700426 additional_manifests: [
427 "go/AndroidManifest.xml",
428 "AndroidManifest-common.xml",
429 ],
Sunny Goyal1fb271f2021-05-20 10:43:23 -0700430 min_sdk_version: "current",
Colin Crossf156b6b2024-01-11 14:03:12 -0800431 // TODO(b/319712088): re-enable use_resource_processor
432 use_resource_processor: false,
Jon Spivacka65d68b2021-04-07 10:22:25 -0700433}
434
Sunny Goyal77954ba2024-03-25 11:53:17 -0700435// Library with all the source code and dependencies for building Quickstep
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700436android_library {
437 name: "Launcher3QuickStepLib",
Jordan Silva4afa1952024-08-06 16:54:59 +0100438 defaults: [
439 "launcher_compose_defaults",
440 "quickstep_compose_defaults"
441 ],
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700442 srcs: [
Thales Lima2c54bbf2022-07-12 15:45:10 +0000443 ":launcher-src",
444 ":launcher-quickstep-src",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700445 ":launcher-build-config",
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700446 ],
Thales Limac335ad22021-11-08 15:31:49 +0000447 resource_dirs: [],
Thiru Ramasamyd495e8c2021-08-26 10:37:17 -0700448 libs: [
449 "framework-statsd",
450 ],
Ben Murdochfabc8732021-12-02 18:22:17 +0000451 // Note the ordering here is important when it comes to resource
452 // overriding. We want the most specific resource overrides defined
453 // in QuickstepResLib to take precendece, so it should be the final
454 // dependency. See b/208647810 for how this can go wrong.
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700455 static_libs: [
456 "SystemUI-statsd",
Ben Murdochfabc8732021-12-02 18:22:17 +0000457 "QuickstepResLib",
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700458 ],
459 manifest: "quickstep/AndroidManifest.xml",
460 platform_apis: true,
461 min_sdk_version: "current",
Colin Crossf156b6b2024-01-11 14:03:12 -0800462 // TODO(b/319712088): re-enable use_resource_processor
463 use_resource_processor: false,
Sunny Goyal4af8cf92021-07-29 15:48:24 -0700464}
Thales Lima813834a2022-05-18 15:29:59 +0000465
Thales Lima813834a2022-05-18 15:29:59 +0000466// Build rule for Quickstep app.
467android_app {
468 name: "Launcher3QuickStep",
Thales Lima813834a2022-05-18 15:29:59 +0000469 static_libs: ["Launcher3QuickStepLib"],
470 optimize: {
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000471 proguard_flags_files: [":launcher-proguard-rules"],
472 enabled: true,
473 shrink_resources: true,
Thales Lima813834a2022-05-18 15:29:59 +0000474 },
475
476 platform_apis: true,
477 min_sdk_version: "current",
478 target_sdk_version: "current",
479
480 privileged: true,
481 system_ext_specific: true,
482 overrides: [
483 "Home",
484 "Launcher2",
485 "Launcher3",
486 ],
487 required: ["privapp_whitelist_com.android.launcher3"],
488
489 resource_dirs: ["quickstep/res"],
490
491 additional_manifests: [
492 "quickstep/AndroidManifest-launcher.xml",
493 "AndroidManifest-common.xml",
494 ],
495
496 manifest: "quickstep/AndroidManifest.xml",
497 jacoco: {
498 include_filter: ["com.android.launcher3.*"],
Cole Faustbad33e62023-12-20 11:57:04 -0800499 },
Thales Lima813834a2022-05-18 15:29:59 +0000500
501}
502
Thales Lima813834a2022-05-18 15:29:59 +0000503
Sunny Goyal77954ba2024-03-25 11:53:17 -0700504// Build rule for Launcher3 Go app with quickstep for Android Go devices.
505// Note that the following two rules are exactly same, and should
506// eventually be merged into a single target
507android_app {
508 name: "Launcher3Go",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700509 static_libs: ["Launcher3GoLib"],
Sunny Goyal3b452f52024-04-12 19:16:19 +0000510 resource_dirs: [],
Thales Lima813834a2022-05-18 15:29:59 +0000511
512 platform_apis: true,
513 min_sdk_version: "current",
514 target_sdk_version: "current",
515
Thales Lima813834a2022-05-18 15:29:59 +0000516 optimize: {
517 proguard_flags_files: ["proguard.flags"],
518 enabled: true,
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000519 shrink_resources: true,
Thales Lima813834a2022-05-18 15:29:59 +0000520 },
521
522 privileged: true,
523 system_ext_specific: true,
524 overrides: [
525 "Home",
526 "Launcher2",
527 "Launcher3",
528 "Launcher3QuickStep",
529 ],
530 required: ["privapp_whitelist_com.android.launcher3"],
531
532 additional_manifests: [
533 "go/AndroidManifest.xml",
534 "go/AndroidManifest-launcher.xml",
535 "AndroidManifest-common.xml",
536 ],
537
538 manifest: "quickstep/AndroidManifest.xml",
539 jacoco: {
540 include_filter: ["com.android.launcher3.*"],
Cole Faustbad33e62023-12-20 11:57:04 -0800541 },
Sunny Goyal77954ba2024-03-25 11:53:17 -0700542}
543android_app {
544 name: "Launcher3QuickStepGo",
Sunny Goyal77954ba2024-03-25 11:53:17 -0700545 static_libs: ["Launcher3GoLib"],
Sunny Goyal3b452f52024-04-12 19:16:19 +0000546 resource_dirs: [],
Sunny Goyal77954ba2024-03-25 11:53:17 -0700547
548 platform_apis: true,
549 min_sdk_version: "current",
550 target_sdk_version: "current",
551
552 optimize: {
553 proguard_flags_files: ["proguard.flags"],
554 enabled: true,
Jordan Silva6a8d81a2024-07-08 13:29:48 +0000555 shrink_resources: true,
Sunny Goyal77954ba2024-03-25 11:53:17 -0700556 },
557
558 privileged: true,
559 system_ext_specific: true,
560 overrides: [
561 "Home",
562 "Launcher2",
563 "Launcher3",
564 "Launcher3QuickStep",
565 ],
566 required: ["privapp_whitelist_com.android.launcher3"],
567
568 additional_manifests: [
569 "go/AndroidManifest.xml",
570 "go/AndroidManifest-launcher.xml",
571 "AndroidManifest-common.xml",
572 ],
573
574 manifest: "quickstep/AndroidManifest.xml",
575 jacoco: {
576 include_filter: ["com.android.launcher3.*"],
577 },
Thales Lima813834a2022-05-18 15:29:59 +0000578}