1//
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
17package {
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
26java_defaults {
27    name: "FlickerTestsDefault",
28    platform_apis: true,
29    certificate: "platform",
30    optimize: {
31        enabled: false,
32    },
33    test_suites: ["device-tests"],
34    libs: ["android.test.runner"],
35    static_libs: [
36        "androidx.test.ext.junit",
37        "flickertestapplib",
38        "flickerlib",
39        "flickerlib-helpers",
40        "flickerlib-trace_processor_shell",
41        "platform-test-annotations",
42        "wm-flicker-common-app-helpers",
43        "wm-shell-flicker-utils",
44    ],
45    data: [":FlickerTestApp"],
46}
47
48java_library {
49    name: "wm-flicker-common-assertions",
50    platform_apis: true,
51    optimize: {
52        enabled: false,
53    },
54    srcs: [
55        "src/**/*Assertions.java",
56        "src/**/*Assertions.kt",
57    ],
58    static_libs: [
59        "flickerlib",
60        "flickerlib-helpers",
61        "truth",
62        "app-helpers-core",
63    ],
64}
65
66java_library {
67    name: "wm-flicker-window-extensions",
68    sdk_version: "current",
69    static_libs: [
70        "androidx.window.extensions_extensions-nodeps",
71    ],
72    installable: false,
73}
74
75java_library {
76    name: "wm-flicker-window-extensions-core",
77    sdk_version: "current",
78    static_libs: [
79        "androidx.window.extensions.core_core-nodeps",
80    ],
81    installable: false,
82}
83
84java_library {
85    name: "FlickerTestsBase",
86    defaults: ["FlickerTestsDefault"],
87    srcs: ["src/**/*"],
88}
89