1//
2// Copyright (C) 2022 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//
16package {
17    default_team: "trendy_team_android_permissions",
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21android_library {
22    name: "safety-center-test-util-lib",
23    sdk_version: "test_current",
24    min_sdk_version: "29",
25    srcs: [
26        "java/**/*.kt",
27    ],
28    static_libs: [
29        "androidx.test.core",
30        "compatibility-device-util-axt",
31        // NOTE: when importing this library in a test you may have to add the following option to
32        // the test element of your AndroidTest.xml file in order to ignore guava tests:
33        // <option name="exclude-annotation" value="org.junit.Ignore"/>
34        "guava-android",
35        "guava-android-testlib",
36        "kotlinx-coroutines-android",
37        "safety-center-internal-data",
38        "safety-center-resources-lib",
39        // TODO(b/326414126): aconfig: support multi-container library
40        "com.android.permission.flags-aconfig-java",
41    ],
42    apex_available: [
43        "com.android.permission",
44        "test_com.android.permission",
45    ],
46    installable: false,
47    visibility: [
48        "//packages/modules/Permission:__subpackages__",
49        "//vendor:__subpackages__",
50    ],
51}
52