1// Copyright (C) 2018 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 19 20// TODO(276742331): Restore host/device separation 21java_library_host { 22 name: "HarrierCommon", 23 srcs: [ 24 "common/src/main/java/**/*.java", 25 ], 26 27 static_libs: [ 28 "junit", 29 "auto_value_annotations", 30 "guava", 31 "NeneCommon", 32 "QueryableCommon", 33 "truth-prebuilt", 34 ], 35 36 plugins: ["auto_annotation_plugin"], 37} 38 39android_library { 40 name: "HarrierCommonAndroid", 41 srcs: [ 42 "common/src/main/java/**/*.java", 43 ], 44 45 static_libs: [ 46 "junit", 47 "auto_value_annotations", 48 "guava", 49 "NeneCommonAndroid", 50 "QueryableCommonAndroid", 51 "truth-prebuilt", 52 ], 53 54 manifest: "src/main/AndroidManifest.xml", 55 min_sdk_version: "29", 56 plugins: ["auto_annotation_plugin"], 57} 58 59android_library { 60 name: "Harrier", 61 sdk_version: "test_current", 62 63 srcs: [ 64 "src/main/java/**/*.java", 65 ], 66 67 static_libs: [ 68 "Nene", 69 "RemoteDPC", 70 "RemoteAccountAuthenticator", 71 "HarrierCommonAndroid", 72 "compatibility-device-util-axt", 73 "androidx.test.ext.junit", 74 "auto_value_annotations", 75 ], 76 77 manifest: "src/main/AndroidManifest.xml", 78 min_sdk_version: "29", 79 plugins: ["auto_annotation_plugin"], 80} 81 82android_test { 83 name: "HarrierTest", 84 srcs: [ 85 "src/test/java/**/*.java", 86 ], 87 test_suites: [ 88 "general-tests", 89 ], 90 static_libs: [ 91 "Nene", 92 "Harrier", 93 "androidx.test.ext.junit", 94 "ctstestrunner-axt", 95 "compatibility-device-util-axt", 96 "platform-test-annotations", 97 "truth-prebuilt", 98 "testng", // for assertThrows 99 ], 100 manifest: "src/test/AndroidManifest.xml", 101 min_sdk_version: "29", 102 sdk_version: "test_current", 103} 104