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 15java_defaults { 16 name: "documentsui_defaults", 17 18 static_libs: [ 19 "androidx.appcompat_appcompat", 20 "androidx.legacy_legacy-support-core-ui", 21 "androidx.legacy_legacy-support-v13", 22 "androidx.legacy_legacy-support-v4", 23 "androidx.recyclerview_recyclerview", 24 "androidx.recyclerview_recyclerview-selection", 25 "androidx.transition_transition", 26 "apache-commons-compress", 27 "com.google.android.material_material", 28 "guava", 29 ], 30 31 privileged: true, 32 33 certificate: "platform", 34 35 optimize: { 36 proguard_flags_files: ["proguard.flags"], 37 }, 38 39 sdk_version: "system_current", 40 min_sdk_version: "28", 41 target_sdk_version: "28", 42} 43 44filegroup { 45 name: "DocumentsUI-srcs", 46 srcs: [ 47 "src/**/*.java", 48 ":statslog-docsui-java-gen", 49 ], 50} 51 52java_library { 53 name: "docsui-statsd", 54 srcs: [ 55 ":statslog-docsui-java-gen", 56 ], 57} 58 59genrule { 60 name: "statslog-docsui-java-gen", 61 tools: ["stats-log-api-gen"], 62 cmd: "$(location stats-log-api-gen) --java $(out) --module docsui --javaPackage com.android.documentsui --javaClass DocumentsStatsLog", 63 out: ["com/android/documentsui/DocumentsStatsLog.java"], 64} 65 66android_library { 67 name: "DocumentsUI-res-lib", 68 69 manifest: "AndroidManifest.xml", 70 71 static_libs: [ 72 "androidx.appcompat_appcompat", 73 "com.google.android.material_material", 74 ], 75 76 resource_dirs: [ 77 "res", 78 ], 79 80 aaptflags: [ 81 "--auto-add-overlay", 82 ], 83 84 min_sdk_version: "28", 85 target_sdk_version: "28", 86} 87 88android_app { 89 name: "DocumentsUI", 90 91 defaults: ["documentsui_defaults"], 92 93 manifest: "AndroidManifest.xml", 94 95 srcs: [ 96 ":DocumentsUI-srcs", 97 ], 98 99 resource_dirs: [ 100 "res", 101 ], 102 103 required: ["privapp_whitelist_com.android.documentsui"], 104} 105