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 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19filegroup { 20 name: "DocumentsUIPerfTests-files", 21 srcs: [ 22 "common/com/android/documentsui/**/*.java", 23 "functional/com/android/documentsui/ActivityTest.java", 24 ], 25} 26 27filegroup { 28 name: "DocumentsUITests-srcs", 29 srcs: [ 30 "common/**/*.java", 31 "functional/**/*.java", 32 "unit/**/*.java", 33 ], 34} 35 36filegroup { 37 name: "DocumentsUIUnitTests-srcs", 38 srcs: [ 39 "common/**/*.java", 40 "unit/**/*.java", 41 ], 42} 43 44android_library { 45 name: "DocumentsUITests-res-lib", 46 47 manifest: "AndroidManifest.xml", 48 49 asset_dirs: [ 50 "assets", 51 ], 52 53 resource_dirs: [ 54 "res", 55 ], 56 57 aaptflags: [ 58 // pack some raw file locate in assets folder 59 "-0 .zip", 60 "--auto-add-overlay", 61 ], 62 63 min_sdk_version : "29", 64 target_sdk_version : "29", 65} 66 67android_test { 68 name: "DocumentsUITests", 69 70 manifest: "AndroidManifest.xml", 71 72 srcs: [ 73 "common/**/*.java", 74 "functional/**/*.java", 75 "unit/**/*.java", 76 ], 77 78 resource_dirs: [ 79 "res", 80 ], 81 82 aaptflags: [ 83 "-0 .zip", 84 ], 85 86 libs: [ 87 "android.test.base", 88 "android.test.mock", 89 "android.test.runner", 90 ], 91 92 static_libs: [ 93 "androidx.test.rules", 94 "androidx.test.espresso.core", 95 "androidx.test.ext.truth", 96 "guava", 97 "mockito-target", 98 "ub-uiautomator", 99 ], 100 101 jarjar_rules: "jarjar-rules.txt", 102 103 test_suites: [ 104 "device-tests", 105 "mts", 106 ], 107 108 platform_apis: true, 109 110 certificate: "platform", 111 112 instrumentation_for: "DocumentsUI", 113 min_sdk_version : "29", 114 target_sdk_version : "29", 115} 116