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