1// Copyright (C) 2022 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15
16package {
17    default_team: "trendy_team_testing",
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21android_test {
22    name: "platform-screenshot-diff-test",
23    manifest: "src/androidTest/manifest/AndroidManifest.xml",
24    platform_apis: true,
25    optimize: {
26        enabled: false,
27    },
28    srcs: [
29        "src/**/*.java",
30        "src/**/*.kt",
31    ],
32    static_libs: [
33        "androidx.test.core",
34        "androidx.test.ext.junit",
35        "androidx.test.runner",
36        "androidx.test.rules",
37        "androidx.test.uiautomator_uiautomator",
38        "launcher-helper-lib",
39        "metrics-helper-lib",
40        "platform-screenshot-diff-core",
41        "platform-test-annotations",
42        "truth",
43    ],
44    asset_dirs: ["src/androidTest/assets"],
45    test_suites: ["general-tests"],
46}
47
48android_library {
49    name: "platform-screenshot-diff-core",
50    manifest: "AndroidManifest.xml",
51    platform_apis: true,
52    lint: {
53        test: true,
54    },
55    optimize: {
56        enabled: false,
57    },
58    srcs: [
59        "src/main/java/platform/test/screenshot/**/*.java",
60        "src/main/java/platform/test/screenshot/**/*.kt",
61    ],
62    static_libs: [
63        "androidx.annotation_annotation",
64        "androidx.test.ext.junit",
65        "platform-screenshot-diff-proto",
66        "androidx.test.runner",
67        "androidx.test.espresso.core",
68        "androidx.appcompat_appcompat",
69        "guava",
70        "uiautomator-helpers",
71        "androidx.concurrent_concurrent-futures-ktx",
72    ],
73}
74
75java_library {
76    name: "platform-screenshot-diff-proto",
77    srcs: [
78        "**/*.proto",
79    ],
80    optimize: {
81        enabled: false,
82    },
83}
84