Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 1 | // Copyright (C) 2018 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Bob Badour | 4bdf380 | 2021-02-12 17:08:17 -0800 | [diff] [blame] | 15 | package { |
Bob Badour | a7548b5 | 2022-01-27 22:04:48 -0800 | [diff] [blame] | 16 | // See: http://go/android-license-faq |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
Bob Badour | 4bdf380 | 2021-02-12 17:08:17 -0800 | [diff] [blame] | 18 | } |
| 19 | |
Sunny Goyal | 621918f | 2024-09-18 11:31:58 -0700 | [diff] [blame] | 20 | min_launcher3_sdk_version = "31" |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 21 | |
Jared Duke | 1222dd7 | 2024-07-12 00:01:11 +0000 | [diff] [blame] | 22 | // Targets that don't inherit framework aconfig libs (i.e., those that don't set |
| 23 | // `platform_apis: true`) must manually link them. |
| 24 | java_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 Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 30 | ], |
Jared Duke | 1222dd7 | 2024-07-12 00:01:11 +0000 | [diff] [blame] | 31 | } |
| 32 | |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 33 | // 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 Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 35 | |
| 36 | // Main Launcher source, excluding the build config |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 37 | filegroup { |
| 38 | name: "launcher-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 39 | srcs: [ |
| 40 | "src/**/*.java", |
| 41 | "src/**/*.kt", |
| 42 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 43 | } |
| 44 | |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 45 | // Main Launcher source for compose, excluding the build config |
| 46 | filegroup { |
| 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 | |
| 55 | filegroup { |
| 56 | name: "launcher-compose-disabled-src", |
| 57 | srcs: [ |
| 58 | "compose/facade/core/*.kt", |
| 59 | "compose/facade/disabled/*.kt", |
| 60 | ], |
| 61 | } |
| 62 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 63 | // Source code for quickstep build, on top of launcher-src |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 64 | filegroup { |
| 65 | name: "launcher-quickstep-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 66 | srcs: [ |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 67 | "quickstep/src/**/*.kt", |
Schneider Victor-Tulias | 00b6996 | 2024-09-23 13:34:25 -0400 | [diff] [blame] | 68 | "quickstep/src/**/*.java", |
Cole Faust | cfa4fe7 | 2024-10-28 12:20:53 -0700 | [diff] [blame] | 69 | ], |
| 70 | device_common_srcs: [ |
Schneider Victor-Tulias | 00b6996 | 2024-09-23 13:34:25 -0400 | [diff] [blame] | 71 | ":launcher-quickstep-processed-protolog-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 72 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 73 | } |
| 74 | |
Schneider Victor-Tulias | 00b6996 | 2024-09-23 13:34:25 -0400 | [diff] [blame] | 75 | // Launcher ProtoLog support |
| 76 | filegroup { |
| 77 | name: "launcher-quickstep-unprocessed-protolog-src", |
| 78 | srcs: [ |
| 79 | "quickstep/src_protolog/**/*.java", |
| 80 | ], |
| 81 | } |
| 82 | |
| 83 | java_library { |
| 84 | name: "launcher-quickstep_protolog-groups", |
| 85 | srcs: [ |
| 86 | "quickstep/src_protolog/**/*.java", |
| 87 | ], |
| 88 | static_libs: [ |
| 89 | "protolog-group", |
| 90 | "androidx.annotation_annotation", |
| 91 | "com_android_launcher3_flags_lib", |
| 92 | ], |
| 93 | } |
| 94 | |
Cole Faust | cfa4fe7 | 2024-10-28 12:20:53 -0700 | [diff] [blame] | 95 | java_genrule { |
Schneider Victor-Tulias | 00b6996 | 2024-09-23 13:34:25 -0400 | [diff] [blame] | 96 | name: "launcher-quickstep-processed-protolog-src", |
| 97 | srcs: [ |
| 98 | ":protolog-impl", |
| 99 | ":launcher-quickstep-unprocessed-protolog-src", |
| 100 | ":launcher-quickstep_protolog-groups", |
| 101 | ], |
| 102 | tools: ["protologtool"], |
| 103 | cmd: "$(location protologtool) transform-protolog-calls " + |
| 104 | "--protolog-class com.android.internal.protolog.common.ProtoLog " + |
| 105 | "--loggroups-class com.android.quickstep.util.QuickstepProtoLogGroup " + |
| 106 | "--loggroups-jar $(location :launcher-quickstep_protolog-groups) " + |
| 107 | "--viewer-config-file-path /system_ext/etc/launcher.quickstep.protolog.pb " + |
| 108 | "--output-srcjar $(out) " + |
| 109 | "$(locations :launcher-quickstep-unprocessed-protolog-src)", |
| 110 | out: ["launcher.quickstep.protolog.srcjar"], |
| 111 | } |
| 112 | |
Cole Faust | cfa4fe7 | 2024-10-28 12:20:53 -0700 | [diff] [blame] | 113 | java_genrule { |
Schneider Victor-Tulias | 00b6996 | 2024-09-23 13:34:25 -0400 | [diff] [blame] | 114 | name: "gen-launcher.quickstep.protolog.pb", |
| 115 | srcs: [ |
| 116 | ":launcher-quickstep-unprocessed-protolog-src", |
| 117 | ":launcher-quickstep_protolog-groups", |
| 118 | ], |
| 119 | tools: ["protologtool"], |
| 120 | cmd: "$(location protologtool) generate-viewer-config " + |
| 121 | "--protolog-class com.android.internal.protolog.common.ProtoLog " + |
| 122 | "--loggroups-class com.android.quickstep.util.QuickstepProtoLogGroup " + |
| 123 | "--loggroups-jar $(location :launcher-quickstep_protolog-groups) " + |
| 124 | "--viewer-config-type proto " + |
| 125 | "--viewer-config $(out) " + |
| 126 | "$(locations :launcher-quickstep-unprocessed-protolog-src)", |
| 127 | out: ["launcher.quickstep.protolog.pb"], |
| 128 | } |
| 129 | |
| 130 | prebuilt_etc { |
| 131 | name: "launcher.quickstep.protolog.pb", |
| 132 | system_ext_specific: true, |
| 133 | src: ":gen-launcher.quickstep.protolog.pb", |
| 134 | filename_from_src: true, |
| 135 | } |
| 136 | |
Anushree Ganjam | 14721d1 | 2024-08-29 10:05:12 -0700 | [diff] [blame] | 137 | // Source code for quickstep dagger |
| 138 | filegroup { |
| 139 | name: "launcher-quickstep-dagger", |
| 140 | srcs: [ |
| 141 | "quickstep/dagger/**/*.java", |
| 142 | "quickstep/dagger/**/*.kt", |
| 143 | ], |
| 144 | } |
| 145 | |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 146 | // Source code for quickstep build with compose enabled, on top of launcher-src |
| 147 | filegroup { |
| 148 | name: "launcher-quickstep-compose-enabled-src", |
| 149 | srcs: [ |
| 150 | "quickstep/compose/facade/core/*.kt", |
| 151 | "quickstep/compose/facade/enabled/*.kt", |
| 152 | "quickstep/compose/features/**/*.kt", |
| 153 | ], |
| 154 | } |
| 155 | |
| 156 | filegroup { |
| 157 | name: "launcher-quickstep-compose-disabled-src", |
| 158 | srcs: [ |
| 159 | "quickstep/compose/facade/core/*.kt", |
| 160 | "quickstep/compose/facade/disabled/*.kt", |
| 161 | ], |
| 162 | } |
| 163 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 164 | // Alternate source when quickstep is not included |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 165 | filegroup { |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 166 | name: "launcher-src_no_quickstep", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 167 | srcs: [ |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 168 | "src_no_quickstep/**/*.java", |
| 169 | "src_no_quickstep/**/*.kt", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 170 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 171 | } |
| 172 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 173 | // Default build config for Launcher3 |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 174 | filegroup { |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 175 | name: "launcher-build-config", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 176 | srcs: [ |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 177 | "src_build_config/**/*.java", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 178 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 179 | } |
| 180 | |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 181 | // Proguard files for Launcher3 |
| 182 | filegroup { |
| 183 | name: "launcher-proguard-rules", |
| 184 | srcs: ["proguard.flags"], |
| 185 | } |
| 186 | |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 187 | // Opt-in configuration for Launcher3 code depending on Jetpack Compose. |
| 188 | soong_config_module_type { |
| 189 | name: "launcher_compose_java_defaults", |
| 190 | module_type: "java_defaults", |
| 191 | config_namespace: "ANDROID", |
| 192 | bool_variables: ["release_enable_compose_in_launcher"], |
| 193 | properties: [ |
| 194 | "srcs", |
| 195 | "static_libs", |
| 196 | ], |
| 197 | } |
| 198 | |
| 199 | // Opt-in configuration for Launcher Quickstep code depending on Jetpack Compose. |
| 200 | soong_config_bool_variable { |
| 201 | name: "release_enable_compose_in_launcher", |
| 202 | } |
| 203 | |
| 204 | soong_config_module_type { |
| 205 | name: "quickstep_compose_java_defaults", |
| 206 | module_type: "java_defaults", |
| 207 | config_namespace: "ANDROID", |
| 208 | bool_variables: ["release_enable_compose_in_launcher"], |
| 209 | properties: [ |
| 210 | "srcs", |
| 211 | "static_libs", |
| 212 | ], |
| 213 | } |
| 214 | |
| 215 | soong_config_module_type { |
| 216 | name: "launcher_compose_tests_java_defaults", |
| 217 | module_type: "java_defaults", |
| 218 | config_namespace: "ANDROID", |
| 219 | bool_variables: ["release_enable_compose_in_launcher"], |
| 220 | properties: [ |
| 221 | "static_libs", |
| 222 | ], |
| 223 | } |
| 224 | |
| 225 | launcher_compose_java_defaults { |
| 226 | name: "launcher_compose_defaults", |
| 227 | soong_config_variables: { |
| 228 | release_enable_compose_in_launcher: { |
| 229 | srcs: [ |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 230 | ":launcher-compose-enabled-src", |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 231 | ], |
| 232 | |
| 233 | // Compose dependencies |
| 234 | static_libs: [ |
| 235 | "androidx.compose.runtime_runtime", |
| 236 | "androidx.compose.material3_material3", |
| 237 | ], |
| 238 | |
| 239 | // By default, Compose is disabled and we compile the ComposeFacade |
| 240 | // in compose/launcher3/facade/disabled/. |
| 241 | conditions_default: { |
| 242 | srcs: [ |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 243 | ":launcher-compose-disabled-src", |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 244 | ], |
| 245 | static_libs: [], |
| 246 | }, |
| 247 | }, |
| 248 | }, |
| 249 | } |
| 250 | |
| 251 | quickstep_compose_java_defaults { |
| 252 | name: "quickstep_compose_defaults", |
| 253 | soong_config_variables: { |
| 254 | release_enable_compose_in_launcher: { |
| 255 | srcs: [ |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 256 | ":launcher-quickstep-compose-enabled-src", |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 257 | ], |
| 258 | |
| 259 | // Compose dependencies |
| 260 | static_libs: [ |
| 261 | "androidx.compose.runtime_runtime", |
| 262 | "androidx.compose.material3_material3", |
| 263 | ], |
| 264 | |
| 265 | // By default, Compose is disabled and we compile the ComposeFacade |
| 266 | // in compose/quickstep/facade/disabled/. |
| 267 | conditions_default: { |
| 268 | srcs: [ |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 269 | ":launcher-quickstep-compose-disabled-src", |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 270 | ], |
| 271 | static_libs: [], |
| 272 | }, |
| 273 | }, |
| 274 | }, |
| 275 | } |
| 276 | |
| 277 | launcher_compose_tests_java_defaults { |
| 278 | name: "launcher_compose_tests_defaults", |
| 279 | soong_config_variables: { |
| 280 | release_enable_compose_in_launcher: { |
| 281 | // Compose dependencies |
| 282 | static_libs: [ |
| 283 | "androidx.compose.runtime_runtime", |
| 284 | "androidx.compose.ui_ui-test-junit4", |
| 285 | "androidx.compose.ui_ui-test-manifest", |
| 286 | ], |
| 287 | |
| 288 | conditions_default: { |
| 289 | static_libs: [], |
| 290 | }, |
| 291 | }, |
| 292 | }, |
| 293 | } |
| 294 | |
vadimt | 09df083 | 2019-03-07 14:59:30 -0800 | [diff] [blame] | 295 | android_library { |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 296 | name: "launcher-aosp-tapl", |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 297 | libs: [ |
Jihoon Kang | 9f8e4b6 | 2024-08-30 00:29:41 +0000 | [diff] [blame] | 298 | "framework-statsd.stubs.module_lib", |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 299 | ], |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 300 | static_libs: [ |
| 301 | "androidx.annotation_annotation", |
Brett Chabot | d7d692c | 2018-10-23 21:17:58 -0700 | [diff] [blame] | 302 | "androidx.test.runner", |
| 303 | "androidx.test.rules", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 304 | "androidx.test.uiautomator_uiautomator", |
Hyunyoung Song | bb71582 | 2020-08-04 10:45:53 -0700 | [diff] [blame] | 305 | "androidx.preference_preference", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 306 | "SystemUISharedLib", |
Peter Kalauskas | 9bdb1da | 2024-04-02 15:38:57 -0700 | [diff] [blame] | 307 | "//frameworks/libs/systemui:animationlib", |
helencheuk | 39a6093 | 2024-08-05 16:11:07 +0100 | [diff] [blame] | 308 | "//frameworks/libs/systemui:contextualeducationlib", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 309 | "launcher-testing-shared", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 310 | ], |
| 311 | srcs: [ |
Uwais Ashraf | 9c2f5a4 | 2024-03-04 09:49:39 +0000 | [diff] [blame] | 312 | "tests/tapl/**/*.java", |
| 313 | "tests/tapl/**/*.kt", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 314 | ], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 315 | resource_dirs: [], |
Uwais Ashraf | 9c2f5a4 | 2024-03-04 09:49:39 +0000 | [diff] [blame] | 316 | manifest: "tests/tapl/AndroidManifest.xml", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 317 | platform_apis: true, |
| 318 | } |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 319 | |
| 320 | java_library_static { |
thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 321 | name: "launcher_log_protos_lite", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 322 | srcs: [ |
| 323 | "protos/*.proto", |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 324 | "protos_overrides/*.proto", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 325 | ], |
| 326 | sdk_version: "current", |
| 327 | proto: { |
| 328 | type: "lite", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 329 | local_include_dirs: [ |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 330 | "protos", |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 331 | "protos_overrides", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 332 | ], |
| 333 | }, |
thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 334 | static_libs: ["libprotobuf-java-lite"], |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 335 | } |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 336 | |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 337 | java_library_static { |
| 338 | name: "launcher_quickstep_log_protos_lite", |
| 339 | srcs: [ |
| 340 | "quickstep/protos_overrides/*.proto", |
| 341 | ], |
| 342 | sdk_version: "current", |
| 343 | proto: { |
| 344 | type: "lite", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 345 | local_include_dirs: [ |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 346 | "quickstep/protos_overrides", |
| 347 | ], |
| 348 | }, |
| 349 | static_libs: [ |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 350 | "libprotobuf-java-lite", |
| 351 | "launcher_log_protos_lite", |
| 352 | ], |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 353 | } |
| 354 | |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 355 | java_library { |
| 356 | name: "LauncherPluginLib", |
| 357 | |
| 358 | static_libs: ["PluginCoreLib"], |
| 359 | |
| 360 | srcs: ["src_plugins/**/*.java"], |
| 361 | |
| 362 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 363 | min_sdk_version: min_launcher3_sdk_version, |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 364 | } |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 365 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 366 | // Library with all the dependencies for building Launcher3 |
| 367 | android_library { |
| 368 | name: "Launcher3ResLib", |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 369 | defaults: [ |
| 370 | "launcher_compose_defaults", |
| 371 | ], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 372 | srcs: [], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 373 | resource_dirs: ["res"], |
| 374 | static_libs: [ |
| 375 | "LauncherPluginLib", |
| 376 | "launcher_quickstep_log_protos_lite", |
| 377 | "androidx-constraintlayout_constraintlayout", |
| 378 | "androidx.recyclerview_recyclerview", |
| 379 | "androidx.dynamicanimation_dynamicanimation", |
| 380 | "androidx.fragment_fragment", |
| 381 | "androidx.preference_preference", |
| 382 | "androidx.slice_slice-view", |
| 383 | "androidx.cardview_cardview", |
Sebastian Franco | 9ae4032 | 2023-10-10 10:50:28 -0700 | [diff] [blame] | 384 | "androidx.window_window", |
Brian Isganitis | 93031bc | 2021-06-09 16:34:45 -0400 | [diff] [blame] | 385 | "com.google.android.material_material", |
Peter Kalauskas | 9bdb1da | 2024-04-02 15:38:57 -0700 | [diff] [blame] | 386 | "//frameworks/libs/systemui:iconloader_base", |
| 387 | "//frameworks/libs/systemui:view_capture", |
| 388 | "//frameworks/libs/systemui:animationlib", |
helencheuk | 39a6093 | 2024-08-05 16:11:07 +0100 | [diff] [blame] | 389 | "//frameworks/libs/systemui:contextualeducationlib", |
Juan Sebastian Martinez | 9c774c4 | 2024-11-08 08:38:11 -0800 | [diff] [blame] | 390 | "//frameworks/libs/systemui:msdl", |
Anna Zhuravleva | 9c20381 | 2023-11-20 18:30:35 +0000 | [diff] [blame] | 391 | "SystemUI-statsd", |
Mady Mellor | 7d97e96 | 2025-01-13 10:12:43 -0800 | [diff] [blame] | 392 | "WindowManager-Shell-shared-AOSP", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 393 | "launcher-testing-shared", |
Uwais Ashraf | 6e9927e | 2024-03-25 10:53:06 +0000 | [diff] [blame] | 394 | "androidx.lifecycle_lifecycle-common-java8", |
| 395 | "androidx.lifecycle_lifecycle-extensions", |
| 396 | "androidx.lifecycle_lifecycle-runtime-ktx", |
| 397 | "kotlinx_coroutines_android", |
| 398 | "kotlinx_coroutines", |
Anushree Ganjam | 2a14b97 | 2023-08-30 13:31:10 -0700 | [diff] [blame] | 399 | "com_android_launcher3_flags_lib", |
Jeremy Sim | 9e44e37 | 2023-10-10 14:54:39 -0700 | [diff] [blame] | 400 | "com_android_wm_shell_flags_lib", |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 401 | "dagger2", |
| 402 | "jsr330", |
George Lin | de4d745 | 2024-08-27 16:57:32 +0000 | [diff] [blame] | 403 | "com_android_systemui_shared_flags_lib", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 404 | ], |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 405 | manifest: "AndroidManifest-common.xml", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 406 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 407 | min_sdk_version: min_launcher3_sdk_version, |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 408 | lint: { |
Sunny Goyal | 9d2ece1 | 2024-03-22 13:52:19 -0700 | [diff] [blame] | 409 | baseline_filename: "lint-baseline.xml", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 410 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 411 | } |
| 412 | |
| 413 | // |
| 414 | // Build rule for Launcher3 app. |
| 415 | // |
| 416 | android_app { |
| 417 | name: "Launcher3", |
Jared Duke | 1222dd7 | 2024-07-12 00:01:11 +0000 | [diff] [blame] | 418 | defaults: ["launcher-non-platform-apis-defaults"], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 419 | |
| 420 | static_libs: [ |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 421 | "Launcher3ResLib", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 422 | ], |
| 423 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 424 | ":launcher-src", |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 425 | ":launcher-src_no_quickstep", |
| 426 | ":launcher-build-config", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 427 | ], |
Sunny Goyal | 9d2ece1 | 2024-03-22 13:52:19 -0700 | [diff] [blame] | 428 | |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 429 | optimize: { |
Jordan Silva | 6a8d81a | 2024-07-08 13:29:48 +0000 | [diff] [blame] | 430 | proguard_flags_files: [":launcher-proguard-rules"], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 431 | // Proguard is disable for testing. Derivarive prjects to keep proguard enabled |
| 432 | enabled: false, |
| 433 | }, |
| 434 | |
| 435 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 436 | min_sdk_version: min_launcher3_sdk_version, |
| 437 | target_sdk_version: "current", |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 438 | plugins: ["dagger2-compiler"], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 439 | privileged: true, |
| 440 | system_ext_specific: true, |
| 441 | |
| 442 | overrides: [ |
| 443 | "Home", |
| 444 | "Launcher2", |
| 445 | ], |
| 446 | required: ["privapp_whitelist_com.android.launcher3"], |
| 447 | |
| 448 | jacoco: { |
| 449 | include_filter: ["com.android.launcher3.**"], |
| 450 | }, |
| 451 | additional_manifests: [ |
| 452 | "AndroidManifest-common.xml", |
| 453 | ], |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 454 | lint: { |
Adnan Begovic | a610285 | 2025-01-28 14:51:25 -0800 | [diff] [blame] | 455 | extra_check_modules: ["Launcher3LintChecker"], |
Cole Faust | c778a67 | 2024-01-10 12:30:39 -0800 | [diff] [blame] | 456 | baseline_filename: "lint-baseline.xml", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 457 | }, |
Sunny Goyal | 3fd385c | 2025-02-19 15:45:59 -0800 | [diff] [blame] | 458 | kotlincflags: [ |
| 459 | "-Xjvm-default=all", |
| 460 | ], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 461 | } |
| 462 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 463 | // Library with all the dependencies for building quickstep |
| 464 | android_library { |
| 465 | name: "QuickstepResLib", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 466 | srcs: [], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 467 | resource_dirs: [ |
| 468 | "quickstep/res", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 469 | ], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 470 | libs: [ |
Jihoon Kang | 9f8e4b6 | 2024-08-30 00:29:41 +0000 | [diff] [blame] | 471 | "framework-statsd.stubs.module_lib", |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 472 | ], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 473 | static_libs: [ |
| 474 | "Launcher3ResLib", |
Schneider Victor-tulias | d0865f8 | 2021-11-09 13:19:21 -0800 | [diff] [blame] | 475 | "lottie", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 476 | "SystemUISharedLib", |
Jagrut Desai | fae321c | 2023-10-30 20:30:39 +0000 | [diff] [blame] | 477 | "SettingsLibSettingsTheme", |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 478 | "dagger2", |
Schneider Victor-Tulias | 00b6996 | 2024-09-23 13:34:25 -0400 | [diff] [blame] | 479 | "protolog-group", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 480 | ], |
| 481 | manifest: "quickstep/AndroidManifest.xml", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 482 | min_sdk_version: "current", |
Sam Cackett | 6593622 | 2024-12-10 16:39:36 +0000 | [diff] [blame] | 483 | lint: { |
| 484 | disabled_checks: ["MissingClass"], |
| 485 | }, |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 486 | } |
| 487 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 488 | // Library with all the source code and dependencies for building Launcher Go |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 489 | android_library { |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 490 | name: "Launcher3GoLib", |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 491 | defaults: [ |
| 492 | "launcher_compose_defaults", |
| 493 | "quickstep_compose_defaults", |
| 494 | ], |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 495 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 496 | ":launcher-src", |
| 497 | ":launcher-quickstep-src", |
Anushree Ganjam | 14721d1 | 2024-08-29 10:05:12 -0700 | [diff] [blame] | 498 | ":launcher-quickstep-dagger", |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 499 | "go/quickstep/src/**/*.java", |
| 500 | "go/quickstep/src/**/*.kt", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 501 | ], |
| 502 | resource_dirs: [ |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 503 | "go/quickstep/res", |
| 504 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 505 | // Note the ordering here is important when it comes to resource |
| 506 | // overriding. We want the most specific resource overrides defined |
| 507 | // in QuickstepResLib to take precendece, so it should be the final |
| 508 | // dependency. See b/205278434 for how this can go wrong. |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 509 | static_libs: [ |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 510 | "QuickstepResLib", |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 511 | "androidx.room_room-runtime", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 512 | ], |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 513 | plugins: [ |
| 514 | "androidx.room_room-compiler-plugin", |
| 515 | "dagger2-compiler", |
| 516 | ], |
Arvind Kumar | 384a0ed | 2023-07-07 09:41:29 +0530 | [diff] [blame] | 517 | manifest: "quickstep/AndroidManifest.xml", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 518 | additional_manifests: [ |
| 519 | "go/AndroidManifest.xml", |
| 520 | "AndroidManifest-common.xml", |
| 521 | ], |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 522 | min_sdk_version: "current", |
Colin Cross | f156b6b | 2024-01-11 14:03:12 -0800 | [diff] [blame] | 523 | // TODO(b/319712088): re-enable use_resource_processor |
| 524 | use_resource_processor: false, |
Sunny Goyal | 3fd385c | 2025-02-19 15:45:59 -0800 | [diff] [blame] | 525 | kotlincflags: [ |
| 526 | "-Xjvm-default=all", |
| 527 | ], |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 528 | } |
| 529 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 530 | // Library with all the source code and dependencies for building Quickstep |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 531 | android_library { |
| 532 | name: "Launcher3QuickStepLib", |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 533 | defaults: [ |
| 534 | "launcher_compose_defaults", |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 535 | "quickstep_compose_defaults", |
Jordan Silva | 4afa195 | 2024-08-06 16:54:59 +0100 | [diff] [blame] | 536 | ], |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 537 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 538 | ":launcher-src", |
| 539 | ":launcher-quickstep-src", |
Anushree Ganjam | 14721d1 | 2024-08-29 10:05:12 -0700 | [diff] [blame] | 540 | ":launcher-quickstep-dagger", |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 541 | ":launcher-build-config", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 542 | ], |
Thales Lima | c335ad2 | 2021-11-08 15:31:49 +0000 | [diff] [blame] | 543 | resource_dirs: [], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 544 | libs: [ |
Jihoon Kang | 9f8e4b6 | 2024-08-30 00:29:41 +0000 | [diff] [blame] | 545 | "framework-statsd.stubs.module_lib", |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 546 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 547 | // Note the ordering here is important when it comes to resource |
| 548 | // overriding. We want the most specific resource overrides defined |
| 549 | // in QuickstepResLib to take precendece, so it should be the final |
| 550 | // dependency. See b/208647810 for how this can go wrong. |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 551 | static_libs: [ |
| 552 | "SystemUI-statsd", |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 553 | "QuickstepResLib", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 554 | ], |
| 555 | manifest: "quickstep/AndroidManifest.xml", |
| 556 | platform_apis: true, |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 557 | plugins: ["dagger2-compiler"], |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 558 | min_sdk_version: "current", |
Colin Cross | f156b6b | 2024-01-11 14:03:12 -0800 | [diff] [blame] | 559 | // TODO(b/319712088): re-enable use_resource_processor |
| 560 | use_resource_processor: false, |
Sunny Goyal | 3fd385c | 2025-02-19 15:45:59 -0800 | [diff] [blame] | 561 | kotlincflags: [ |
| 562 | "-Xjvm-default=all", |
| 563 | ], |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 564 | } |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 565 | |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 566 | // Build rule for Quickstep app. |
| 567 | android_app { |
| 568 | name: "Launcher3QuickStep", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 569 | static_libs: ["Launcher3QuickStepLib"], |
| 570 | optimize: { |
Jordan Silva | 6a8d81a | 2024-07-08 13:29:48 +0000 | [diff] [blame] | 571 | proguard_flags_files: [":launcher-proguard-rules"], |
| 572 | enabled: true, |
| 573 | shrink_resources: true, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 574 | }, |
| 575 | |
| 576 | platform_apis: true, |
| 577 | min_sdk_version: "current", |
| 578 | target_sdk_version: "current", |
| 579 | |
| 580 | privileged: true, |
| 581 | system_ext_specific: true, |
| 582 | overrides: [ |
| 583 | "Home", |
| 584 | "Launcher2", |
| 585 | "Launcher3", |
| 586 | ], |
Schneider Victor-Tulias | 00b6996 | 2024-09-23 13:34:25 -0400 | [diff] [blame] | 587 | required: [ |
| 588 | "privapp_whitelist_com.android.launcher3", |
| 589 | "launcher.quickstep.protolog.pb", |
| 590 | ], |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 591 | |
| 592 | resource_dirs: ["quickstep/res"], |
| 593 | |
| 594 | additional_manifests: [ |
| 595 | "quickstep/AndroidManifest-launcher.xml", |
| 596 | "AndroidManifest-common.xml", |
| 597 | ], |
| 598 | |
| 599 | manifest: "quickstep/AndroidManifest.xml", |
| 600 | jacoco: { |
| 601 | include_filter: ["com.android.launcher3.*"], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 602 | }, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 603 | |
| 604 | } |
| 605 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 606 | // Build rule for Launcher3 Go app with quickstep for Android Go devices. |
| 607 | // Note that the following two rules are exactly same, and should |
| 608 | // eventually be merged into a single target |
| 609 | android_app { |
| 610 | name: "Launcher3Go", |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 611 | static_libs: ["Launcher3GoLib"], |
Sunny Goyal | 3b452f5 | 2024-04-12 19:16:19 +0000 | [diff] [blame] | 612 | resource_dirs: [], |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 613 | |
| 614 | platform_apis: true, |
| 615 | min_sdk_version: "current", |
| 616 | target_sdk_version: "current", |
| 617 | |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 618 | optimize: { |
| 619 | proguard_flags_files: ["proguard.flags"], |
| 620 | enabled: true, |
Jordan Silva | 6a8d81a | 2024-07-08 13:29:48 +0000 | [diff] [blame] | 621 | shrink_resources: true, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 622 | }, |
| 623 | |
| 624 | privileged: true, |
| 625 | system_ext_specific: true, |
| 626 | overrides: [ |
| 627 | "Home", |
| 628 | "Launcher2", |
| 629 | "Launcher3", |
| 630 | "Launcher3QuickStep", |
| 631 | ], |
| 632 | required: ["privapp_whitelist_com.android.launcher3"], |
| 633 | |
| 634 | additional_manifests: [ |
| 635 | "go/AndroidManifest.xml", |
| 636 | "go/AndroidManifest-launcher.xml", |
| 637 | "AndroidManifest-common.xml", |
| 638 | ], |
| 639 | |
| 640 | manifest: "quickstep/AndroidManifest.xml", |
| 641 | jacoco: { |
| 642 | include_filter: ["com.android.launcher3.*"], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 643 | }, |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 644 | } |
Anushree Ganjam | bd86331 | 2024-08-23 17:15:30 -0700 | [diff] [blame] | 645 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 646 | android_app { |
| 647 | name: "Launcher3QuickStepGo", |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 648 | static_libs: ["Launcher3GoLib"], |
Sunny Goyal | 3b452f5 | 2024-04-12 19:16:19 +0000 | [diff] [blame] | 649 | resource_dirs: [], |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 650 | |
| 651 | platform_apis: true, |
| 652 | min_sdk_version: "current", |
| 653 | target_sdk_version: "current", |
| 654 | |
| 655 | optimize: { |
| 656 | proguard_flags_files: ["proguard.flags"], |
| 657 | enabled: true, |
Jordan Silva | 6a8d81a | 2024-07-08 13:29:48 +0000 | [diff] [blame] | 658 | shrink_resources: true, |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 659 | }, |
| 660 | |
| 661 | privileged: true, |
| 662 | system_ext_specific: true, |
| 663 | overrides: [ |
| 664 | "Home", |
| 665 | "Launcher2", |
| 666 | "Launcher3", |
| 667 | "Launcher3QuickStep", |
| 668 | ], |
| 669 | required: ["privapp_whitelist_com.android.launcher3"], |
| 670 | |
| 671 | additional_manifests: [ |
| 672 | "go/AndroidManifest.xml", |
| 673 | "go/AndroidManifest-launcher.xml", |
| 674 | "AndroidManifest-common.xml", |
| 675 | ], |
| 676 | |
| 677 | manifest: "quickstep/AndroidManifest.xml", |
| 678 | jacoco: { |
| 679 | include_filter: ["com.android.launcher3.*"], |
| 680 | }, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 681 | } |