blob: 855d3c1f4ea7d0faa45a94c4d127b29459978481 [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",
Chris Lid498d2f2022-06-28 11:29:40 +080049 "wm-flicker-window-extensions",
Nataniel Borges2b707c52020-08-24 20:54:35 +020050 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020051}
52
53java_library {
54 name: "wm-flicker-common-assertions",
55 platform_apis: true,
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020056 optimize: {
57 enabled: false,
58 },
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010059 srcs: [
60 "src/**/*Assertions.java",
61 "src/**/*Assertions.kt",
62 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020063 exclude_srcs: [
64 "**/helpers/*",
65 ],
66 static_libs: [
67 "flickerlib",
68 "truth-prebuilt",
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020069 "app-helpers-core",
Nataniel Borges57e7fe042020-09-30 16:41:35 +020070 ],
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010071}
72
73java_library {
74 name: "wm-flicker-common-app-helpers",
75 platform_apis: true,
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020076 optimize: {
77 enabled: false,
78 },
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010079 srcs: [
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020080 "**/helpers/*",
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010081 ],
82 static_libs: [
83 "flickerlib",
Nataniel Borges143d5842020-12-15 14:36:03 +010084 "flickertestapplib",
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010085 "truth-prebuilt",
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020086 "app-helpers-core",
Chris Lid498d2f2022-06-28 11:29:40 +080087 "wm-flicker-window-extensions",
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010088 ],
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020089}
Chris Lid498d2f2022-06-28 11:29:40 +080090
91android_library_import {
92 name: "wm-flicker-window-extensions_nodeps",
93 aars: ["libs/window-extensions-release.aar"],
94 sdk_version: "current",
95}
96
97java_library {
98 name: "wm-flicker-window-extensions",
99 sdk_version: "current",
100 static_libs: [
101 "wm-flicker-window-extensions_nodeps",
102 ],
103 installable: false,
104}