1//
2// Copyright (C) 2020 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
26filegroup {
27    name: "WMShellFlickerTestsUtils-src",
28    srcs: ["src/com/android/wm/shell/flicker/utils/*.kt"],
29}
30
31java_library {
32    name: "wm-shell-flicker-utils",
33    platform_apis: true,
34    optimize: {
35        enabled: false,
36    },
37    srcs: [
38        ":WMShellFlickerTestsUtils-src",
39    ],
40    static_libs: [
41        "androidx.test.ext.junit",
42        "flickertestapplib",
43        "flickerlib",
44        "flickerlib-helpers",
45        "platform-test-annotations",
46        "wm-flicker-common-app-helpers",
47        "wm-flicker-common-assertions",
48        "launcher-helper-lib",
49        "launcher-aosp-tapl",
50        "com_android_wm_shell_flags_lib",
51    ],
52}
53
54java_defaults {
55    name: "WMShellFlickerTestsDefault",
56    platform_apis: true,
57    certificate: "platform",
58    optimize: {
59        enabled: false,
60    },
61    test_suites: ["device-tests"],
62    libs: ["android.test.runner"],
63    static_libs: [
64        "wm-shell-flicker-utils",
65        "androidx.test.ext.junit",
66        "flickertestapplib",
67        "flickerlib",
68        "flickerlib-helpers",
69        "flickerlib-trace_processor_shell",
70        "platform-test-annotations",
71        "wm-flicker-common-app-helpers",
72        "wm-flicker-common-assertions",
73        "launcher-helper-lib",
74        "launcher-aosp-tapl",
75    ],
76    data: [
77        ":FlickerTestApp",
78    ],
79}
80
81java_library {
82    name: "WMShellFlickerTestsBase",
83    defaults: ["WMShellFlickerTestsDefault"],
84    srcs: ["src/com/android/wm/shell/flicker/*.kt"],
85}
86