blob: dd7b23b5c5de0199233f68819560164def2b5d6c [file] [log] [blame]
felkachang864699a2019-01-11 16:28:17 +08001// 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
Bob Badourd851bf12021-02-12 21:33:26 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
felkachangacf1bd42018-10-08 15:42:19 +080019filegroup {
20 name: "DocumentsUIPerfTests-files",
21 srcs: [
22 "common/com/android/documentsui/**/*.java",
23 "functional/com/android/documentsui/ActivityTest.java",
24 ],
25}
26
Bill Line77ec522019-02-12 19:35:12 +080027filegroup {
28 name: "DocumentsUITests-srcs",
29 srcs: [
30 "common/**/*.java",
31 "functional/**/*.java",
32 "unit/**/*.java",
33 ],
34}
35
Diksha Gohlyanef5e4d72020-05-08 09:33:27 -070036filegroup {
37 name: "DocumentsUIUnitTests-srcs",
38 srcs: [
39 "common/**/*.java",
40 "unit/**/*.java",
41 ],
42}
43
Bill Line77ec522019-02-12 19:35:12 +080044android_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 ],
Diksha Gohlyan841c79a2020-03-11 15:36:26 -070062
63 min_sdk_version : "29",
64 target_sdk_version : "29",
Bill Line77ec522019-02-12 19:35:12 +080065}
66
felkachangacf1bd42018-10-08 15:42:19 +080067android_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: [
Brett Chabot2027ca02018-12-13 19:06:31 -080093 "androidx.test.rules",
94 "androidx.test.espresso.core",
felkachang864699a2019-01-11 16:28:17 +080095 "androidx.test.ext.truth",
felkachangacf1bd42018-10-08 15:42:19 +080096 "guava",
97 "mockito-target",
felkachangacf1bd42018-10-08 15:42:19 +080098 "ub-uiautomator",
99 ],
100
101 jarjar_rules: "jarjar-rules.txt",
102
103 test_suites: [
104 "device-tests",
Chen Zhu23519f62019-11-01 14:01:40 -0700105 "mts",
felkachangacf1bd42018-10-08 15:42:19 +0800106 ],
107
108 platform_apis: true,
109
110 certificate: "platform",
111
112 instrumentation_for: "DocumentsUI",
Diksha Gohlyan841c79a2020-03-11 15:36:26 -0700113 min_sdk_version : "29",
114 target_sdk_version : "29",
felkachangacf1bd42018-10-08 15:42:19 +0800115}