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