blob: 7a808bc51f10adfe89551387a83cbcab860a61e9 [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
19 // TODO(b/155480189) - Remove naming_scheme once references have been resolved.
20 // Temporary java_sdk_library component naming scheme to use to ease the transition from separate
21 // modules to java_sdk_library.
22 naming_scheme: "framework-modules",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070023
24 srcs: [
25 ":framework-mediaprovider-sources",
26 ],
27
28 permitted_packages: [
29 "android.provider",
30 ],
31
32 installable: true,
33
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070034 libs: [
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070035 "framework_mediaprovider_annotation",
Artur Satayev2bb438d2020-01-23 15:26:14 +000036 "unsupportedappusage",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070037 ],
38
Jiyong Park4114f782020-01-06 13:34:27 +090039 hostdex: true, // for hiddenapi check
Paul Duffin663d92d2020-05-31 11:55:45 +010040 visibility: ["//visibility:public"],
41 impl_library_visibility: [
42 "//visibility:override",
43 "//packages/providers/MediaProvider:__subpackages__",
44 ],
Jiyong Park4114f782020-01-06 13:34:27 +090045 apex_available: [
46 "com.android.mediaprovider",
47 "test_com.android.mediaprovider",
48 ],
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070049}
50
51filegroup {
52 name: "framework-mediaprovider-sources",
53 srcs: [
54 "java/**/*.java",
55 ],
56 path: "java",
57}
58
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070059java_library {
60 name: "framework_mediaprovider_annotation",
61 srcs: [":framework-mediaprovider-annotation-sources"],
62 installable: false,
Jeff Sharkeyd3636512019-12-20 10:11:54 -070063 sdk_version: "core_current",
Jeff Sharkey5ea5c282019-12-18 14:06:28 -070064}