1// Copyright (C) 2024 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-photopicker", 22 defaults: ["framework-module-defaults"], 23 srcs: [ 24 ":framework-photopicker-updatable-sources", 25 "java/**/*.aidl", 26 ], 27 aidl: { 28 local_include_dirs: [ 29 "java", 30 ], 31 }, 32 33 permitted_packages: [ 34 "android.widget.photopicker", 35 "com.android.providers.media.flags", 36 ], 37 libs: [ 38 "androidx.annotation_annotation", 39 "framework-media.stubs.module_lib", 40 "unsupportedappusage", 41 ], 42 static_libs: [ 43 "mediaprovider_flags_java_lib", 44 ], 45 apex_available: [ 46 "com.android.mediaprovider", 47 ], 48 impl_library_visibility: [ 49 "//packages/providers/MediaProvider:__subpackages__", 50 "//cts/tests/PhotoPicker", 51 ], 52 min_sdk_version: "31", // new jars are only supported S+ 53} 54 55filegroup { 56 name: "framework-photopicker-updatable-sources", 57 defaults: ["framework-sources-module-defaults"], 58 srcs: [ 59 "java/**/*.java", 60 ], 61 path: "java", 62} 63