• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21java_test {
22    name: "flickerlib",
23    platform_apis: true,
24    srcs: [
25        "src/**/*.java",
26        "src/**/*.kt"
27    ],
28    static_libs: [
29        "flickerlib-core",
30        "flickerlib-helpers"
31    ],
32}
33
34java_library {
35    name: "flickerlib-core",
36    platform_apis: true,
37    srcs: [
38        "src/com/android/server/wm/flicker/**/*.java",
39        "src/com/android/server/wm/flicker/**/*.kt"
40    ],
41    exclude_srcs: [
42        "**/helpers/*",
43    ],
44    static_libs: [
45        "compatibility-device-util-axt",
46        "ub-uiautomator",
47        "androidx.test.uiautomator_uiautomator",
48        "androidx.test.ext.junit",
49        "truth-prebuilt",
50        "launcher-helper-lib",
51        "wm-proto-parsers",
52        "platform-test-annotations",
53        "platform-test-core-rules",
54    ],
55}
56
57java_library {
58    name: "flickerlib-helpers",
59    sdk_version: "test_current",
60    srcs: [
61        "src/**/helpers/*.java",
62        "src/**/helpers/*.kt",
63    ],
64    static_libs: [
65        "compatibility-device-util-axt",
66        "app-helpers-core",
67        "launcher-helper-lib",
68        "wm-proto-parsers",
69    ],
70}
71
72java_library {
73    name: "wm-proto-parsers",
74    sdk_version: "test_current",
75    srcs: [
76        "src/com/android/server/wm/traces/**/*.java",
77        "src/com/android/server/wm/traces/**/*.kt",
78    ],
79    static_libs: [
80        "android-support-annotations",
81        "androidx.test.ext.junit",
82        "platformprotosnano",
83        "layersprotosnano",
84    ],
85}
86