Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 1 | // 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 Duffin | a3b3786 | 2020-05-14 00:40:43 +0100 | [diff] [blame] | 15 | java_sdk_library { |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 16 | name: "framework-mediaprovider", |
Paul Duffin | a3b3786 | 2020-05-14 00:40:43 +0100 | [diff] [blame] | 17 | 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 Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 23 | |
| 24 | srcs: [ |
| 25 | ":framework-mediaprovider-sources", |
| 26 | ], |
| 27 | |
| 28 | permitted_packages: [ |
| 29 | "android.provider", |
| 30 | ], |
| 31 | |
| 32 | installable: true, |
| 33 | |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 34 | libs: [ |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 35 | "framework_mediaprovider_annotation", |
Artur Satayev | 2bb438d | 2020-01-23 15:26:14 +0000 | [diff] [blame] | 36 | "unsupportedappusage", |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 37 | ], |
| 38 | |
Jiyong Park | 4114f78 | 2020-01-06 13:34:27 +0900 | [diff] [blame] | 39 | hostdex: true, // for hiddenapi check |
Paul Duffin | 663d92d | 2020-05-31 11:55:45 +0100 | [diff] [blame^] | 40 | visibility: ["//visibility:public"], |
| 41 | impl_library_visibility: [ |
| 42 | "//visibility:override", |
| 43 | "//packages/providers/MediaProvider:__subpackages__", |
| 44 | ], |
Jiyong Park | 4114f78 | 2020-01-06 13:34:27 +0900 | [diff] [blame] | 45 | apex_available: [ |
| 46 | "com.android.mediaprovider", |
| 47 | "test_com.android.mediaprovider", |
| 48 | ], |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | filegroup { |
| 52 | name: "framework-mediaprovider-sources", |
| 53 | srcs: [ |
| 54 | "java/**/*.java", |
| 55 | ], |
| 56 | path: "java", |
| 57 | } |
| 58 | |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 59 | java_library { |
| 60 | name: "framework_mediaprovider_annotation", |
| 61 | srcs: [":framework-mediaprovider-annotation-sources"], |
| 62 | installable: false, |
Jeff Sharkey | d363651 | 2019-12-20 10:11:54 -0700 | [diff] [blame] | 63 | sdk_version: "core_current", |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 64 | } |