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
15filegroup {
16    name: "framework-sdkextensions-sources",
17    srcs: [
18        "java/**/*.java",
19    ],
20    path: "java",
21    visibility: [
22        "//frameworks/base",  // For the "global" stubs.
23        "//packages/modules/SdkExtensions:__subpackages__",
24    ],
25}
26
27java_sdk_library {
28    name: "framework-sdkextensions",
29    srcs: [ ":framework-sdkextensions-sources" ],
30    defaults: ["framework-module-defaults"],
31
32    permitted_packages: [ "android.os.ext" ],
33    installable: true,
34    hostdex: true, // for hiddenapi check
35    apex_available: [
36        "com.android.sdkext",
37        "test_com.android.sdkext",
38    ],
39}
40