• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "platform-screenshot-diff-test",
22    manifest: "src/androidTest/manifest/AndroidManifest.xml",
23    platform_apis: true,
24    optimize: {
25        enabled: false
26    },
27    srcs: [
28        "src/**/*.java",
29        "src/**/*.kt",
30    ],
31    static_libs: [
32        "androidx.test.core",
33        "androidx.test.ext.junit",
34        "androidx.test.runner",
35        "androidx.test.rules",
36        "launcher-helper-lib",
37        "metrics-helper-lib",
38        "platform-screenshot-diff-core",
39        "platform-test-annotations",
40        "truth-prebuilt",
41        "ub-uiautomator",
42    ],
43    asset_dirs: ["src/androidTest/assets"],
44    test_suites: ["general-tests"],
45}
46
47android_library {
48    name: "platform-screenshot-diff-core",
49    manifest: "AndroidManifest.xml",
50    platform_apis: true,
51    lint: { test: true },
52    optimize: {
53        enabled: false
54    },
55    srcs: [
56        "src/main/java/platform/test/screenshot/**/*.java",
57        "src/main/java/platform/test/screenshot/**/*.kt",
58    ],
59    static_libs: [
60        "androidx.annotation_annotation",
61        "androidx.test.ext.junit",
62        "platform-screenshot-diff-proto",
63        "androidx.test.runner",
64        "androidx.test.espresso.core",
65        "androidx.appcompat_appcompat",
66        "guava",
67    ],
68}
69
70java_library {
71    name: "platform-screenshot-diff-proto",
72    srcs: [
73        "**/*.proto",
74    ],
75    optimize: {
76        enabled: false
77    }
78}
79