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