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 | |
| 15 | java_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 Sharkey | d363651 | 2019-12-20 10:11:54 -0700 | [diff] [blame^] | 28 | sdk_version: "core_current", |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 29 | 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"], |
| 36 | } |
| 37 | |
| 38 | filegroup { |
| 39 | name: "framework-mediaprovider-sources", |
| 40 | srcs: [ |
| 41 | "java/**/*.java", |
| 42 | ], |
| 43 | path: "java", |
| 44 | } |
| 45 | |
| 46 | droidstubs { |
| 47 | name: "framework-mediaprovider-stubs", |
| 48 | srcs: [ |
| 49 | ":framework-mediaprovider-sources", |
| 50 | ":framework-mediaprovider-annotation-sources", |
| 51 | ], |
| 52 | defaults: [ "framework-module-stubs-defaults-systemapi" ], |
| 53 | sdk_version: "system_current", |
| 54 | } |
| 55 | |
| 56 | java_library { |
| 57 | name: "framework_mediaprovider_stubs", |
| 58 | srcs: [":framework-mediaprovider-stubs"], |
| 59 | sdk_version: "system_current", |
| 60 | } |
| 61 | |
| 62 | java_library { |
| 63 | name: "framework_mediaprovider_annotation", |
| 64 | srcs: [":framework-mediaprovider-annotation-sources"], |
| 65 | installable: false, |
Jeff Sharkey | d363651 | 2019-12-20 10:11:54 -0700 | [diff] [blame^] | 66 | sdk_version: "core_current", |
Jeff Sharkey | 5ea5c28 | 2019-12-18 14:06:28 -0700 | [diff] [blame] | 67 | } |