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 | 9d2ece1 | 2024-03-22 13:52:19 -0700 | [diff] [blame] | 20 | min_launcher3_sdk_version = "30" |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 21 | |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 22 | // Common source files used to build launcher (java and kotlin) |
| 23 | // 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] | 24 | |
| 25 | // Main Launcher source, excluding the build config |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 26 | filegroup { |
| 27 | name: "launcher-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 28 | srcs: [ |
| 29 | "src/**/*.java", |
| 30 | "src/**/*.kt", |
| 31 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 32 | } |
| 33 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 34 | // Source code for quickstep build, on top of launcher-src |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 35 | filegroup { |
| 36 | name: "launcher-quickstep-src", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 37 | srcs: [ |
| 38 | "quickstep/src/**/*.java", |
| 39 | "quickstep/src/**/*.kt", |
| 40 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 41 | } |
| 42 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 43 | // Alternate source when quickstep is not included |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 44 | filegroup { |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 45 | name: "launcher-src_no_quickstep", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 46 | srcs: [ |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 47 | "src_no_quickstep/**/*.java", |
| 48 | "src_no_quickstep/**/*.kt", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 49 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 50 | } |
| 51 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 52 | // Default build config for Launcher3 |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 53 | filegroup { |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 54 | name: "launcher-build-config", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 55 | srcs: [ |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 56 | "src_build_config/**/*.java", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 57 | ], |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 58 | } |
| 59 | |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 60 | // Proguard files for Launcher3 |
| 61 | filegroup { |
| 62 | name: "launcher-proguard-rules", |
| 63 | srcs: ["proguard.flags"], |
| 64 | } |
| 65 | |
vadimt | 09df083 | 2019-03-07 14:59:30 -0800 | [diff] [blame] | 66 | android_library { |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 67 | name: "launcher-aosp-tapl", |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 68 | libs: [ |
| 69 | "framework-statsd", |
| 70 | ], |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 71 | static_libs: [ |
| 72 | "androidx.annotation_annotation", |
Brett Chabot | d7d692c | 2018-10-23 21:17:58 -0700 | [diff] [blame] | 73 | "androidx.test.runner", |
| 74 | "androidx.test.rules", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 75 | "androidx.test.uiautomator_uiautomator", |
Hyunyoung Song | bb71582 | 2020-08-04 10:45:53 -0700 | [diff] [blame] | 76 | "androidx.preference_preference", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 77 | "SystemUISharedLib", |
Peter Kalauskas | 9bdb1da | 2024-04-02 15:38:57 -0700 | [diff] [blame] | 78 | "//frameworks/libs/systemui:animationlib", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 79 | "launcher-testing-shared", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 80 | ], |
| 81 | srcs: [ |
Uwais Ashraf | 9c2f5a4 | 2024-03-04 09:49:39 +0000 | [diff] [blame] | 82 | "tests/tapl/**/*.java", |
| 83 | "tests/tapl/**/*.kt", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 84 | ], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 85 | resource_dirs: [], |
Uwais Ashraf | 9c2f5a4 | 2024-03-04 09:49:39 +0000 | [diff] [blame] | 86 | manifest: "tests/tapl/AndroidManifest.xml", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 87 | platform_apis: true, |
| 88 | } |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 89 | |
| 90 | java_library_static { |
thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 91 | name: "launcher_log_protos_lite", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 92 | srcs: [ |
| 93 | "protos/*.proto", |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 94 | "protos_overrides/*.proto", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 95 | ], |
| 96 | sdk_version: "current", |
| 97 | proto: { |
| 98 | type: "lite", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 99 | local_include_dirs: [ |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 100 | "protos", |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 101 | "protos_overrides", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 102 | ], |
| 103 | }, |
thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 104 | static_libs: ["libprotobuf-java-lite"], |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 105 | } |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 106 | |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 107 | java_library_static { |
| 108 | name: "launcher_quickstep_log_protos_lite", |
| 109 | srcs: [ |
| 110 | "quickstep/protos_overrides/*.proto", |
| 111 | ], |
| 112 | sdk_version: "current", |
| 113 | proto: { |
| 114 | type: "lite", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 115 | local_include_dirs: [ |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 116 | "quickstep/protos_overrides", |
| 117 | ], |
| 118 | }, |
| 119 | static_libs: [ |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 120 | "libprotobuf-java-lite", |
| 121 | "launcher_log_protos_lite", |
| 122 | ], |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 123 | } |
| 124 | |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 125 | java_library { |
| 126 | name: "LauncherPluginLib", |
| 127 | |
| 128 | static_libs: ["PluginCoreLib"], |
| 129 | |
| 130 | srcs: ["src_plugins/**/*.java"], |
| 131 | |
| 132 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 133 | min_sdk_version: min_launcher3_sdk_version, |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 134 | } |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 135 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 136 | // Library with all the dependencies for building Launcher3 |
| 137 | android_library { |
| 138 | name: "Launcher3ResLib", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 139 | srcs: [], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 140 | resource_dirs: ["res"], |
| 141 | static_libs: [ |
| 142 | "LauncherPluginLib", |
| 143 | "launcher_quickstep_log_protos_lite", |
Hyunyoung Song | 5d095ec | 2024-04-15 08:42:29 +0000 | [diff] [blame] | 144 | "android.os.flags-aconfig-java", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 145 | "androidx-constraintlayout_constraintlayout", |
| 146 | "androidx.recyclerview_recyclerview", |
| 147 | "androidx.dynamicanimation_dynamicanimation", |
| 148 | "androidx.fragment_fragment", |
| 149 | "androidx.preference_preference", |
| 150 | "androidx.slice_slice-view", |
| 151 | "androidx.cardview_cardview", |
Sebastian Franco | 9ae4032 | 2023-10-10 10:50:28 -0700 | [diff] [blame] | 152 | "androidx.window_window", |
Brian Isganitis | 93031bc | 2021-06-09 16:34:45 -0400 | [diff] [blame] | 153 | "com.google.android.material_material", |
Peter Kalauskas | 9bdb1da | 2024-04-02 15:38:57 -0700 | [diff] [blame] | 154 | "//frameworks/libs/systemui:iconloader_base", |
| 155 | "//frameworks/libs/systemui:view_capture", |
| 156 | "//frameworks/libs/systemui:animationlib", |
Anna Zhuravleva | 9c20381 | 2023-11-20 18:30:35 +0000 | [diff] [blame] | 157 | "SystemUI-statsd", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 158 | "launcher-testing-shared", |
Uwais Ashraf | 6e9927e | 2024-03-25 10:53:06 +0000 | [diff] [blame] | 159 | "androidx.lifecycle_lifecycle-common-java8", |
| 160 | "androidx.lifecycle_lifecycle-extensions", |
| 161 | "androidx.lifecycle_lifecycle-runtime-ktx", |
| 162 | "kotlinx_coroutines_android", |
| 163 | "kotlinx_coroutines", |
Anushree Ganjam | 2a14b97 | 2023-08-30 13:31:10 -0700 | [diff] [blame] | 164 | "com_android_launcher3_flags_lib", |
Jeremy Sim | 9e44e37 | 2023-10-10 14:54:39 -0700 | [diff] [blame] | 165 | "com_android_wm_shell_flags_lib", |
Willie Koomson | fedc18e | 2023-11-07 22:31:46 +0000 | [diff] [blame] | 166 | "android.appwidget.flags-aconfig-java", |
Eghosa Ewansiha-Vlachavas | 80232ea | 2024-02-20 16:08:45 +0000 | [diff] [blame] | 167 | "com.android.window.flags.window-aconfig-java", |
maxwen | 8fd65a5 | 2022-11-18 16:17:14 +0100 | [diff] [blame] | 168 | "OmniPreferenceTheme", |
Nicolo' Mazzucato | e8ee34a | 2023-01-24 15:41:10 +0000 | [diff] [blame] | 169 | ], |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 170 | manifest: "AndroidManifest-common.xml", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 171 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 172 | min_sdk_version: min_launcher3_sdk_version, |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 173 | lint: { |
Sunny Goyal | 9d2ece1 | 2024-03-22 13:52:19 -0700 | [diff] [blame] | 174 | baseline_filename: "lint-baseline.xml", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 175 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 176 | } |
| 177 | |
| 178 | // |
| 179 | // Build rule for Launcher3 app. |
| 180 | // |
| 181 | android_app { |
| 182 | name: "Launcher3", |
| 183 | |
| 184 | static_libs: [ |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 185 | "Launcher3ResLib", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 186 | ], |
| 187 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 188 | ":launcher-src", |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 189 | ":launcher-src_no_quickstep", |
| 190 | ":launcher-build-config", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 191 | ], |
Sunny Goyal | 9d2ece1 | 2024-03-22 13:52:19 -0700 | [diff] [blame] | 192 | |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 193 | optimize: { |
| 194 | proguard_flags_files: ["proguard.flags"], |
| 195 | // Proguard is disable for testing. Derivarive prjects to keep proguard enabled |
| 196 | enabled: false, |
| 197 | }, |
| 198 | |
| 199 | sdk_version: "current", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 200 | min_sdk_version: min_launcher3_sdk_version, |
| 201 | target_sdk_version: "current", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 202 | privileged: true, |
| 203 | system_ext_specific: true, |
| 204 | |
| 205 | overrides: [ |
| 206 | "Home", |
| 207 | "Launcher2", |
| 208 | ], |
| 209 | required: ["privapp_whitelist_com.android.launcher3"], |
| 210 | |
| 211 | jacoco: { |
| 212 | include_filter: ["com.android.launcher3.**"], |
| 213 | }, |
| 214 | additional_manifests: [ |
| 215 | "AndroidManifest-common.xml", |
| 216 | ], |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 217 | lint: { |
Cole Faust | c778a67 | 2024-01-10 12:30:39 -0800 | [diff] [blame] | 218 | baseline_filename: "lint-baseline.xml", |
Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 219 | }, |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 220 | } |
| 221 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 222 | // Library with all the dependencies for building quickstep |
| 223 | android_library { |
| 224 | name: "QuickstepResLib", |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 225 | srcs: [], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 226 | resource_dirs: [ |
| 227 | "quickstep/res", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 228 | ], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 229 | libs: [ |
| 230 | "framework-statsd", |
| 231 | ], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 232 | static_libs: [ |
| 233 | "Launcher3ResLib", |
Schneider Victor-tulias | d0865f8 | 2021-11-09 13:19:21 -0800 | [diff] [blame] | 234 | "lottie", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 235 | "SystemUISharedLib", |
Jagrut Desai | fae321c | 2023-10-30 20:30:39 +0000 | [diff] [blame] | 236 | "SettingsLibSettingsTheme", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 237 | ], |
| 238 | manifest: "quickstep/AndroidManifest.xml", |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 239 | min_sdk_version: "current", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 240 | } |
| 241 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 242 | // Library with all the source code and dependencies for building Launcher Go |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 243 | android_library { |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 244 | name: "Launcher3GoLib", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 245 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 246 | ":launcher-src", |
| 247 | ":launcher-quickstep-src", |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 248 | "go/quickstep/src/**/*.java", |
| 249 | "go/quickstep/src/**/*.kt", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 250 | ], |
| 251 | resource_dirs: [ |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 252 | "go/quickstep/res", |
| 253 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 254 | // Note the ordering here is important when it comes to resource |
| 255 | // overriding. We want the most specific resource overrides defined |
| 256 | // in QuickstepResLib to take precendece, so it should be the final |
| 257 | // dependency. See b/205278434 for how this can go wrong. |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 258 | static_libs: [ |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 259 | "QuickstepResLib", |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 260 | "androidx.room_room-runtime", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 261 | ], |
Jon Spivack | 89c21c7 | 2021-08-13 13:18:24 -0700 | [diff] [blame] | 262 | plugins: ["androidx.room_room-compiler-plugin"], |
Arvind Kumar | 384a0ed | 2023-07-07 09:41:29 +0530 | [diff] [blame] | 263 | manifest: "quickstep/AndroidManifest.xml", |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 264 | additional_manifests: [ |
| 265 | "go/AndroidManifest.xml", |
| 266 | "AndroidManifest-common.xml", |
| 267 | ], |
Sunny Goyal | 1fb271f | 2021-05-20 10:43:23 -0700 | [diff] [blame] | 268 | min_sdk_version: "current", |
Colin Cross | f156b6b | 2024-01-11 14:03:12 -0800 | [diff] [blame] | 269 | // TODO(b/319712088): re-enable use_resource_processor |
| 270 | use_resource_processor: false, |
Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 271 | } |
| 272 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 273 | // Library with all the source code and dependencies for building Quickstep |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 274 | android_library { |
| 275 | name: "Launcher3QuickStepLib", |
| 276 | srcs: [ |
Thales Lima | 2c54bbf | 2022-07-12 15:45:10 +0000 | [diff] [blame] | 277 | ":launcher-src", |
| 278 | ":launcher-quickstep-src", |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 279 | ":launcher-build-config", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 280 | ], |
Thales Lima | c335ad2 | 2021-11-08 15:31:49 +0000 | [diff] [blame] | 281 | resource_dirs: [], |
Thiru Ramasamy | d495e8c | 2021-08-26 10:37:17 -0700 | [diff] [blame] | 282 | libs: [ |
| 283 | "framework-statsd", |
| 284 | ], |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 285 | // Note the ordering here is important when it comes to resource |
| 286 | // overriding. We want the most specific resource overrides defined |
| 287 | // in QuickstepResLib to take precendece, so it should be the final |
| 288 | // dependency. See b/208647810 for how this can go wrong. |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 289 | static_libs: [ |
| 290 | "SystemUI-statsd", |
Ben Murdoch | fabc873 | 2021-12-02 18:22:17 +0000 | [diff] [blame] | 291 | "QuickstepResLib", |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 292 | ], |
| 293 | manifest: "quickstep/AndroidManifest.xml", |
| 294 | platform_apis: true, |
| 295 | min_sdk_version: "current", |
Colin Cross | f156b6b | 2024-01-11 14:03:12 -0800 | [diff] [blame] | 296 | // TODO(b/319712088): re-enable use_resource_processor |
| 297 | use_resource_processor: false, |
Sunny Goyal | 4af8cf9 | 2021-07-29 15:48:24 -0700 | [diff] [blame] | 298 | } |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 299 | |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 300 | // Build rule for Quickstep app. |
| 301 | android_app { |
| 302 | name: "Launcher3QuickStep", |
| 303 | |
| 304 | static_libs: ["Launcher3QuickStepLib"], |
| 305 | optimize: { |
| 306 | enabled: false, |
| 307 | }, |
| 308 | |
| 309 | platform_apis: true, |
| 310 | min_sdk_version: "current", |
| 311 | target_sdk_version: "current", |
| 312 | |
| 313 | privileged: true, |
| 314 | system_ext_specific: true, |
| 315 | overrides: [ |
| 316 | "Home", |
| 317 | "Launcher2", |
| 318 | "Launcher3", |
| 319 | ], |
| 320 | required: ["privapp_whitelist_com.android.launcher3"], |
| 321 | |
| 322 | resource_dirs: ["quickstep/res"], |
| 323 | |
| 324 | additional_manifests: [ |
| 325 | "quickstep/AndroidManifest-launcher.xml", |
| 326 | "AndroidManifest-common.xml", |
| 327 | ], |
| 328 | |
| 329 | manifest: "quickstep/AndroidManifest.xml", |
| 330 | jacoco: { |
| 331 | include_filter: ["com.android.launcher3.*"], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 332 | }, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 333 | |
| 334 | } |
| 335 | |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 336 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 337 | // Build rule for Launcher3 Go app with quickstep for Android Go devices. |
| 338 | // Note that the following two rules are exactly same, and should |
| 339 | // eventually be merged into a single target |
| 340 | android_app { |
| 341 | name: "Launcher3Go", |
| 342 | |
| 343 | static_libs: ["Launcher3GoLib"], |
Sunny Goyal | 3b452f5 | 2024-04-12 19:16:19 +0000 | [diff] [blame] | 344 | resource_dirs: [], |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 345 | |
| 346 | platform_apis: true, |
| 347 | min_sdk_version: "current", |
| 348 | target_sdk_version: "current", |
| 349 | |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 350 | optimize: { |
| 351 | proguard_flags_files: ["proguard.flags"], |
| 352 | enabled: true, |
| 353 | }, |
| 354 | |
| 355 | privileged: true, |
| 356 | system_ext_specific: true, |
| 357 | overrides: [ |
| 358 | "Home", |
| 359 | "Launcher2", |
| 360 | "Launcher3", |
| 361 | "Launcher3QuickStep", |
| 362 | ], |
| 363 | required: ["privapp_whitelist_com.android.launcher3"], |
| 364 | |
| 365 | additional_manifests: [ |
| 366 | "go/AndroidManifest.xml", |
| 367 | "go/AndroidManifest-launcher.xml", |
| 368 | "AndroidManifest-common.xml", |
| 369 | ], |
| 370 | |
| 371 | manifest: "quickstep/AndroidManifest.xml", |
| 372 | jacoco: { |
| 373 | include_filter: ["com.android.launcher3.*"], |
Cole Faust | bad33e6 | 2023-12-20 11:57:04 -0800 | [diff] [blame] | 374 | }, |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 375 | } |
| 376 | android_app { |
| 377 | name: "Launcher3QuickStepGo", |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 378 | |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 379 | static_libs: ["Launcher3GoLib"], |
Sunny Goyal | 3b452f5 | 2024-04-12 19:16:19 +0000 | [diff] [blame] | 380 | resource_dirs: [], |
Sunny Goyal | 77954ba | 2024-03-25 11:53:17 -0700 | [diff] [blame] | 381 | |
| 382 | platform_apis: true, |
| 383 | min_sdk_version: "current", |
| 384 | target_sdk_version: "current", |
| 385 | |
| 386 | optimize: { |
| 387 | proguard_flags_files: ["proguard.flags"], |
| 388 | enabled: true, |
| 389 | }, |
| 390 | |
| 391 | privileged: true, |
| 392 | system_ext_specific: true, |
| 393 | overrides: [ |
| 394 | "Home", |
| 395 | "Launcher2", |
| 396 | "Launcher3", |
| 397 | "Launcher3QuickStep", |
| 398 | ], |
| 399 | required: ["privapp_whitelist_com.android.launcher3"], |
| 400 | |
| 401 | additional_manifests: [ |
| 402 | "go/AndroidManifest.xml", |
| 403 | "go/AndroidManifest-launcher.xml", |
| 404 | "AndroidManifest-common.xml", |
| 405 | ], |
| 406 | |
| 407 | manifest: "quickstep/AndroidManifest.xml", |
| 408 | jacoco: { |
| 409 | include_filter: ["com.android.launcher3.*"], |
| 410 | }, |
Thales Lima | 813834a | 2022-05-18 15:29:59 +0000 | [diff] [blame] | 411 | } |