blob: 2c9d664ac6fcc06147521775b3da7c67a24ac76c [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",
182 "quickstep/overview_ui_overrides/res",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800183 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800184 static_libs: [
185 "Launcher3ResLib",
186 "SystemUISharedLib",
187 "SystemUI-statsd",
188 ],
189 manifest: "quickstep/AndroidManifest.xml",
190 min_sdk_version: "28",
191}
192
193
194// Source code used for test helpers
195filegroup {
196 name: "launcher-src-ext-tests",
197 srcs: ["ext_tests/src/**/*.java"],
198}
199
200// Common source files used to build launcher
201filegroup {
202 name: "launcher-src-no-build-config",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800203 srcs: [
204 "src/**/*.java",
205 "src_shortcuts_overrides/**/*.java",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800206 "quickstep/src/**/*.java",
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800207 ],
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800208}
209
210// Proguard files for Launcher3
211filegroup {
212 name: "launcher-proguard-rules",
213 srcs: ["proguard.flags"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800214}