blob: 2597558b812bd6f58385ff148e3dba734396bd91 [file] [log] [blame]
Jeff Sharkey5ea5c282019-12-18 14:06:28 -07001// Copyright (C) 2019 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
15java_library {
16 name: "framework-mediaprovider",
17
18 srcs: [
19 ":framework-mediaprovider-sources",
20 ],
21
22 permitted_packages: [
23 "android.provider",
24 ],
25
26 installable: true,
27
Jeff Sharkeyd3636512019-12-20 10:11:54 -070028 sdk_version: "core_current",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070029 libs: [
30 // The order matters. android_system_* library should come later.
31 "framework_mediaprovider_annotation",
32 "android_system_stubs_current",
Artur Satayev2bb438d2020-01-23 15:26:14 +000033 "unsupportedappusage",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070034 ],
35
36 plugins: ["java_api_finder"],
Jiyong Park4114f782020-01-06 13:34:27 +090037
38 hostdex: true, // for hiddenapi check
39 visibility: ["//packages/providers/MediaProvider/apex:__subpackages__"],
40 apex_available: [
41 "com.android.mediaprovider",
42 "test_com.android.mediaprovider",
43 ],
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070044}
45
46filegroup {
47 name: "framework-mediaprovider-sources",
48 srcs: [
49 "java/**/*.java",
50 ],
51 path: "java",
52}
53
54droidstubs {
55 name: "framework-mediaprovider-stubs",
56 srcs: [
57 ":framework-mediaprovider-sources",
58 ":framework-mediaprovider-annotation-sources",
59 ],
60 defaults: [ "framework-module-stubs-defaults-systemapi" ],
61 sdk_version: "system_current",
62}
63
64java_library {
65 name: "framework_mediaprovider_stubs",
66 srcs: [":framework-mediaprovider-stubs"],
67 sdk_version: "system_current",
68}
69
70java_library {
71 name: "framework_mediaprovider_annotation",
72 srcs: [":framework-mediaprovider-annotation-sources"],
73 installable: false,
Jeff Sharkeyd3636512019-12-20 10:11:54 -070074 sdk_version: "core_current",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070075}