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 |
Anton Hansson | 65958d0 | 2020-03-31 21:05:53 +0100 | [diff] [blame] | 40 | visibility: ["//packages/providers/MediaProvider:__subpackages__"], |
Paul Duffin | a3b3786 | 2020-05-14 00:40:43 +0100 | [diff] [blame^] | 41 | stubs_library_visibility: ["//visibility:public"], |
Jiyong Park | 4114f78 | 2020-01-06 13:34:27 +0900 | [diff] [blame] | 42 | apex_available: [ |
| 43 | "com.android.mediaprovider", |
| 44 | "test_com.android.mediaprovider", |
| 45 | ], |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | filegroup { |
| 49 | name: "framework-mediaprovider-sources", |
| 50 | srcs: [ |
| 51 | "java/**/*.java", |
| 52 | ], |
| 53 | path: "java", |
| 54 | } |
| 55 | |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 56 | java_library { |
| 57 | name: "framework_mediaprovider_annotation", |
| 58 | srcs: [":framework-mediaprovider-annotation-sources"], |
| 59 | installable: false, |
Jeff Sharkey | d363651 | 2019-12-20 10:11:54 -0700 | [diff] [blame] | 60 | sdk_version: "core_current", |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 61 | } |