blob: 002f6fe6026e6ccff6ec2456032c3458d722f078 [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
97//
98// Build rule for Launcher3 dependencies lib.
99//
100android_library {
101 name: "Launcher3CommonDepsLib",
102 static_libs: [
103 "androidx.recyclerview_recyclerview",
104 "androidx.dynamicanimation_dynamicanimation",
105 "androidx.preference_preference",
106 "androidx.slice_slice-view",
107 "iconloader_base",
108 "LauncherPluginLib",
109 "launcher_quickstep_log_protos_lite"
110 ],
111 srcs: [
112 "src_build_config/**/*.java",
113 ],
114 resource_dirs: ["res"],
115 optimize: {
116 enabled: false,
117 },
118 sdk_version: "current",
119 min_sdk_version: "26",
120 manifest: "AndroidManifest-common.xml",
121}
122
123//
124// Build rule for Launcher3 app.
125//
126android_app {
127 name: "Launcher3",
128
129 static_libs: [
130 "Launcher3CommonDepsLib",
131 ],
132 srcs: [
133 "src/**/*.java",
134 "src_shortcuts_overrides/**/*.java",
135 "src_ui_overrides/**/*.java",
136 "ext_tests/src/**/*.java",
137 ],
138 resource_dirs: [
139 "ext_tests/res",
140 ],
141 optimize: {
142 proguard_flags_files: ["proguard.flags"],
143 // Proguard is disable for testing. Derivarive prjects to keep proguard enabled
144 enabled: false,
145 },
146
147 sdk_version: "current",
148 min_sdk_version: "26",
149 target_sdk_version: "29",
150 privileged: true,
151 system_ext_specific: true,
152
153 overrides: [
154 "Home",
155 "Launcher2",
156 ],
157 required: ["privapp_whitelist_com.android.launcher3"],
158
159 jacoco: {
160 include_filter: ["com.android.launcher3.**"],
161 },
162 additional_manifests: [
163 "AndroidManifest-common.xml",
164 ],
165}
166
167//
168// Launcher Robolectric test target.
169//
170java_library {
171 name: "Launcher3TestCommon",
172 libs: [
173 "Launcher3CommonDepsLib",
174 ],
175 srcs: [
176 "src/**/*.java",
177 "src_shortcuts_overrides/**/*.java",
178 "src_ui_overrides/**/*.java",
179 "ext_tests/src/**/*.java",
180 "tests/src_common/**/*.java",
181 ],
182 target_sdk_version: "29",
183 sdk_version: "current",
184 min_sdk_version: "26",
185}