blob: df0a96fe4e8eb36a078cb99fb698ad8e4ce3b23d [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",
118}
119
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800120//
121// Build rule for Launcher3 dependencies lib.
122//
123android_library {
124 name: "Launcher3CommonDepsLib",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800125 srcs: ["src_build_config/**/*.java"],
126 static_libs: ["Launcher3ResLib"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800127 sdk_version: "current",
128 min_sdk_version: "26",
129 manifest: "AndroidManifest-common.xml",
130}
131
132//
133// Build rule for Launcher3 app.
134//
135android_app {
136 name: "Launcher3",
137
138 static_libs: [
139 "Launcher3CommonDepsLib",
140 ],
141 srcs: [
142 "src/**/*.java",
143 "src_shortcuts_overrides/**/*.java",
144 "src_ui_overrides/**/*.java",
145 "ext_tests/src/**/*.java",
146 ],
147 resource_dirs: [
148 "ext_tests/res",
149 ],
150 optimize: {
151 proguard_flags_files: ["proguard.flags"],
152 // Proguard is disable for testing. Derivarive prjects to keep proguard enabled
153 enabled: false,
154 },
155
156 sdk_version: "current",
157 min_sdk_version: "26",
158 target_sdk_version: "29",
159 privileged: true,
160 system_ext_specific: true,
161
162 overrides: [
163 "Home",
164 "Launcher2",
165 ],
166 required: ["privapp_whitelist_com.android.launcher3"],
167
168 jacoco: {
169 include_filter: ["com.android.launcher3.**"],
170 },
171 additional_manifests: [
172 "AndroidManifest-common.xml",
173 ],
174}
175
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800176// Library with all the dependencies for building quickstep
177android_library {
178 name: "QuickstepResLib",
179 srcs: [ ],
180 resource_dirs: [
181 "quickstep/res",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800182 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800183 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
194filegroup {
195 name: "launcher-src-ext-tests",
196 srcs: ["ext_tests/src/**/*.java"],
197}
198
199// Common source files used to build launcher
200filegroup {
201 name: "launcher-src-no-build-config",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800202 srcs: [
203 "src/**/*.java",
204 "src_shortcuts_overrides/**/*.java",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800205 "quickstep/src/**/*.java",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800206 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800207}
208
209// Proguard files for Launcher3
210filegroup {
211 name: "launcher-proguard-rules",
212 srcs: ["proguard.flags"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800213}
Jon Spivacka65d68b2021-04-07 10:22:25 -0700214
215
216// Library with all the dependencies for building Launcher Go
217android_library {
218 name: "LauncherGoResLib",
219 srcs: [
220 "src/**/*.java",
221 "quickstep/src/**/*.java",
222 "go/src/**/*.java",
223 "go/quickstep/src/**/*.java",
224 ],
225 resource_dirs: [
226 "go/res",
227 "go/quickstep/res",
228 ],
229 static_libs: [
230 "Launcher3CommonDepsLib",
231 "QuickstepResLib",
232 ],
233 manifest: "quickstep/AndroidManifest-launcher.xml",
234 additional_manifests: [
235 "go/AndroidManifest.xml",
236 "AndroidManifest-common.xml",
237 ],
238 min_sdk_version: "29",
239}
240