1// Copyright (C) 2024 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
15// Make test APK
16// ============================================================
17package {
18    default_team: "trendy_team_fwk_uwb",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22android_test {
23    name: "RangingRttBackendTests",
24
25    srcs: [
26        "**/*.java",
27    ],
28
29    dxflags: ["--multi-dex"],
30
31    java_version: "1.9",
32
33    static_libs: [
34        "androidx.test.rules",
35        "collector-device-lib",
36        "hamcrest-library",
37        "mockito-target-extended-minus-junit4",
38        "platform-test-annotations",
39        "frameworks-base-testutils",
40        "truth",
41        "guava",
42        "ranging_rtt_backend",
43    ],
44
45    libs: [
46        "android.test.runner.stubs.system",
47        "android.test.base.stubs.system",
48        "android.test.mock.stubs.system",
49        "framework-annotations-lib",
50    ],
51
52    jni_libs: [
53        // these are needed for Extended Mockito
54        "libdexmakerjvmtiagent",
55        "libstaticjvmtiagent",
56    ],
57    compile_multilib: "both",
58
59    min_sdk_version: "Tiramisu",
60
61    test_suites: [
62        "general-tests",
63    ],
64}
65