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
15package {
16    default_team: "trendy_team_launcher",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_library {
21    name: "view_capture_proto",
22    srcs: ["src/com/android/app/viewcapture/proto/*.proto"],
23    proto: {
24        type: "lite",
25        local_include_dirs: [
26            "src/com/android/app/viewcapture/proto",
27        ],
28    },
29    static_libs: ["libprotobuf-java-lite"],
30    java_version: "1.8",
31}
32
33android_library {
34    name: "view_capture",
35    manifest: "AndroidManifest.xml",
36    platform_apis: true,
37    min_sdk_version: "30",
38
39    static_libs: [
40        "androidx.core_core",
41        "view_capture_proto",
42    ],
43
44    srcs: [
45        "src/**/*.java",
46        "src/**/*.kt",
47    ],
48}
49
50android_test {
51    name: "view_capture_tests",
52    manifest: "tests/AndroidManifest.xml",
53    platform_apis: true,
54    min_sdk_version: "30",
55
56    static_libs: [
57        "androidx.core_core",
58        "view_capture",
59        "androidx.test.ext.junit",
60        "androidx.test.rules",
61        "testables",
62        "mockito-kotlin2",
63        "mockito-target-extended-minus-junit4",
64    ],
65    srcs: [
66        "**/*.java",
67        "**/*.kt",
68    ],
69    libs: [
70        "android.test.runner.stubs.system",
71        "android.test.base.stubs.system",
72        "android.test.mock.stubs.system",
73    ],
74    jni_libs: [
75        "libdexmakerjvmtiagent",
76    ],
77    test_suites: ["device-tests"],
78}
79