xref: /aosp_15_r20/external/android-key-attestation/Android.bp (revision 7ca207924212edeca68cc84bb4fcd356338eb385)
1//
2// Copyright (C) 2023 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_visibility: ["//visibility:private"],
19    default_applicable_licenses: ["external_android-key-attestation_license"],
20}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25    name: "external_android-key-attestation_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-Apache-2.0",
29    ],
30    license_text: [
31        "LICENSE",
32    ],
33}
34
35java_library_static {
36    name: "android-key-attestation",
37    visibility: [
38        "//cts/tests/tests/keystore",
39        "//cts/common/device-side/device-info",
40        "//packages/apps/DeviceDiagnostics/app/src/main",
41        "//packages/apps/DeviceDiagnostics/DeviceDiagnosticsLib/src/main",
42    ],
43    min_sdk_version: "31",
44    dxflags: ["--multi-dex"],
45    srcs: ["server/src/main/java/**/*.java"],
46    exclude_srcs: ["server/src/main/java/**/KeyAttestationExample.java"],
47    sdk_version: "current",
48    static_libs: [
49        "bouncycastle-unbundled",
50        "error_prone_annotations",
51        "guava",
52    ],
53    libs: [
54        "gson",
55    ],
56}
57