blob: 7e6a565f468ae2f5898779c1c07ab653d377011d [file] [log] [blame]
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -07001// 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 Badour4bdf3802021-02-12 17:08:17 -080015package {
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
21license {
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
vadimt09df0832019-03-07 14:59:30 -080032android_library {
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070033 name: "launcher-aosp-tapl",
34 static_libs: [
35 "androidx.annotation_annotation",
Brett Chabotd7d692c2018-10-23 21:17:58 -070036 "androidx.test.runner",
37 "androidx.test.rules",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070038 "androidx.test.uiautomator_uiautomator",
Hyunyoung Songbb715822020-08-04 10:45:53 -070039 "androidx.preference_preference",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070040 "SystemUISharedLib",
41 ],
42 srcs: [
43 "tests/tapl/**/*.java",
vadimt1b383af2019-05-08 15:29:37 -070044 "src/com/android/launcher3/ResourceUtils.java",
Sunny Goyalab3963d2019-05-23 00:50:08 -070045 "src/com/android/launcher3/testing/TestProtocol.java",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070046 ],
Sunny Goyal572aca42021-03-24 15:21:39 -070047 resource_dirs: [ ],
vadimt09df0832019-03-07 14:59:30 -080048 manifest: "tests/tapl/AndroidManifest.xml",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070049 platform_apis: true,
50}
thiruram5e1ecf62019-11-13 17:49:35 -080051
52java_library_static {
thiruramc1c2bfa2020-02-04 18:56:40 -080053 name: "launcher_log_protos_lite",
thiruram5e1ecf62019-11-13 17:49:35 -080054 srcs: [
55 "protos/*.proto",
thiruramcbeb13d2021-01-27 14:45:58 -080056 "protos_overrides/*.proto",
thiruram5e1ecf62019-11-13 17:49:35 -080057 ],
58 sdk_version: "current",
59 proto: {
60 type: "lite",
61 local_include_dirs:[
62 "protos",
thiruramcbeb13d2021-01-27 14:45:58 -080063 "protos_overrides",
thiruram5e1ecf62019-11-13 17:49:35 -080064 ],
65 },
thiruramc1c2bfa2020-02-04 18:56:40 -080066 static_libs: ["libprotobuf-java-lite"],
thiruram5e1ecf62019-11-13 17:49:35 -080067}
Hyunyoung Song8605be32020-02-21 14:52:25 -080068
thiruramcbeb13d2021-01-27 14:45:58 -080069java_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 Song8605be32020-02-21 14:52:25 -080087java_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 Song5a007fe2021-02-25 00:58:05 -080097
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080098// Library with all the dependencies for building Launcher3
99android_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 Loureiro1e296c12021-03-09 18:35:52 +0000118 lint: {
119 baseline_filename: "lint-baseline-res-lib.xml",
120 },
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800121}
122
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800123//
124// Build rule for Launcher3 dependencies lib.
125//
126android_library {
127 name: "Launcher3CommonDepsLib",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800128 srcs: ["src_build_config/**/*.java"],
129 static_libs: ["Launcher3ResLib"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800130 sdk_version: "current",
131 min_sdk_version: "26",
132 manifest: "AndroidManifest-common.xml",
Pedro Loureiro1e296c12021-03-09 18:35:52 +0000133 lint: {
134 baseline_filename: "lint-baseline-common-deps-lib.xml",
135 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800136}
137
138//
139// Build rule for Launcher3 app.
140//
141android_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 Loureiro1e296c12021-03-09 18:35:52 +0000180 lint: {
181 baseline_filename: "lint-baseline-launcher3.xml",
182 },
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800183}
184
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800185// Library with all the dependencies for building quickstep
186android_library {
187 name: "QuickstepResLib",
188 srcs: [ ],
189 resource_dirs: [
190 "quickstep/res",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800191 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800192 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
203filegroup {
204 name: "launcher-src-ext-tests",
205 srcs: ["ext_tests/src/**/*.java"],
206}
207
208// Common source files used to build launcher
209filegroup {
210 name: "launcher-src-no-build-config",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800211 srcs: [
212 "src/**/*.java",
213 "src_shortcuts_overrides/**/*.java",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800214 "quickstep/src/**/*.java",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800215 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800216}
217
218// Proguard files for Launcher3
219filegroup {
220 name: "launcher-proguard-rules",
221 srcs: ["proguard.flags"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800222}
Jon Spivacka65d68b2021-04-07 10:22:25 -0700223
224
225// Library with all the dependencies for building Launcher Go
226android_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 Loureiro1e296c12021-03-09 18:35:52 +0000248 lint: {
249 baseline_filename: "lint-baseline-go-res-lib.xml",
250 },
Jon Spivacka65d68b2021-04-07 10:22:25 -0700251}
252