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 | ], |
vadimt | 09df083 | 2019-03-07 14:59:30 -0800 | [diff] [blame] | 47 | manifest: "tests/tapl/AndroidManifest.xml", |
Hyunyoung Song | da4fcfe | 2018-09-05 09:57:59 -0700 | [diff] [blame] | 48 | platform_apis: true, |
| 49 | } |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 50 | |
| 51 | java_library_static { |
thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 52 | name: "launcher_log_protos_lite", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 53 | srcs: [ |
| 54 | "protos/*.proto", |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 55 | "protos_overrides/*.proto", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 56 | ], |
| 57 | sdk_version: "current", |
| 58 | proto: { |
| 59 | type: "lite", |
| 60 | local_include_dirs:[ |
| 61 | "protos", |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 62 | "protos_overrides", |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 63 | ], |
| 64 | }, |
thiruram | c1c2bfa | 2020-02-04 18:56:40 -0800 | [diff] [blame] | 65 | static_libs: ["libprotobuf-java-lite"], |
thiruram | 5e1ecf6 | 2019-11-13 17:49:35 -0800 | [diff] [blame] | 66 | } |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 67 | |
thiruram | cbeb13d | 2021-01-27 14:45:58 -0800 | [diff] [blame] | 68 | java_library_static { |
| 69 | name: "launcher_quickstep_log_protos_lite", |
| 70 | srcs: [ |
| 71 | "quickstep/protos_overrides/*.proto", |
| 72 | ], |
| 73 | sdk_version: "current", |
| 74 | proto: { |
| 75 | type: "lite", |
| 76 | local_include_dirs:[ |
| 77 | "quickstep/protos_overrides", |
| 78 | ], |
| 79 | }, |
| 80 | static_libs: [ |
| 81 | "libprotobuf-java-lite", |
| 82 | "launcher_log_protos_lite" |
| 83 | ], |
| 84 | } |
| 85 | |
Hyunyoung Song | 8605be3 | 2020-02-21 14:52:25 -0800 | [diff] [blame] | 86 | java_library { |
| 87 | name: "LauncherPluginLib", |
| 88 | |
| 89 | static_libs: ["PluginCoreLib"], |
| 90 | |
| 91 | srcs: ["src_plugins/**/*.java"], |
| 92 | |
| 93 | sdk_version: "current", |
| 94 | min_sdk_version: "28", |
| 95 | } |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 96 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 97 | // Library with all the dependencies for building Launcher3 |
| 98 | android_library { |
| 99 | name: "Launcher3ResLib", |
| 100 | srcs: [ ], |
| 101 | resource_dirs: ["res"], |
| 102 | static_libs: [ |
| 103 | "LauncherPluginLib", |
| 104 | "launcher_quickstep_log_protos_lite", |
| 105 | "androidx-constraintlayout_constraintlayout", |
| 106 | "androidx.recyclerview_recyclerview", |
| 107 | "androidx.dynamicanimation_dynamicanimation", |
| 108 | "androidx.fragment_fragment", |
| 109 | "androidx.preference_preference", |
| 110 | "androidx.slice_slice-view", |
| 111 | "androidx.cardview_cardview", |
| 112 | "iconloader_base", |
| 113 | ], |
| 114 | manifest: "AndroidManifest-common.xml", |
| 115 | sdk_version: "current", |
| 116 | min_sdk_version: "26", |
| 117 | } |
| 118 | |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 119 | // |
| 120 | // Build rule for Launcher3 dependencies lib. |
| 121 | // |
| 122 | android_library { |
| 123 | name: "Launcher3CommonDepsLib", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 124 | srcs: ["src_build_config/**/*.java"], |
| 125 | static_libs: ["Launcher3ResLib"], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 126 | sdk_version: "current", |
| 127 | min_sdk_version: "26", |
| 128 | manifest: "AndroidManifest-common.xml", |
| 129 | } |
| 130 | |
| 131 | // |
| 132 | // Build rule for Launcher3 app. |
| 133 | // |
| 134 | android_app { |
| 135 | name: "Launcher3", |
| 136 | |
| 137 | static_libs: [ |
| 138 | "Launcher3CommonDepsLib", |
| 139 | ], |
| 140 | srcs: [ |
| 141 | "src/**/*.java", |
| 142 | "src_shortcuts_overrides/**/*.java", |
| 143 | "src_ui_overrides/**/*.java", |
| 144 | "ext_tests/src/**/*.java", |
| 145 | ], |
| 146 | resource_dirs: [ |
| 147 | "ext_tests/res", |
| 148 | ], |
| 149 | optimize: { |
| 150 | proguard_flags_files: ["proguard.flags"], |
| 151 | // Proguard is disable for testing. Derivarive prjects to keep proguard enabled |
| 152 | enabled: false, |
| 153 | }, |
| 154 | |
| 155 | sdk_version: "current", |
| 156 | min_sdk_version: "26", |
| 157 | target_sdk_version: "29", |
| 158 | privileged: true, |
| 159 | system_ext_specific: true, |
| 160 | |
| 161 | overrides: [ |
| 162 | "Home", |
| 163 | "Launcher2", |
| 164 | ], |
| 165 | required: ["privapp_whitelist_com.android.launcher3"], |
| 166 | |
| 167 | jacoco: { |
| 168 | include_filter: ["com.android.launcher3.**"], |
| 169 | }, |
| 170 | additional_manifests: [ |
| 171 | "AndroidManifest-common.xml", |
| 172 | ], |
| 173 | } |
| 174 | |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 175 | // Library with all the dependencies for building quickstep |
| 176 | android_library { |
| 177 | name: "QuickstepResLib", |
| 178 | srcs: [ ], |
| 179 | resource_dirs: [ |
| 180 | "quickstep/res", |
| 181 | "quickstep/overview_ui_overrides/res", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 182 | ], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 183 | static_libs: [ |
| 184 | "Launcher3ResLib", |
| 185 | "SystemUISharedLib", |
| 186 | "SystemUI-statsd", |
| 187 | ], |
| 188 | manifest: "quickstep/AndroidManifest.xml", |
| 189 | min_sdk_version: "28", |
| 190 | } |
| 191 | |
| 192 | |
| 193 | // Source code used for test helpers |
| 194 | filegroup { |
| 195 | name: "launcher-src-ext-tests", |
| 196 | srcs: ["ext_tests/src/**/*.java"], |
| 197 | } |
| 198 | |
| 199 | // Common source files used to build launcher |
| 200 | filegroup { |
| 201 | name: "launcher-src-no-build-config", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 202 | srcs: [ |
| 203 | "src/**/*.java", |
| 204 | "src_shortcuts_overrides/**/*.java", |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 205 | "quickstep/src/**/*.java", |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 206 | ], |
Sunny Goyal | f5c42ea | 2021-03-12 16:00:40 -0800 | [diff] [blame] | 207 | } |
| 208 | |
| 209 | // Proguard files for Launcher3 |
| 210 | filegroup { |
| 211 | name: "launcher-proguard-rules", |
| 212 | srcs: ["proguard.flags"], |
Hyunyoung Song | 5a007fe | 2021-02-25 00:58:05 -0800 | [diff] [blame] | 213 | } |