| 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 { | 
 | 16 |     default_applicable_licenses: ["packages_apps_Launcher3_license"], | 
 | 17 | } | 
 | 18 |  | 
 | 19 | // Added automatically by a large-scale-change | 
 | 20 | // See: http://go/android-license-faq | 
 | 21 | license { | 
 | 22 |     name: "packages_apps_Launcher3_license", | 
 | 23 |     visibility: [":__subpackages__"], | 
 | 24 |     license_kinds: [ | 
 | 25 |         "SPDX-license-identifier-Apache-2.0", | 
 | 26 |     ], | 
 | 27 |     license_text: [ | 
 | 28 |         "NOTICE", | 
 | 29 |     ], | 
 | 30 | } | 
 | 31 |  | 
| vadimt | 09df083 | 2019-03-07 14:59:30 -0800 | [diff] [blame] | 32 | android_library { | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 33 |     name: "launcher-aosp-tapl", | 
 | 34 |     static_libs: [ | 
 | 35 |         "androidx.annotation_annotation", | 
| Brett Chabot | d7d692c | 2018-10-23 21:17:58 -0700 | [diff] [blame] | 36 |         "androidx.test.runner", | 
 | 37 |         "androidx.test.rules", | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 38 |         "androidx.test.uiautomator_uiautomator", | 
| Hyunyoung Song | bb71582 | 2020-08-04 10:45:53 -0700 | [diff] [blame] | 39 |         "androidx.preference_preference", | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 40 |         "SystemUISharedLib", | 
 | 41 |     ], | 
 | 42 |     srcs: [ | 
 | 43 |         "tests/tapl/**/*.java", | 
| vadimt | 1b383af | 2019-05-08 15:29:37 -0700 | [diff] [blame] | 44 |         "src/com/android/launcher3/ResourceUtils.java", | 
| Sunny Goyal | ab3963d | 2019-05-23 00:50:08 -0700 | [diff] [blame] | 45 |         "src/com/android/launcher3/testing/TestProtocol.java", | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 46 |     ], | 
| Sunny Goyal | 572aca4 | 2021-03-24 15:21:39 -0700 | [diff] [blame] | 47 |     resource_dirs: [ ], | 
| vadimt | 09df083 | 2019-03-07 14:59:30 -0800 | [diff] [blame] | 48 |     manifest: "tests/tapl/AndroidManifest.xml", | 
| Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 49 |     platform_apis: true, | 
 | 50 | } | 
| thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 51 |  | 
 | 52 | java_library_static { | 
| thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 53 |     name: "launcher_log_protos_lite", | 
| thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 54 |     srcs: [ | 
 | 55 |         "protos/*.proto", | 
| thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 56 |         "protos_overrides/*.proto", | 
| thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 57 |     ], | 
 | 58 |     sdk_version: "current", | 
 | 59 |     proto: { | 
 | 60 |         type: "lite", | 
 | 61 |         local_include_dirs:[ | 
 | 62 |             "protos", | 
| thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 63 |             "protos_overrides", | 
| thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 64 |         ], | 
 | 65 |     }, | 
| thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 66 |     static_libs: ["libprotobuf-java-lite"], | 
| thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 67 | } | 
| Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 68 |  | 
| thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 69 | java_library_static { | 
 | 70 |     name: "launcher_quickstep_log_protos_lite", | 
 | 71 |     srcs: [ | 
 | 72 |         "quickstep/protos_overrides/*.proto", | 
 | 73 |     ], | 
 | 74 |     sdk_version: "current", | 
 | 75 |     proto: { | 
 | 76 |         type: "lite", | 
 | 77 |         local_include_dirs:[ | 
 | 78 |             "quickstep/protos_overrides", | 
 | 79 |         ], | 
 | 80 |     }, | 
 | 81 |     static_libs: [ | 
 | 82 |       "libprotobuf-java-lite", | 
 | 83 |       "launcher_log_protos_lite" | 
 | 84 |       ], | 
 | 85 | } | 
 | 86 |  | 
| Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 87 | java_library { | 
 | 88 |     name: "LauncherPluginLib", | 
 | 89 |  | 
 | 90 |     static_libs: ["PluginCoreLib"], | 
 | 91 |  | 
 | 92 |     srcs: ["src_plugins/**/*.java"], | 
 | 93 |  | 
 | 94 |     sdk_version: "current", | 
 | 95 |     min_sdk_version: "28", | 
 | 96 | } | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 97 |  | 
| Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 98 | // Library with all the dependencies for building Launcher3 | 
 | 99 | android_library { | 
 | 100 |     name: "Launcher3ResLib", | 
 | 101 |     srcs: [ ], | 
 | 102 |     resource_dirs: ["res"], | 
 | 103 |     static_libs: [ | 
 | 104 |         "LauncherPluginLib", | 
 | 105 |         "launcher_quickstep_log_protos_lite", | 
 | 106 |         "androidx-constraintlayout_constraintlayout", | 
 | 107 |         "androidx.recyclerview_recyclerview", | 
 | 108 |         "androidx.dynamicanimation_dynamicanimation", | 
 | 109 |         "androidx.fragment_fragment", | 
 | 110 |         "androidx.preference_preference", | 
 | 111 |         "androidx.slice_slice-view", | 
 | 112 |         "androidx.cardview_cardview", | 
 | 113 |         "iconloader_base", | 
 | 114 |     ], | 
 | 115 |     manifest: "AndroidManifest-common.xml", | 
 | 116 |     sdk_version: "current", | 
 | 117 |     min_sdk_version: "26", | 
| Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 118 |     lint: { | 
 | 119 |         baseline_filename: "lint-baseline-res-lib.xml", | 
 | 120 |     }, | 
| Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 121 | } | 
 | 122 |  | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 123 | // | 
 | 124 | // Build rule for Launcher3 dependencies lib. | 
 | 125 | // | 
 | 126 | android_library { | 
 | 127 |     name: "Launcher3CommonDepsLib", | 
| Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 128 |     srcs: ["src_build_config/**/*.java"], | 
 | 129 |     static_libs: ["Launcher3ResLib"], | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 130 |     sdk_version: "current", | 
 | 131 |     min_sdk_version: "26", | 
 | 132 |     manifest: "AndroidManifest-common.xml", | 
| Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 133 |     lint: { | 
 | 134 |         baseline_filename: "lint-baseline-common-deps-lib.xml", | 
 | 135 |     }, | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 136 | } | 
 | 137 |  | 
 | 138 | // | 
 | 139 | // Build rule for Launcher3 app. | 
 | 140 | // | 
 | 141 | android_app { | 
 | 142 |     name: "Launcher3", | 
 | 143 |  | 
 | 144 |     static_libs: [ | 
 | 145 |         "Launcher3CommonDepsLib", | 
 | 146 |     ], | 
 | 147 |     srcs: [ | 
 | 148 |         "src/**/*.java", | 
 | 149 |         "src_shortcuts_overrides/**/*.java", | 
 | 150 |         "src_ui_overrides/**/*.java", | 
 | 151 |         "ext_tests/src/**/*.java", | 
 | 152 |     ], | 
 | 153 |     resource_dirs: [ | 
 | 154 |         "ext_tests/res", | 
 | 155 |     ], | 
 | 156 |     optimize: { | 
 | 157 |         proguard_flags_files: ["proguard.flags"], | 
 | 158 |         // Proguard is disable for testing. Derivarive prjects to keep proguard enabled | 
 | 159 |         enabled: false, | 
 | 160 |     }, | 
 | 161 |  | 
 | 162 |     sdk_version: "current", | 
 | 163 |     min_sdk_version: "26", | 
 | 164 |     target_sdk_version: "29", | 
 | 165 |     privileged: true, | 
 | 166 |     system_ext_specific: true, | 
 | 167 |  | 
 | 168 |     overrides: [ | 
 | 169 |         "Home", | 
 | 170 |         "Launcher2", | 
 | 171 |     ], | 
 | 172 |     required: ["privapp_whitelist_com.android.launcher3"], | 
 | 173 |  | 
 | 174 |     jacoco: { | 
 | 175 |         include_filter: ["com.android.launcher3.**"], | 
 | 176 |     }, | 
 | 177 |     additional_manifests: [ | 
 | 178 |         "AndroidManifest-common.xml", | 
 | 179 |     ], | 
| Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 180 |     lint: { | 
 | 181 |         baseline_filename: "lint-baseline-launcher3.xml", | 
 | 182 |     }, | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 183 | } | 
 | 184 |  | 
| Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 185 | // Library with all the dependencies for building quickstep | 
 | 186 | android_library { | 
 | 187 |     name: "QuickstepResLib", | 
 | 188 |     srcs: [ ], | 
 | 189 |     resource_dirs: [ | 
 | 190 |         "quickstep/res", | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 191 |     ], | 
| Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 192 |     static_libs: [ | 
 | 193 |         "Launcher3ResLib", | 
 | 194 |         "SystemUISharedLib", | 
 | 195 |         "SystemUI-statsd", | 
 | 196 |     ], | 
 | 197 |     manifest: "quickstep/AndroidManifest.xml", | 
 | 198 |     min_sdk_version: "28", | 
 | 199 | } | 
 | 200 |  | 
 | 201 |  | 
 | 202 | // Source code used for test helpers | 
 | 203 | filegroup { | 
 | 204 |     name: "launcher-src-ext-tests", | 
 | 205 |     srcs: ["ext_tests/src/**/*.java"], | 
 | 206 | } | 
 | 207 |  | 
 | 208 | // Common source files used to build launcher | 
 | 209 | filegroup { | 
 | 210 |     name: "launcher-src-no-build-config", | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 211 |     srcs: [ | 
 | 212 |         "src/**/*.java", | 
 | 213 |         "src_shortcuts_overrides/**/*.java", | 
| Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 214 |         "quickstep/src/**/*.java", | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 215 |     ], | 
| Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 216 | } | 
 | 217 |  | 
 | 218 | // Proguard files for Launcher3 | 
 | 219 | filegroup { | 
 | 220 |     name: "launcher-proguard-rules", | 
 | 221 |     srcs: ["proguard.flags"], | 
| Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 222 | } | 
| Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 223 |  | 
 | 224 |  | 
 | 225 | // Library with all the dependencies for building Launcher Go | 
 | 226 | android_library { | 
 | 227 |     name: "LauncherGoResLib", | 
 | 228 |     srcs: [ | 
 | 229 |         "src/**/*.java", | 
 | 230 |         "quickstep/src/**/*.java", | 
 | 231 |         "go/src/**/*.java", | 
 | 232 |         "go/quickstep/src/**/*.java", | 
 | 233 |     ], | 
 | 234 |     resource_dirs: [ | 
 | 235 |         "go/res", | 
 | 236 |         "go/quickstep/res", | 
 | 237 |     ], | 
 | 238 |     static_libs: [ | 
 | 239 |         "Launcher3CommonDepsLib", | 
 | 240 |         "QuickstepResLib", | 
 | 241 |     ], | 
 | 242 |     manifest: "quickstep/AndroidManifest-launcher.xml", | 
 | 243 |     additional_manifests: [ | 
 | 244 |         "go/AndroidManifest.xml", | 
 | 245 |         "AndroidManifest-common.xml", | 
 | 246 |     ], | 
 | 247 |     min_sdk_version: "29", | 
| Pedro Loureiro | 1e296c1 | 2021-03-09 18:35:52 +0000 | [diff] [blame] | 248 |     lint: { | 
 | 249 |         baseline_filename: "lint-baseline-go-res-lib.xml", | 
 | 250 |     }, | 
| Jon Spivack | a65d68b | 2021-04-07 10:22:25 -0700 | [diff] [blame] | 251 | } | 
 | 252 |  |