• 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/**/*.kt"
29    ],
30    static_libs: [
31        "androidx.test.core",
32        "androidx.test.ext.junit",
33        "androidx.test.runner",
34        "androidx.test.rules",
35        "launcher-helper-lib",
36        "metrics-helper-lib",
37        "platform-screenshot-diff-core",
38        "platform-test-annotations",
39        "truth-prebuilt",
40        "ub-uiautomator",
41    ],
42    asset_dirs: ["src/androidTest/assets"],
43    test_suites: ["general-tests"],
44}
45
46android_library {
47    name: "platform-screenshot-diff-core",
48    manifest: "AndroidManifest.xml",
49    platform_apis: true,
50    optimize: {
51        enabled: false
52    },
53    srcs: [
54        "src/main/java/platform/test/screenshot/**/*.kt",
55    ],
56    static_libs: [
57        "androidx.annotation_annotation",
58	"androidx.test.ext.junit",
59        "platform-screenshot-diff-proto",
60        "androidx.test.runner",
61    ],
62}
63
64java_library {
65    name: "platform-screenshot-diff-proto",
66    srcs: [
67        "**/*.proto",
68    ],
69    optimize: {
70        enabled: false
71    }
72}
73