1// Copyright (C) 2008 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
19android_test_helper_app {
20    name: "CtsAppTestStubs",
21    defaults: ["cts_support_defaults"],
22    libs: [
23        "android.test.runner",
24        "telephony-common",
25        "voip-common",
26        "org.apache.http.legacy",
27        "android.test.base",
28    ],
29    static_libs: [
30        "compatibility-device-util-axt",
31        "ctstestrunner-axt",
32        "ctstestserver",
33        "mockito-target-minus-junit4",
34        "androidx.legacy_legacy-support-v4",
35        "androidx.test.core",
36        "testng",
37        "CtsAppTestStubsShared",
38    ],
39    srcs: [
40        "src/**/*.java",
41        "src/**/*.kt",
42        "src/android/app/stubs/ISecondary.aidl",
43    ],
44    // Tag this module as a cts test artifact
45    test_suites: [
46        "cts",
47        "general-tests",
48        "sts",
49    ],
50    additional_manifests: ["ProviderAndroidManifest.xml"],
51    platform_apis: true,
52}
53
54android_test_helper_app {
55    name: "CtsAppTestStubsApp1",
56    defaults: ["cts_support_defaults"],
57    libs: [
58        "android.test.runner",
59        "telephony-common",
60        "voip-common",
61        "org.apache.http.legacy",
62        "android.test.base",
63    ],
64    static_libs: [
65        "compatibility-device-util-axt",
66        "ctstestrunner-axt",
67        "ctstestserver",
68        "mockito-target-minus-junit4",
69        "androidx.legacy_legacy-support-v4",
70        "androidx.test.core",
71        "CtsAppTestStubsShared",
72    ],
73    srcs: [
74        "src/**/*.java",
75        "src/android/app/stubs/ISecondary.aidl",
76    ],
77    // Tag this module as a cts test artifact
78    test_suites: [
79        "cts",
80        "general-tests",
81        "sts",
82    ],
83    platform_apis: true,
84    aaptflags: [
85        "--rename-manifest-package com.android.app1",
86    ],
87}
88
89android_test {
90    name: "CtsAppTestStubsApp2",
91    defaults: ["cts_support_defaults"],
92    libs: [
93        "android.test.runner",
94        "telephony-common",
95        "voip-common",
96        "org.apache.http.legacy",
97        "android.test.base",
98    ],
99    static_libs: [
100        "compatibility-device-util-axt",
101        "ctstestrunner-axt",
102        "ctstestserver",
103        "mockito-target-minus-junit4",
104        "androidx.legacy_legacy-support-v4",
105        "androidx.test.core",
106        "CtsAppTestStubsShared",
107    ],
108    srcs: [
109        "src/**/*.java",
110        "src/android/app/stubs/ISecondary.aidl",
111    ],
112    // Tag this module as a cts test artifact
113    test_suites: [
114        "cts",
115        "general-tests",
116        "sts",
117    ],
118    platform_apis: true,
119    aaptflags: [
120        "--rename-manifest-package com.android.app2",
121    ],
122}
123
124android_test_helper_app {
125    name: "CtsAppTestStubsApp3",
126    defaults: ["cts_support_defaults"],
127    libs: [
128        "android.test.runner",
129        "telephony-common",
130        "voip-common",
131        "org.apache.http.legacy",
132        "android.test.base",
133    ],
134    static_libs: [
135        "compatibility-device-util-axt",
136        "ctstestrunner-axt",
137        "ctstestserver",
138        "mockito-target-minus-junit4",
139        "androidx.legacy_legacy-support-v4",
140        "androidx.test.core",
141        "CtsAppTestStubsShared",
142    ],
143    srcs: [
144        "src/**/*.java",
145        "src/android/app/stubs/ISecondary.aidl",
146    ],
147    // Tag this module as a cts test artifact
148    test_suites: [
149        "cts",
150        "general-tests",
151        "sts",
152    ],
153    platform_apis: true,
154    aaptflags: [
155        "--rename-manifest-package com.android.app3",
156    ],
157}
158
159android_test_helper_app {
160    name: "CtsAppTestStubsApi30",
161    defaults: ["cts_support_defaults"],
162    libs: [
163        "android.test.runner",
164        "telephony-common",
165        "voip-common",
166        "org.apache.http.legacy",
167        "android.test.base",
168    ],
169    static_libs: [
170        "compatibility-device-util-axt",
171        "ctstestrunner-axt",
172        "ctstestserver",
173        "mockito-target-minus-junit4",
174        "androidx.legacy_legacy-support-v4",
175        "androidx.test.core",
176        "CtsAppTestStubsShared",
177    ],
178    srcs: [
179        "src/**/*.java",
180        "src/android/app/stubs/ISecondary.aidl",
181    ],
182    // Tag this module as a cts test artifact
183    test_suites: [
184        "cts",
185        "general-tests",
186        "sts",
187    ],
188    platform_apis: true,
189    target_sdk_version: "30",
190    aaptflags: [
191        "--rename-manifest-package com.android.app4",
192        "--debug-mode",
193    ],
194}
195