blob: dd7b23b5c5de0199233f68819560164def2b5d6c [file] [log] [blame]
// Copyright (C) 2019 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
filegroup {
name: "DocumentsUIPerfTests-files",
srcs: [
"common/com/android/documentsui/**/*.java",
"functional/com/android/documentsui/ActivityTest.java",
],
}
filegroup {
name: "DocumentsUITests-srcs",
srcs: [
"common/**/*.java",
"functional/**/*.java",
"unit/**/*.java",
],
}
filegroup {
name: "DocumentsUIUnitTests-srcs",
srcs: [
"common/**/*.java",
"unit/**/*.java",
],
}
android_library {
name: "DocumentsUITests-res-lib",
manifest: "AndroidManifest.xml",
asset_dirs: [
"assets",
],
resource_dirs: [
"res",
],
aaptflags: [
// pack some raw file locate in assets folder
"-0 .zip",
"--auto-add-overlay",
],
min_sdk_version : "29",
target_sdk_version : "29",
}
android_test {
name: "DocumentsUITests",
manifest: "AndroidManifest.xml",
srcs: [
"common/**/*.java",
"functional/**/*.java",
"unit/**/*.java",
],
resource_dirs: [
"res",
],
aaptflags: [
"-0 .zip",
],
libs: [
"android.test.base",
"android.test.mock",
"android.test.runner",
],
static_libs: [
"androidx.test.rules",
"androidx.test.espresso.core",
"androidx.test.ext.truth",
"guava",
"mockito-target",
"ub-uiautomator",
],
jarjar_rules: "jarjar-rules.txt",
test_suites: [
"device-tests",
"mts",
],
platform_apis: true,
certificate: "platform",
instrumentation_for: "DocumentsUI",
min_sdk_version : "29",
target_sdk_version : "29",
}