blob: 98ace891e9fe0df0b29232954860be5bd58c6208 [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",
33 ],
34
35 plugins: ["java_api_finder"],
Jiyong Park4114f782020-01-06 13:34:27 +090036
37 hostdex: true, // for hiddenapi check
38 visibility: ["//packages/providers/MediaProvider/apex:__subpackages__"],
39 apex_available: [
40 "com.android.mediaprovider",
41 "test_com.android.mediaprovider",
42 ],
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070043}
44
45filegroup {
46 name: "framework-mediaprovider-sources",
47 srcs: [
48 "java/**/*.java",
49 ],
50 path: "java",
51}
52
53droidstubs {
54 name: "framework-mediaprovider-stubs",
55 srcs: [
56 ":framework-mediaprovider-sources",
57 ":framework-mediaprovider-annotation-sources",
58 ],
59 defaults: [ "framework-module-stubs-defaults-systemapi" ],
60 sdk_version: "system_current",
61}
62
63java_library {
64 name: "framework_mediaprovider_stubs",
65 srcs: [":framework-mediaprovider-stubs"],
66 sdk_version: "system_current",
67}
68
69java_library {
70 name: "framework_mediaprovider_annotation",
71 srcs: [":framework-mediaprovider-annotation-sources"],
72 installable: false,
Jeff Sharkeyd3636512019-12-20 10:11:54 -070073 sdk_version: "core_current",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070074}