blob: 7731e098d9f5f452dd1a9a76c02d5dde6b38d39e [file] [log] [blame]
Sasha Smundak89414e12019-03-10 19:48:23 -07001//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Bob Badoure539dba2021-02-12 17:07:05 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "frameworks_base_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["frameworks_base_license"],
24}
25
Sasha Smundak89414e12019-03-10 19:48:23 -070026android_test {
27 name: "FlickerTests",
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020028 srcs: [
29 "src/**/*.java",
30 "src/**/*.kt",
31 ],
Nataniel Borges2fd569d2020-04-20 14:16:15 +020032 manifest: "AndroidManifest.xml",
Nataniel Borgesda5136e2021-01-26 16:33:09 +010033 test_config: "AndroidTest.xml",
Nataniel Borges2b707c52020-08-24 20:54:35 +020034 platform_apis: true,
35 certificate: "platform",
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020036 optimize: {
37 enabled: false,
38 },
Nataniel Borges2b707c52020-08-24 20:54:35 +020039 test_suites: ["device-tests"],
40 libs: ["android.test.runner"],
41 static_libs: [
42 "androidx.test.ext.junit",
43 "flickertestapplib",
44 "flickerlib",
45 "truth-prebuilt",
Nataniel Borges2b707c52020-08-24 20:54:35 +020046 "launcher-helper-lib",
Yuncheol Heoc24dfb62020-09-09 17:09:10 -070047 "launcher-aosp-tapl",
48 "platform-test-annotations",
Nataniel Borges2b707c52020-08-24 20:54:35 +020049 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020050}
51
52java_library {
53 name: "wm-flicker-common-assertions",
54 platform_apis: true,
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020055 optimize: {
56 enabled: false,
57 },
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010058 srcs: [
59 "src/**/*Assertions.java",
60 "src/**/*Assertions.kt",
61 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020062 exclude_srcs: [
63 "**/helpers/*",
64 ],
65 static_libs: [
66 "flickerlib",
67 "truth-prebuilt",
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020068 "app-helpers-core",
Nataniel Borges57e7fe042020-09-30 16:41:35 +020069 ],
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010070}
71
72java_library {
73 name: "wm-flicker-common-app-helpers",
74 platform_apis: true,
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020075 optimize: {
76 enabled: false,
77 },
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010078 srcs: [
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020079 "**/helpers/*",
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010080 ],
81 static_libs: [
82 "flickerlib",
Nataniel Borges143d5842020-12-15 14:36:03 +010083 "flickertestapplib",
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010084 "truth-prebuilt",
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020085 "app-helpers-core",
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010086 ],
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020087}