1// Copyright (C) 2019 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
16android_test_helper_app {
17    name: "TestAppAv1",
18    manifest: "testapp/Av1.xml",
19    sdk_version: "current",
20    srcs: ["testapp/src/**/*.java"],
21    resource_dirs: ["testapp/res_v1"],
22}
23
24android_test_helper_app {
25    name: "TestAppAv2",
26    manifest: "testapp/Av2.xml",
27    sdk_version: "current",
28    srcs: ["testapp/src/**/*.java"],
29    resource_dirs: ["testapp/res_v2"],
30}
31
32android_test_helper_app {
33    name: "TestAppAv3",
34    manifest: "testapp/Av3.xml",
35    sdk_version: "current",
36    srcs: ["testapp/src/**/*.java"],
37    resource_dirs: ["testapp/res_v3"],
38}
39
40android_test_helper_app {
41    name: "TestAppACrashingV2",
42    manifest: "testapp/ACrashingV2.xml",
43    sdk_version: "current",
44    srcs: ["testapp/src/**/*.java"],
45    resource_dirs: ["testapp/res_v2"],
46}
47
48android_test_helper_app {
49    name: "TestAppBv1",
50    manifest: "testapp/Bv1.xml",
51    sdk_version: "current",
52    srcs: ["testapp/src/**/*.java"],
53    resource_dirs: ["testapp/res_v1"],
54}
55
56android_test_helper_app {
57    name: "TestAppBv2",
58    manifest: "testapp/Bv2.xml",
59    sdk_version: "current",
60    srcs: ["testapp/src/**/*.java"],
61    resource_dirs: ["testapp/res_v2"],
62}
63
64android_test_helper_app {
65    name: "TestAppCv1",
66    manifest: "testapp/Cv1.xml",
67    sdk_version: "current",
68    srcs: ["testapp/src/**/*.java"],
69    resource_dirs: ["testapp/res_v1"],
70}
71
72android_test_helper_app {
73    name: "TestAppASplitV1",
74    manifest: "testapp/Av1.xml",
75    sdk_version: "current",
76    srcs: ["testapp/src/**/*.java"],
77    resource_dirs: ["testapp/res_v1"],
78    package_splits: ["anydpi"],
79}
80
81android_test_helper_app {
82    name: "TestAppASplitV2",
83    manifest: "testapp/Av2.xml",
84    sdk_version: "current",
85    srcs: ["testapp/src/**/*.java"],
86    resource_dirs: ["testapp/res_v2"],
87    package_splits: ["anydpi"],
88}
89
90java_library {
91    name: "cts-install-lib",
92    srcs: ["src/**/*.java"],
93    static_libs: ["androidx.test.rules", "truth-prebuilt"],
94    sdk_version: "test_current",
95    java_resources: [
96        ":TestAppAv1",
97        ":TestAppAv2",
98        ":TestAppAv3",
99        ":TestAppBv1",
100        ":TestAppBv2",
101        ":TestAppCv1",
102        ":TestAppACrashingV2",
103        ":TestAppASplitV1",
104        ":TestAppASplitV2",
105    ],
106}
107