1//
2// Copyright (C) 2023 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//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21aconfig_declarations {
22    name: "com.android.permission.flags-aconfig",
23    container: "com.android.permission",
24    package: "com.android.permission.flags",
25    exportable: true,
26    srcs: ["flags.aconfig"],
27}
28
29java_aconfig_library {
30    name: "com.android.permission.flags-aconfig-java-export",
31    aconfig_declarations: "com.android.permission.flags-aconfig",
32    mode: "exported",
33    sdk_version: "module_current",
34    min_sdk_version: "30",
35    installable: false,
36    libs: ["framework-configinfrastructure"],
37    visibility: [
38        "//packages/modules/Permission:__subpackages__",
39    ],
40    apex_available: [
41        "com.android.permission",
42        "test_com.android.permission",
43    ],
44}
45
46java_aconfig_library {
47    name: "com.android.permission.flags-aconfig-java",
48    aconfig_declarations: "com.android.permission.flags-aconfig",
49    sdk_version: "module_current",
50    min_sdk_version: "30",
51    installable: false,
52    libs: ["framework-configinfrastructure"],
53    visibility: [
54        "//packages/modules/Permission:__subpackages__",
55    ],
56    apex_available: [
57        "com.android.permission",
58        "test_com.android.permission",
59    ],
60}
61