1//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_team: "trendy_team_framework_android_packages",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22TARGET_TEST_SUITES = [
23    "cts",
24    "general-tests",
25]
26
27android_test_helper_app {
28    name: "CtsIsolatedSplitApp",
29    defaults: ["cts_support_defaults"],
30    test_suites: TARGET_TEST_SUITES,
31    sdk_version: "current",
32    // Feature splits are dependent on this base, so it must be exported.
33    export_package_resources: true,
34    // Make sure our test locale polish is not stripped.
35    aapt_include_all_resources: true,
36    static_libs: [
37        "ctstestrunner-axt",
38        "androidx.test.rules",
39        "truth",
40    ],
41    srcs: ["src/**/*.java"],
42    // Generate a locale split.
43    package_splits: ["pl"],
44    use_embedded_native_libs: true, // default is true, android:extractNativeLibs="false"
45}
46
47android_test_helper_app {
48    name: "CtsIsolatedSplitAppExtractNativeLibsTrue",
49    defaults: ["cts_support_defaults"],
50    test_suites: TARGET_TEST_SUITES,
51    sdk_version: "current",
52    // Feature splits are dependent on this base, so it must be exported.
53    export_package_resources: true,
54    // Make sure our test locale polish is not stripped.
55    aapt_include_all_resources: true,
56    static_libs: [
57        "ctstestrunner-axt",
58        "androidx.test.rules",
59        "truth",
60    ],
61    srcs: ["src/**/*.java"],
62    // Generate a locale split.
63    package_splits: ["pl"],
64    use_embedded_native_libs: false, // android:extractNativeLibs="true"
65}
66