xref: /aosp_15_r20/prebuilts/misc/common/android-support-test/Android.bp (revision 847dbab7980efcc7f5706bb9c6d844b91a680afd)
1// Copyright (C) 2016 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// DEPRECATED! Use androidx-test libraries instead
16
17// Lock down visibility to prevent new usages
18// This library cannot removed entirely yet because there are
19// usages in Android.mk that cannot be eliminated quit yet. See b/172831930
20package {
21    default_visibility: [
22        "//visibility:private",
23    ],
24}
25
26// for Android JUnit runner, monitor and rules
27java_library_static {
28    name: "android-support-test",
29    sdk_version: "15",
30    licenses: ["Android-Apache-2.0"],
31    static_libs: [
32        "android-support-test-rules-nodep",
33        "android-support-test-runner-nodep",
34        "junit",
35        "hamcrest",
36        "hamcrest-library",
37        "android-support-annotations",
38        "android-support-test-monitor-nodep",
39    ],
40    visibility: ["//visibility:public"],
41}
42
43java_library_static {
44    name: "android-support-test-nodep",
45    sdk_version: "23",
46    licenses: ["Android-Apache-2.0"],
47    static_libs: [
48        "android-support-test-rules-nodep",
49        "android-support-test-runner-nodep",
50        "android-support-test-monitor-nodep",
51    ],
52}
53
54java_import {
55    name: "android-support-test-rules-nodep",
56    jars: ["rules/rules_release_no_deps.jar"],
57    sdk_version: "15",
58    licenses: ["Android-Apache-2.0"],
59}
60
61java_import {
62    name: "android-support-test-runner-nodep",
63    jars: ["runner/runner_release_no_deps.jar"],
64    sdk_version: "15",
65    licenses: ["Android-Apache-2.0"],
66}
67
68java_import {
69    name: "android-support-test-monitor-nodep",
70    jars: ["monitor/monitor_release_no_deps.jar"],
71    sdk_version: "15",
72    licenses: ["Android-Apache-2.0"],
73}
74
75// for espresso-core
76java_library_static {
77    name: "espresso-core",
78    sdk_version: "15",
79    licenses: ["Android-Apache-2.0"],
80    static_libs: [
81        "espresso-core-nodep",
82        "espresso-idling-resource-nodep",
83        "android-support-test-rules-nodep",
84        "android-support-test-runner-nodep",
85        "android-support-test-monitor-nodep",
86        "junit",
87        "hamcrest",
88        "hamcrest-library",
89        "android-support-annotations",
90        "jsr330",
91    ],
92}
93
94java_import {
95    name: "espresso-core-nodep",
96    jars: ["espresso/espresso_core_release_no_deps.jar"],
97    sdk_version: "15",
98    licenses: ["Android-Apache-2.0"],
99}
100
101// for espresso-contrib
102java_library_static {
103    name: "espresso-contrib",
104    sdk_version: "15",
105    licenses: ["Android-Apache-2.0"],
106    static_libs: [
107        "espresso-core",
108        "android-support-design",
109        "android-support-v7-recyclerview",
110        "android-support-v4",
111    ],
112}
113
114java_import {
115    name: "espresso-contrib-nodep",
116    jars: ["espresso/espresso_contrib_release_no_deps.jar"],
117    sdk_version: "15",
118    licenses: ["Android-Apache-2.0"],
119}
120
121// for espresso-idling-resource
122java_import {
123    name: "espresso-idling-resource-nodep",
124    jars: ["espresso/espresso_idling_resource_release_no_deps.jar"],
125    sdk_version: "15",
126    licenses: ["Android-Apache-2.0"],
127}
128
129// for espresso-intents
130java_library_static {
131    name: "espresso-intents",
132    sdk_version: "15",
133    licenses: ["Android-Apache-2.0"],
134    static_libs: [
135        "espresso-intents-nodep",
136        "espresso-core",
137        "android-support-test-rules-nodep",
138    ],
139}
140
141java_import {
142    name: "espresso-intents-nodep",
143    jars: ["espresso/espresso_intents_release_no_deps.jar"],
144    sdk_version: "15",
145    licenses: ["Android-Apache-2.0"],
146}
147
148// for espresso-web
149java_library_static {
150    name: "espresso-web",
151    sdk_version: "15",
152    licenses: ["Android-Apache-2.0"],
153    static_libs: [
154        "espresso-core",
155        "android-support-annotations",
156        "tagsoup",
157    ],
158}
159
160java_import {
161    name: "espresso-web-nodep",
162    jars: ["espresso/espresso_web_release_no_deps.jar"],
163    sdk_version: "15",
164    licenses: ["Android-Apache-2.0"],
165}
166