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_team: "trendy_team_enterprise", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_library_host { 21 name: "bedstead-core-annotations", 22 srcs: [ 23 "common/src/main/java/com/android/bedstead/harrier/AnnotationExecutor.java", 24 "common/src/main/java/com/android/bedstead/harrier/DeviceStateComponent.java", 25 "common/src/main/java/com/android/bedstead/harrier/annotations/UsesAnnotationExecutor.kt", 26 "common/src/main/java/com/android/bedstead/harrier/annotations/AnnotationPriorityRunPrecedence.java", 27 "common/src/main/java/com/android/bedstead/harrier/annotations/enterprise/DevicePolicyRelevant.java", 28 ], 29 30 libs: [ 31 "androidx.annotation_annotation", 32 ], 33 34 static_libs: [ 35 "NeneCommon", 36 ], 37 38 plugins: ["auto_annotation_plugin"], 39} 40 41android_library { 42 name: "HarrierCommonAndroid", 43 sdk_version: "current", 44 srcs: [ 45 "common/src/main/java/**/*.java", 46 "common/src/main/java/**/*.kt", 47 48 // TODO(329826539): Move this into a separate target 49 ":bedstead-permissions-common-srcs", 50 51 ":bedstead-enterprise-common-srcs", 52 ], 53 54 libs: [ 55 "androidx.annotation_annotation", 56 ], 57 58 static_libs: [ 59 "junit", 60 "auto_value_annotations", 61 "Nene", 62 "guava", 63 "NeneCommonAndroid", 64 "QueryableCommonAndroid", 65 "truth", 66 "flag-junit", 67 "device_policy_aconfig_flags_lib", 68 "TestApisReflection", 69 ], 70 71 manifest: "src/main/AndroidManifest.xml", 72 min_sdk_version: "29", 73 plugins: ["auto_annotation_plugin"], 74} 75 76android_library { 77 name: "Harrier", 78 sdk_version: "system_current", 79 80 srcs: [ 81 "src/main/java/**/*.java", 82 "src/main/java/**/*.kt", 83 // TODO(329826539): Move this into a separate target 84 ":bedstead-permissions-harrier-srcs", 85 86 //TODO(b/336991736) below lines are temporary for compatibility with other repositories 87 ":bedstead-enterprise-harrier-temporary-srcs", 88 89 //TODO(b/334025286) below filegroup is temporary until multiuser is fully decoupled 90 ":bedstead-multiuser-harrier-temporary-srcs", 91 ], 92 93 static_libs: [ 94 "Nene", 95 "RemoteDPC", 96 "RemoteAccountAuthenticator", 97 "HarrierCommonAndroid", 98 "compatibility-device-util-axt", 99 "androidx.test.ext.junit", 100 "auto_value_annotations", 101 "bedstead-root-annotations", 102 ], 103 104 manifest: "src/main/AndroidManifest.xml", 105 min_sdk_version: "29", 106 plugins: ["auto_annotation_plugin"], 107} 108 109android_test { 110 name: "HarrierTest", 111 srcs: [ 112 "src/test/java/**/*.java", 113 "src/test/java/**/*.kt", 114 "src/test/res/**/*.java", 115 "src/test/res/**/*.kt", 116 ], 117 test_suites: [ 118 "general-tests", 119 ], 120 static_libs: [ 121 "Nene", 122 "Harrier", 123 "androidx.test.ext.junit", 124 "ctstestrunner-axt", 125 "compatibility-device-util-axt", 126 "platform-test-annotations", 127 "truth", 128 "testng", // for assertThrows 129 ], 130 manifest: "src/test/AndroidManifest.xml", 131 min_sdk_version: "29", 132 sdk_version: "system_current", 133} 134