blob: 14a6cb393de769226eb721b6bde26a2ea22026eb [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
Paul Duffina3b37862020-05-14 00:40:43 +010015java_sdk_library {
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070016 name: "framework-mediaprovider",
Paul Duffina3b37862020-05-14 00:40:43 +010017 defaults: ["framework-module-defaults"],
18
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070019 srcs: [
20 ":framework-mediaprovider-sources",
21 ],
22
23 permitted_packages: [
24 "android.provider",
25 ],
26
27 installable: true,
28
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070029 libs: [
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070030 "framework_mediaprovider_annotation",
Artur Satayev2bb438d2020-01-23 15:26:14 +000031 "unsupportedappusage",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070032 ],
33
Jiyong Park4114f782020-01-06 13:34:27 +090034 hostdex: true, // for hiddenapi check
Paul Duffin663d92d2020-05-31 11:55:45 +010035 impl_library_visibility: [
Paul Duffin663d92d2020-05-31 11:55:45 +010036 "//packages/providers/MediaProvider:__subpackages__",
37 ],
Jiyong Park4114f782020-01-06 13:34:27 +090038 apex_available: [
39 "com.android.mediaprovider",
40 "test_com.android.mediaprovider",
41 ],
Nikita Ioffe8851c7c2020-11-03 22:58:11 +000042 min_sdk_version: "30",
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
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070053java_library {
54 name: "framework_mediaprovider_annotation",
55 srcs: [":framework-mediaprovider-annotation-sources"],
56 installable: false,
Jeff Sharkeyd3636512019-12-20 10:11:54 -070057 sdk_version: "core_current",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070058}