1// Copyright (C) 2016 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 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19android_app { 20 name: "StorageManager", 21 defaults: ["SettingsLibDefaults"], 22 platform_apis: true, 23 certificate: "platform", 24 25 optimize: { 26 proguard_flags_files: ["proguard.cfg"], 27 }, 28 29 system_ext_specific: true, 30 privileged: true, 31 required: ["privapp_whitelist_com.android.storagemanager"], 32 33 static_libs: [ 34 "androidx.legacy_legacy-preference-v14", 35 "androidx.appcompat_appcompat", 36 "androidx.preference_preference", 37 "androidx.recyclerview_recyclerview", 38 ], 39 40 uses_libs: ["org.apache.http.legacy"], 41 42 resource_dirs: ["res"], 43 44 srcs: ["src/**/*.java"], 45} 46 47filegroup { 48 name: "StorageManager_proguard_flags", 49 srcs: ["proguard.cfg"], 50} 51 52// The sources for StorageManager need to be exposed to StorageManagerGoogle. 53filegroup { 54 name: "StorageManager_srcs", 55 srcs: ["src/**/*.java"], 56} 57 58android_library { 59 name: "StorageManager-res-lib", 60 61 manifest: "AndroidManifest.xml", 62 63 static_libs: [ 64 "androidx.appcompat_appcompat", 65 "androidx.preference_preference", 66 ], 67 68 resource_dirs: [ 69 "res", 70 ], 71 72 aaptflags: [ 73 "--auto-add-overlay", 74 ], 75} 76