blob: 514f89511fb18a072e2c18052ccd4a80be848d93 [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
Nataniel Borges160b9df2023-05-12 12:29:57 +000026filegroup {
Pablo Gamitod35065f2023-07-04 14:47:52 +000027 name: "FlickerServiceTests-src",
28 srcs: [
Nataniel Borges84828f92023-11-03 14:39:55 +000029 "src/**/*",
Pablo Gamitod35065f2023-07-04 14:47:52 +000030 ],
31}
32
Nataniel Borges160b9df2023-05-12 12:29:57 +000033java_defaults {
34 name: "FlickerTestsDefault",
Nataniel Borges2b707c52020-08-24 20:54:35 +020035 platform_apis: true,
36 certificate: "platform",
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020037 optimize: {
38 enabled: false,
39 },
Nataniel Borges2b707c52020-08-24 20:54:35 +020040 test_suites: ["device-tests"],
41 libs: ["android.test.runner"],
42 static_libs: [
43 "androidx.test.ext.junit",
44 "flickertestapplib",
45 "flickerlib",
Nataniel Borges3a989792023-02-23 14:04:46 +000046 "flickerlib-helpers",
Kean Mariottif9969f72023-06-09 12:53:23 +000047 "flickerlib-trace_processor_shell",
Yuncheol Heoc24dfb62020-09-09 17:09:10 -070048 "platform-test-annotations",
Nataniel Borges160b9df2023-05-12 12:29:57 +000049 "wm-flicker-common-app-helpers",
Pablo Gamitoc0ee6302023-07-21 09:55:09 +000050 "wm-shell-flicker-utils",
Nataniel Borges2b707c52020-08-24 20:54:35 +020051 ],
jahinimtiazd8b1dda2023-03-13 23:53:08 +000052 data: [
53 ":FlickerTestApp",
Nataniel Borges29178cb2022-02-07 17:03:04 +010054 "trace_config/*",
jahinimtiazd8b1dda2023-03-13 23:53:08 +000055 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020056}
57
58java_library {
59 name: "wm-flicker-common-assertions",
60 platform_apis: true,
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020061 optimize: {
62 enabled: false,
63 },
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010064 srcs: [
65 "src/**/*Assertions.java",
66 "src/**/*Assertions.kt",
67 ],
Nataniel Borges57e7fe042020-09-30 16:41:35 +020068 static_libs: [
69 "flickerlib",
Nataniel Borges3a989792023-02-23 14:04:46 +000070 "flickerlib-helpers",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +000071 "truth",
Nataniel Borges8b59ddb2021-06-17 15:39:20 +020072 "app-helpers-core",
Nataniel Borges57e7fe042020-09-30 16:41:35 +020073 ],
Antonella Dellanzo941c3b82020-10-28 18:43:28 +010074}
75
Chris Lid498d2f2022-06-28 11:29:40 +080076android_library_import {
77 name: "wm-flicker-window-extensions_nodeps",
78 aars: ["libs/window-extensions-release.aar"],
79 sdk_version: "current",
80}
81
82java_library {
83 name: "wm-flicker-window-extensions",
84 sdk_version: "current",
85 static_libs: [
86 "wm-flicker-window-extensions_nodeps",
87 ],
88 installable: false,
89}
Nataniel Borges84828f92023-11-03 14:39:55 +000090
91java_library {
92 name: "FlickerTestsBase",
93 defaults: ["FlickerTestsDefault"],
94 srcs: ["src/**/*"],
95}