blob: 8b03da3a9530c7b12f9bc29c1701b36009556bef [file] [log] [blame]
Hai Zhang36fd6402020-01-14 21:56:34 -08001// Copyright (C) 2020 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-permission-sources",
17 srcs: [
18 "java/**/*.java",
19 "java/**/*.aidl",
20 ],
21 path: "java",
22}
23
24java_library {
25 name: "framework-permission",
26 srcs: [
27 ":framework-permission-sources",
28 ],
29 sdk_version: "system_current",
30 apex_available: [
31 "com.android.permission",
32 "test_com.android.permission",
33 ],
34 hostdex: true,
35 installable: true,
36 visibility: [
37 "//frameworks/base/apex/permission:__subpackages__",
38 ],
39}
40
41droidstubs {
42 name: "framework-permission-stubs-sources",
43 srcs: [
44 ":framework-annotations",
45 ":framework-permission-sources",
46 ],
47 sdk_version: "system_current",
48 defaults: [
49 "framework-module-stubs-defaults-systemapi",
50 ],
51}
52
53java_library {
54 name: "framework-permission-stubs",
55 srcs: [
56 ":framework-permission-stubs-sources",
57 ],
58 sdk_version: "system_current",
59 installable: false,
60}