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
19java_defaults {
20    name: "compatibility-device-util-axt-default",
21    sdk_version: "test_current",
22    min_sdk_version: "21",
23    dxflags: ["--multi-dex"],
24
25    srcs: [
26        "src/**/*.java",
27        "src/**/*.kt",
28        "src/**/*.aidl",
29    ],
30
31    static_libs: [
32        "compatibility-common-util-devicesidelib",
33        "androidx.test.rules",
34        "androidx.test.ext.junit",
35        "ub-uiautomator",
36        "androidx.annotation_annotation",
37        "androidx.test.uiautomator_uiautomator",
38        "error_prone_annotations",
39        "truth",
40        "modules-utils-build_system",
41        "android.os.flags-aconfig-java",
42        "flag-junit",
43    ],
44
45    libs: [
46        "android.test.runner.stubs",
47        "android.test.base.stubs",
48    ],
49
50    jarjar_rules: "protobuf-jarjar-rules.txt",
51}
52
53java_library_static {
54    name: "compatibility-device-util-axt",
55    defaults: ["compatibility-device-util-axt-default"],
56    static_libs: [
57        "mockito-target-minus-junit4",
58    ],
59    lint: {
60        baseline_filename: "lint-baseline.xml",
61    },
62}
63
64// This target can be used with ExtendedMockito
65java_library {
66    name: "compatibility-device-util-axt-minus-dexmaker",
67    defaults: ["compatibility-device-util-axt-default"],
68    static_libs: [
69        "mockito",
70    ],
71    lint: {
72        baseline_filename: "lint-baseline.xml",
73    },
74}
75
76filegroup {
77    name: "compatibility-device-util-nodeps",
78    srcs: [
79        "src/com/android/compatibility/common/util/IBinderParcelable.java",
80    ],
81}
82