blob: e0b427de738a82d402cb39ac157d66096984e1fa [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
felkachangacf1bd42018-10-08 15:42:19 +080015filegroup {
16 name: "DocumentsUIPerfTests-files",
17 srcs: [
18 "common/com/android/documentsui/**/*.java",
19 "functional/com/android/documentsui/ActivityTest.java",
20 ],
21}
22
Bill Line77ec522019-02-12 19:35:12 +080023filegroup {
24 name: "DocumentsUITests-srcs",
25 srcs: [
26 "common/**/*.java",
27 "functional/**/*.java",
28 "unit/**/*.java",
29 ],
30}
31
Diksha Gohlyanef5e4d72020-05-08 09:33:27 -070032filegroup {
33 name: "DocumentsUIUnitTests-srcs",
34 srcs: [
35 "common/**/*.java",
36 "unit/**/*.java",
37 ],
38}
39
Bill Line77ec522019-02-12 19:35:12 +080040android_library {
41 name: "DocumentsUITests-res-lib",
42
43 manifest: "AndroidManifest.xml",
44
45 asset_dirs: [
46 "assets",
47 ],
48
49 resource_dirs: [
50 "res",
51 ],
52
53 aaptflags: [
54 // pack some raw file locate in assets folder
55 "-0 .zip",
56 "--auto-add-overlay",
57 ],
Diksha Gohlyan841c79a2020-03-11 15:36:26 -070058
59 min_sdk_version : "29",
60 target_sdk_version : "29",
Bill Line77ec522019-02-12 19:35:12 +080061}
62
felkachangacf1bd42018-10-08 15:42:19 +080063android_test {
64 name: "DocumentsUITests",
65
66 manifest: "AndroidManifest.xml",
67
68 srcs: [
69 "common/**/*.java",
70 "functional/**/*.java",
71 "unit/**/*.java",
72 ],
73
74 resource_dirs: [
75 "res",
76 ],
77
78 aaptflags: [
79 "-0 .zip",
80 ],
81
82 libs: [
83 "android.test.base",
84 "android.test.mock",
85 "android.test.runner",
86 ],
87
88 static_libs: [
Brett Chabot2027ca02018-12-13 19:06:31 -080089 "androidx.test.rules",
90 "androidx.test.espresso.core",
felkachang864699a2019-01-11 16:28:17 +080091 "androidx.test.ext.truth",
felkachangacf1bd42018-10-08 15:42:19 +080092 "guava",
93 "mockito-target",
felkachangacf1bd42018-10-08 15:42:19 +080094 "ub-uiautomator",
95 ],
96
97 jarjar_rules: "jarjar-rules.txt",
98
99 test_suites: [
100 "device-tests",
Chen Zhu23519f62019-11-01 14:01:40 -0700101 "mts",
felkachangacf1bd42018-10-08 15:42:19 +0800102 ],
103
104 platform_apis: true,
105
106 certificate: "platform",
107
108 instrumentation_for: "DocumentsUI",
Diksha Gohlyan841c79a2020-03-11 15:36:26 -0700109 min_sdk_version : "29",
110 target_sdk_version : "29",
felkachangacf1bd42018-10-08 15:42:19 +0800111}