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