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 15package { 16 // See: http://go/android-license-faq 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_sdk_library { 21 name: "framework-mediaprovider", 22 defaults: ["framework-module-defaults"], 23 24 srcs: [ 25 ":framework-mediaprovider-sources", 26 "java/**/*.aidl", 27 ], 28 29 aidl: { 30 local_include_dirs: [ 31 "java", 32 ], 33 }, 34 35 permitted_packages: [ 36 "android.provider", 37 ], 38 39 installable: true, 40 41 libs: [ 42 "androidx.annotation_annotation", 43 "framework-media.stubs.module_lib", 44 "unsupportedappusage", 45 ], 46 static_libs: [ 47 "mediaprovider_flags_java_lib", 48 ], 49 jarjar_rules: "jarjar_rules.txt", 50 51 hostdex: true, // for hiddenapi check 52 impl_library_visibility: [ 53 "//packages/providers/MediaProvider:__subpackages__", 54 "//cts/tests/PhotoPicker", 55 ], 56 apex_available: [ 57 "com.android.mediaprovider", 58 "test_com.android.mediaprovider", 59 ], 60 min_sdk_version: "30", 61} 62 63filegroup { 64 name: "framework-mediaprovider-sources", 65 defaults: ["framework-sources-module-defaults"], 66 srcs: [ 67 "java/**/*.java", 68 ], 69 path: "java", 70 visibility: ["//packages/providers/MediaProvider/tests"], 71} 72