blob: de00c81594667308f75bd7f587430f80fa7fdb87 [file] [log] [blame]
Bob Badoura3aa3db2021-02-26 02:54:21 -08001// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
2// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3// DEPENDING ON IT IN YOUR PROJECT. ***
4package {
5 // See: http://go/android-license-faq
6 // A large-scale-change added 'default_applicable_licenses' to import
7 // all of the 'license_kinds' from "prebuilts_sdk_license"
8 // to get the below license kinds:
9 // SPDX-license-identifier-Apache-2.0
10 // SPDX-license-identifier-BSD
11 // SPDX-license-identifier-CC0-1.0
12 // SPDX-license-identifier-OFL (by exception only)
13 // SPDX-license-identifier-Unicode-DFS
14 // legacy_unencumbered
15 default_applicable_licenses: ["prebuilts_sdk_license"],
16}
17
Colin Cross08934012019-04-17 11:12:50 -070018java_sdk_library_import {
19 name: "android.test.base",
Paul Duffin5df59442020-01-31 18:20:23 +000020 public: {
21 jars: ["public/android.test.base.jar"],
22 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +000023 current_api: "placeholder-api.txt",
24 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000025 },
26 system: {
27 jars: ["system/android.test.base.jar"],
28 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +000029 current_api: "placeholder-api.txt",
30 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000031 },
32 test: {
33 jars: ["test/android.test.base.jar"],
34 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +000035 current_api: "placeholder-api.txt",
36 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000037 },
Colin Cross85c65462019-04-16 13:22:19 -070038}
39
Colin Cross08934012019-04-17 11:12:50 -070040java_sdk_library_import {
41 name: "android.test.runner",
Paul Duffin5df59442020-01-31 18:20:23 +000042 public: {
43 jars: ["public/android.test.runner.jar"],
44 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +000045 current_api: "placeholder-api.txt",
46 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000047 },
48 system: {
49 jars: ["system/android.test.runner.jar"],
50 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +000051 current_api: "placeholder-api.txt",
52 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000053 },
54 test: {
55 jars: ["test/android.test.runner.jar"],
56 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +000057 current_api: "placeholder-api.txt",
58 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000059 },
Paul Duffin0ce9f442020-01-21 18:34:50 +000060 libs: [
61 "android.test.base",
62 "android.test.mock",
63 ],
Colin Cross85c65462019-04-16 13:22:19 -070064}
65
Colin Cross08934012019-04-17 11:12:50 -070066java_sdk_library_import {
67 name: "android.test.mock",
Paul Duffin5df59442020-01-31 18:20:23 +000068 public: {
69 jars: ["public/android.test.mock.jar"],
70 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +000071 current_api: "placeholder-api.txt",
72 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000073 },
74 system: {
75 jars: ["system/android.test.mock.jar"],
76 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +000077 current_api: "placeholder-api.txt",
78 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000079 },
80 test: {
81 jars: ["test/android.test.mock.jar"],
82 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +000083 current_api: "placeholder-api.txt",
84 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +000085 },
Colin Cross85c65462019-04-16 13:22:19 -070086}
87
Colin Cross08934012019-04-17 11:12:50 -070088java_sdk_library_import {
Paul Duffinfe63c722020-02-05 10:36:20 +000089 name: "com.android.future.usb.accessory",
90 public: {
91 jars: ["public/com.android.future.usb.accessory.jar"],
92 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +000093 current_api: "placeholder-api.txt",
94 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +000095 },
96 system: {
97 jars: ["system/com.android.future.usb.accessory.jar"],
98 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +000099 current_api: "placeholder-api.txt",
100 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000101 },
102 test: {
103 jars: ["test/com.android.future.usb.accessory.jar"],
104 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000105 current_api: "placeholder-api.txt",
106 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000107 },
108}
109
110java_sdk_library_import {
111 name: "com.android.location.provider",
112 public: {
113 jars: ["public/com.android.location.provider.jar"],
114 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +0000115 current_api: "placeholder-api.txt",
116 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000117 },
118 system: {
119 jars: ["system/com.android.location.provider.jar"],
120 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000121 current_api: "placeholder-api.txt",
122 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000123 },
124 test: {
125 jars: ["test/com.android.location.provider.jar"],
126 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000127 current_api: "placeholder-api.txt",
128 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000129 },
130}
131
132java_sdk_library_import {
133 name: "com.android.mediadrm.signer",
134 public: {
135 jars: ["public/com.android.mediadrm.signer.jar"],
136 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +0000137 current_api: "placeholder-api.txt",
138 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000139 },
140 system: {
141 jars: ["system/com.android.mediadrm.signer.jar"],
142 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000143 current_api: "placeholder-api.txt",
144 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000145 },
146 test: {
147 jars: ["test/com.android.mediadrm.signer.jar"],
148 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000149 current_api: "placeholder-api.txt",
150 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000151 },
152}
153
154java_sdk_library_import {
155 name: "com.android.media.remotedisplay",
156 public: {
157 jars: ["public/com.android.media.remotedisplay.jar"],
158 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +0000159 current_api: "placeholder-api.txt",
160 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000161 },
162 system: {
163 jars: ["system/com.android.media.remotedisplay.jar"],
164 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000165 current_api: "placeholder-api.txt",
166 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000167 },
168 test: {
169 jars: ["test/com.android.media.remotedisplay.jar"],
170 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000171 current_api: "placeholder-api.txt",
172 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000173 },
174}
175
176java_sdk_library_import {
177 name: "com.android.media.tv.remoteprovider",
178 public: {
179 jars: ["public/com.android.media.tv.remoteprovider.jar"],
180 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +0000181 current_api: "placeholder-api.txt",
182 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000183 },
184 system: {
185 jars: ["system/com.android.media.tv.remoteprovider.jar"],
186 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000187 current_api: "placeholder-api.txt",
188 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000189 },
190 test: {
191 jars: ["test/com.android.media.tv.remoteprovider.jar"],
192 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000193 current_api: "placeholder-api.txt",
194 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000195 },
196}
197
198java_sdk_library_import {
199 name: "com.android.nfc_extras",
200 public: {
201 jars: ["public/com.android.nfc_extras.jar"],
202 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +0000203 current_api: "placeholder-api.txt",
204 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000205 },
206 system: {
207 jars: ["system/com.android.nfc_extras.jar"],
208 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000209 current_api: "placeholder-api.txt",
210 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000211 },
212 test: {
213 jars: ["test/com.android.nfc_extras.jar"],
214 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000215 current_api: "placeholder-api.txt",
216 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000217 },
218}
219
220java_sdk_library_import {
221 name: "javax.obex",
222 public: {
223 jars: ["public/javax.obex.jar"],
224 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +0000225 current_api: "placeholder-api.txt",
226 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000227 },
228 system: {
229 jars: ["system/javax.obex.jar"],
230 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000231 current_api: "placeholder-api.txt",
232 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000233 },
234 test: {
235 jars: ["test/javax.obex.jar"],
236 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000237 current_api: "placeholder-api.txt",
238 removed_api: "placeholder-api.txt",
Paul Duffinfe63c722020-02-05 10:36:20 +0000239 },
240}
241
242java_sdk_library_import {
Colin Cross08934012019-04-17 11:12:50 -0700243 name: "org.apache.http.legacy",
Paul Duffin5df59442020-01-31 18:20:23 +0000244 public: {
245 jars: ["public/org.apache.http.legacy.jar"],
246 sdk_version: "current",
Paul Duffine87e3392022-02-21 11:41:55 +0000247 current_api: "placeholder-api.txt",
248 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +0000249 },
250 system: {
251 jars: ["system/org.apache.http.legacy.jar"],
252 sdk_version: "system_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000253 current_api: "placeholder-api.txt",
254 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +0000255 },
256 test: {
257 jars: ["test/org.apache.http.legacy.jar"],
258 sdk_version: "test_current",
Paul Duffine87e3392022-02-21 11:41:55 +0000259 current_api: "placeholder-api.txt",
260 removed_api: "placeholder-api.txt",
Paul Duffin5df59442020-01-31 18:20:23 +0000261 },
Colin Cross85c65462019-04-16 13:22:19 -0700262}
263
Andrew Zengc343d8a2020-10-21 21:08:38 -0700264java_sdk_library_import {
265 name: "com.google.android.wearable",
266 public: {
267 jars: ["public/com.google.android.wearable.jar"],
268 sdk_version: "current",
269 },
270 system: {
271 jars: ["system/com.google.android.wearable.jar"],
272 sdk_version: "system_current",
273 },
274 test: {
275 jars: ["test/com.google.android.wearable.jar"],
276 sdk_version: "test_current",
277 },
278}
279
Colin Cross85c65462019-04-16 13:22:19 -0700280java_import {
281 name: "android-support-multidex-instrumentation",
282 jars: ["multidex/instrumentation/android-support-multidex-instrumentation.jar"],
283 sdk_version: "current",
284}
285
286java_import {
287 name: "android-support-multidex",
288 jars: ["multidex/library/android-support-multidex.jar"],
289 sdk_version: "current",
290}
Felka Chang5be9f972020-04-15 19:58:06 +0800291
Rex Hoffman30abcb92022-10-16 06:04:49 +0000292android_library_import {
293 name: "com.android.support.multidex_1.0.3",
294 aars: ["multidex/multidex-1.0.3.aar"],
295 sdk_version: "current",
296 apex_available: [
297 "//apex_available:platform",
298 "//apex_available:anyapex",
299 ],
300 //min_sdk_version: "14",
301}
302
Mohammad Samiul Islam20e3c092021-04-30 17:21:41 +0100303// To provide test host tools the current android jar file to execute the host test
Felka Chang5be9f972020-04-15 19:58:06 +0800304filegroup {
305 name: "current_android_jar",
306 srcs: [
307 "public/android.jar",
308 ],
309 visibility: [
Mohammad Samiul Islam20e3c092021-04-30 17:21:41 +0100310 "//system/apex/apexer", // for apexer_host_test_tools
311 "//system/apex/tools", // for apex_compression_test_host_tools
Felka Chang5be9f972020-04-15 19:58:06 +0800312 ],
313}