blob: 92cc36b5e3f9d55fbe4a9120eeead5c62f7dfd01 [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 ],
vadimt09df0832019-03-07 14:59:30 -080047 manifest: "tests/tapl/AndroidManifest.xml",
Hyunyoung Songda4fcfe2018-09-05 09:57:59 -070048 platform_apis: true,
49}
thiruram5e1ecf62019-11-13 17:49:35 -080050
51java_library_static {
thiruramc1c2bfa2020-02-04 18:56:40 -080052 name: "launcher_log_protos_lite",
thiruram5e1ecf62019-11-13 17:49:35 -080053 srcs: [
54 "protos/*.proto",
thiruramcbeb13d2021-01-27 14:45:58 -080055 "protos_overrides/*.proto",
thiruram5e1ecf62019-11-13 17:49:35 -080056 ],
57 sdk_version: "current",
58 proto: {
59 type: "lite",
60 local_include_dirs:[
61 "protos",
thiruramcbeb13d2021-01-27 14:45:58 -080062 "protos_overrides",
thiruram5e1ecf62019-11-13 17:49:35 -080063 ],
64 },
thiruramc1c2bfa2020-02-04 18:56:40 -080065 static_libs: ["libprotobuf-java-lite"],
thiruram5e1ecf62019-11-13 17:49:35 -080066}
Hyunyoung Song8605be32020-02-21 14:52:25 -080067
thiruramcbeb13d2021-01-27 14:45:58 -080068java_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 Song8605be32020-02-21 14:52:25 -080086java_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 Song5a007fe2021-02-25 00:58:05 -080096
Sunny Goyalf5c42ea2021-03-12 16:00:40 -080097// Library with all the dependencies for building Launcher3
98android_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 Song5a007fe2021-02-25 00:58:05 -0800119//
120// Build rule for Launcher3 dependencies lib.
121//
122android_library {
123 name: "Launcher3CommonDepsLib",
Sunny Goyalf5c42ea2021-03-12 16:00:40 -0800124 srcs: ["src_build_config/**/*.java"],
125 static_libs: ["Launcher3ResLib"],
Hyunyoung Song5a007fe2021-02-25 00:58:05 -0800126 sdk_version: "current",
127 min_sdk_version: "26",
128 manifest: "AndroidManifest-common.xml",
129}
130
131//
132// Build rule for Launcher3 app.
133//
134android_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 Goyalf5c42ea2021-03-12 16:00:40 -0800175// Library with all the dependencies for building quickstep
176android_library {
177 name: "QuickstepResLib",
178 srcs: [ ],
179 resource_dirs: [
180 "quickstep/res",
181 "quickstep/overview_ui_overrides/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}