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