| // | |
| // Copyright (C) 2023 The Android Open Source Project | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| // See the License for the specific language governing permissions and | |
| // limitations under the License. | |
| // | |
| package { | |
| default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_", | |
| default_applicable_licenses: ["Android-Apache-2.0"], | |
| } | |
| android_library { | |
| name: "AccessibilityMenuSource", | |
| strict_deps: "error", | |
| srcs: [ | |
| "src/**/*.java", | |
| "src/**/*.kt", | |
| ], | |
| resource_dirs: ["res"], | |
| use_resource_processor: true, | |
| flags_packages: ["android.view.accessibility.flags-aconfig"], | |
| // Required to invoke hidden telemetry APIs in AccessibilityInteractionClient | |
| platform_apis: true, | |
| kotlincflags: ["-Xjvm-default=all"], | |
| static_libs: [ | |
| "androidx.activity_activity", | |
| "androidx.annotation_annotation", | |
| "androidx.coordinatorlayout_coordinatorlayout", | |
| "androidx.core_core", | |
| "androidx.fragment_fragment", | |
| "androidx.lifecycle_lifecycle-common", | |
| "androidx.lifecycle_lifecycle-viewmodel", | |
| "androidx.navigationevent_navigationevent", | |
| "androidx.preference_preference", | |
| "androidx.recyclerview_recyclerview", | |
| "androidx.savedstate_savedstate", | |
| "androidx.viewpager2_viewpager2", | |
| "com_android_systemui_flags_lib", | |
| "kotlinx_coroutines", | |
| "kotlinx_coroutines_android", | |
| "SettingsLibCollapsingToolbarBaseActivity", | |
| "SettingsLibDataStore", | |
| "SettingsLibDisplayUtils", | |
| "SettingsLibIpc", | |
| "SettingsLibMetadata", | |
| "SettingsLibPreference", | |
| "SettingsLibService", | |
| "SettingsLibSettingsTheme", | |
| "SystemUI-shared-utils", | |
| "//frameworks/libs/systemui:view_capture", | |
| ], | |
| optimize: { | |
| enabled: true, | |
| optimize: true, | |
| shrink: true, | |
| shrink_resources: true, | |
| }, | |
| } | |
| android_app { | |
| name: "AccessibilityMenu", | |
| use_resource_processor: true, | |
| static_libs: [ | |
| "AccessibilityMenuSource", | |
| ], | |
| optimize: { | |
| enabled: true, | |
| optimize: true, | |
| shrink: true, | |
| shrink_resources: true, | |
| }, | |
| libs: ["org.apache.http.legacy.stubs"], | |
| uses_libs: [ | |
| "org.apache.http.legacy", | |
| ], | |
| kotlincflags: ["-Xjvm-default=all"], | |
| system_ext_specific: true, | |
| platform_apis: true, | |
| certificate: "platform", | |
| } |