Philip P. Moltmann | 7c0b58f | 2019-04-11 14:39:13 -0700 | [diff] [blame] | 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 | |
Philip P. Moltmann | 12020af | 2019-04-10 14:50:22 -0700 | [diff] [blame] | 17 | genrule { |
| 18 | name: "statslog-permissioncontroller-java-gen", |
| 19 | tools: ["stats-log-api-gen"], |
| 20 | cmd: "$(location stats-log-api-gen) --java $(out) --module permissioncontroller --javaPackage com.android.packageinstaller --javaClass PermissionControllerStatsLog", |
| 21 | out: ["com/android/packageinstaller/PermissionControllerStatsLog.java"], |
| 22 | } |
| 23 | |
| 24 | java_library { |
| 25 | name: "permissioncontroller-statsd", |
| 26 | sdk_version: "system_current", |
| 27 | |
| 28 | srcs: [ |
| 29 | ":statslog-permissioncontroller-java-gen", |
| 30 | ], |
| 31 | } |
Philip P. Moltmann | 7c0b58f | 2019-04-11 14:39:13 -0700 | [diff] [blame] | 32 | |
| 33 | android_app { |
| 34 | name: "PermissionController", |
| 35 | sdk_version: "system_current", |
| 36 | min_sdk_version: "28", |
| 37 | privileged: true, |
| 38 | certificate: "platform", |
| 39 | |
| 40 | srcs: [ |
| 41 | "src/**/*.java", |
| 42 | "src/**/*.proto", |
| 43 | ], |
| 44 | |
| 45 | static_libs: [ |
| 46 | "iconloader", |
Philip P. Moltmann | 7c0b58f | 2019-04-11 14:39:13 -0700 | [diff] [blame] | 47 | "com.google.android.material_material", |
| 48 | "androidx.transition_transition", |
Heemin Seog | 78dd1ef | 2019-05-20 17:39:46 -0700 | [diff] [blame] | 49 | "androidx-constraintlayout_constraintlayout", |
Philip P. Moltmann | 7c0b58f | 2019-04-11 14:39:13 -0700 | [diff] [blame] | 50 | "androidx.core_core", |
| 51 | "androidx.media_media", |
| 52 | "androidx.legacy_legacy-support-core-utils", |
| 53 | "androidx.legacy_legacy-support-core-ui", |
| 54 | "androidx.fragment_fragment", |
| 55 | "androidx.appcompat_appcompat", |
| 56 | "androidx.preference_preference", |
| 57 | "androidx.recyclerview_recyclerview", |
| 58 | "androidx.legacy_legacy-preference-v14", |
| 59 | "androidx.leanback_leanback", |
| 60 | "androidx.leanback_leanback-preference", |
| 61 | "androidx.lifecycle_lifecycle-extensions", |
| 62 | "androidx.lifecycle_lifecycle-common-java8", |
| 63 | "SettingsLibHelpUtils", |
| 64 | "SettingsLibRestrictedLockUtils", |
| 65 | "SettingsLibAppPreference", |
| 66 | "SettingsLibSearchWidget", |
| 67 | "SettingsLibLayoutPreference", |
| 68 | "SettingsLibBarChartPreference", |
| 69 | "SettingsLibActionBarShadow", |
| 70 | "SettingsLibProgressBar", |
| 71 | "androidx.annotation_annotation", |
Philip P. Moltmann | 12020af | 2019-04-10 14:50:22 -0700 | [diff] [blame] | 72 | "permissioncontroller-statsd" |
Philip P. Moltmann | 7c0b58f | 2019-04-11 14:39:13 -0700 | [diff] [blame] | 73 | ], |
| 74 | |
| 75 | proto: { |
| 76 | type: "lite", |
| 77 | }, |
| 78 | |
| 79 | optimize: { |
| 80 | proguard_flags_files: ["proguard.flags"], |
| 81 | }, |
Kun Niu | f582588 | 2019-07-01 18:15:37 -0700 | [diff] [blame] | 82 | |
| 83 | plugins: ["java_api_finder"], |
Philip P. Moltmann | 7c0b58f | 2019-04-11 14:39:13 -0700 | [diff] [blame] | 84 | } |