• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2019 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: [
19        "packages_modules_Permission_PermissionController_license",
20    ],
21}
22
23// Added automatically by a large-scale-change
24// See: http://go/android-license-faq
25license {
26    name: "packages_modules_Permission_PermissionController_license",
27    visibility: [":__subpackages__"],
28    license_kinds: [
29        "SPDX-license-identifier-Apache-2.0",
30    ],
31    license_text: [
32        "NOTICE",
33    ],
34}
35
36genrule {
37    name: "statslog-permissioncontroller-java-gen",
38    tools: ["stats-log-api-gen"],
39    cmd: "$(location stats-log-api-gen) --java $(out) --module permissioncontroller" +
40         " --javaPackage com.android.permissioncontroller" +
41         " --javaClass PermissionControllerStatsLog --minApiLevel 29",
42    out: ["com/android/permissioncontroller/PermissionControllerStatsLog.java"],
43}
44
45java_library {
46    name: "permissioncontroller-statsd",
47    sdk_version: "system_current",
48
49    srcs: [
50        ":statslog-permissioncontroller-java-gen",
51    ],
52}
53
54// File to be included by permission controller app an mocking tests
55filegroup {
56    name: "permissioncontroller-sources",
57    srcs: [
58        "src/**/*.java",
59        "src/**/*.kt",
60        ":permissioncontroller-protos",
61    ],
62}
63
64filegroup {
65    name: "permissioncontroller-protos",
66    srcs: [
67        "src/**/*.proto",
68    ],
69}
70
71android_app {
72    name: "PermissionController",
73    sdk_version: "system_current",
74    target_sdk_version: "system_current",
75    min_sdk_version: "30",
76    updatable: true,
77    privileged: true,
78    certificate: "platform",
79    rename_resources_package: false,
80
81    srcs: [":permissioncontroller-sources"],
82
83    libs: ["android.car-stubs"],
84
85    static_libs: [
86        "iconloader",
87        "com.google.android.material_material",
88        "androidx.transition_transition",
89        "androidx-constraintlayout_constraintlayout",
90        "androidx.core_core",
91        "androidx.media_media",
92        "androidx.legacy_legacy-support-core-utils",
93        "androidx.legacy_legacy-support-core-ui",
94        "androidx.fragment_fragment",
95        "androidx.appcompat_appcompat",
96        "androidx.preference_preference",
97        "androidx.recyclerview_recyclerview",
98        "androidx.legacy_legacy-preference-v14",
99        "androidx.leanback_leanback",
100        "androidx.leanback_leanback-preference",
101        "androidx.lifecycle_lifecycle-extensions",
102        "androidx.lifecycle_lifecycle-common-java8",
103        "kotlin-stdlib",
104        "kotlinx-coroutines-android",
105        "androidx.navigation_navigation-common-ktx",
106        "androidx.navigation_navigation-fragment-ktx",
107        "androidx.navigation_navigation-runtime-ktx",
108        "androidx.navigation_navigation-ui-ktx",
109        "SettingsLibHelpUtils",
110        "SettingsLibRestrictedLockUtils",
111        "SettingsLibAppPreference",
112        "SettingsLibSearchWidget",
113        "SettingsLibLayoutPreference",
114        "SettingsLibBarChartPreference",
115        "SettingsLibActionBarShadow",
116        "SettingsLibProgressBar",
117        "SettingsLibCollapsingToolbarBaseActivity",
118        "SettingsLibSettingsTheme",
119        "SettingsLibFooterPreference",
120        "SettingsLibRadioButtonPreference",
121        "SettingsLibTwoTargetPreference",
122        "androidx.annotation_annotation",
123        "permissioncontroller-statsd",
124        "car-ui-lib",
125        "libprotobuf-java-lite",
126        "SettingsLibUtils",
127        "modules-utils-build_system",
128    ],
129
130    proto: {
131        type: "lite",
132    },
133
134    lint: {
135        strict_updatability_linting: true,
136    },
137
138    optimize: {
139        proguard_flags_files: ["proguard.flags"],
140    },
141
142    plugins: ["java_api_finder"],
143}
144