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
15package {
16    default_team: "trendy_team_updatable_sdk_apis",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18    default_visibility: ["//packages/modules/SdkExtensions/javatests:__subpackages__"],
19}
20
21java_sdk_library {
22    name: "test_framework-sdkextensions",
23    defaults: ["framework-module-defaults"],
24    srcs: ["Test.java"],
25    permitted_packages: ["android.os.ext.testing"],
26    min_sdk_version: "30",
27    apex_available: [
28        "test_com.android.sdkext",
29    ],
30    impl_library_visibility: [
31        "//packages/modules/SdkExtensions/javatests/com/android/sdkext:__subpackages__",
32    ],
33    lint: {
34        strict_updatability_linting: true,
35    },
36
37    // Test only SDK, don't check against released APIs.
38    unsafe_ignore_missing_latest_api: true,
39
40    // Output the api files to a special directory that won't trigger an API
41    // review as it is a test only API.
42    api_dir: "apis_for_tests",
43
44    // Testing only.
45    no_dist: true,
46}
47