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    optimize: {
25        enabled: false
26    },
27    srcs: [
28        "src/**/*.java",
29        "src/**/*.kt"
30    ],
31    static_libs: [
32        "flickerlib-core",
33        "flickerlib-helpers"
34    ],
35}
36
37java_library {
38    name: "flickerlib-core",
39    platform_apis: true,
40    optimize: {
41        enabled: false
42    },
43    srcs: [
44        "src/com/android/server/wm/flicker/**/*.java",
45        "src/com/android/server/wm/flicker/**/*.kt"
46    ],
47    java_resource_dirs: [
48        "src/com/android/server/wm/flicker/service/resources/"
49    ],
50    exclude_srcs: [
51        "**/helpers/*",
52    ],
53    static_libs: [
54        "flickerlib-helpers",
55        "compatibility-device-util-axt",
56        "ub-uiautomator",
57        "androidx.test.uiautomator_uiautomator",
58        "androidx.test.ext.junit",
59        "truth-prebuilt",
60        "launcher-helper-lib",
61        "wm-proto-parsers",
62        "platform-test-annotations",
63        "platform-test-core-rules",
64        "health-testing-utils",
65    ],
66}
67
68java_library {
69    name: "flickerlib-helpers",
70    sdk_version: "test_current",
71    optimize: {
72        enabled: false
73    },
74    srcs: [
75        "src/**/helpers/*.java",
76        "src/**/helpers/*.kt",
77    ],
78    static_libs: [
79        "compatibility-device-util-axt",
80        "app-helpers-core",
81        "launcher-helper-lib",
82        "wm-proto-parsers",
83    ],
84}
85
86java_library {
87    name: "wm-proto-parsers",
88    sdk_version: "test_current",
89    optimize: {
90        enabled: false
91    },
92    srcs: [
93        "src/com/android/server/wm/traces/**/*.java",
94        "src/com/android/server/wm/traces/**/*.kt",
95    ],
96    static_libs: [
97        "android-support-annotations",
98        "androidx.test.ext.junit",
99        "platformprotosnano",
100        "layersprotosnano",
101        "flicker-tags-proto",
102    ],
103}
104
105java_library {
106    name: "flicker-tags-proto",
107    srcs: [
108        "**/*.proto",
109    ],
110    optimize: {
111        enabled: false
112    }
113}
114