1// Copyright (C) 2016 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 15package { 16 default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_", 17 // See: http://go/android-license-faq 18 // A large-scale-change added 'default_applicable_licenses' to import 19 // all of the 'license_kinds' from "frameworks_base_packages_SystemUI_license" 20 // to get the below license kinds: 21 // SPDX-license-identifier-Apache-2.0 22 default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"], 23} 24 25java_library { 26 name: "SystemUIPluginLib", 27 srcs: [ 28 "bcsmartspace/src/**/*.java", 29 "bcsmartspace/src/**/*.kt", 30 "src/**/*.java", 31 "src/**/*.kt", 32 ], 33 exclude_srcs: [ 34 "src/**/PluginProtectorStub.kt", 35 ], 36 37 optimize: { 38 proguard_flags_files: [ 39 "proguard_plugins.flags", 40 ], 41 export_proguard_flags_files: true, 42 }, 43 44 plugins: ["PluginAnnotationProcessor"], 45 46 // If you add a static lib here, you may need to also add the package to the ClassLoaderFilter 47 // in PluginInstance. That will ensure that loaded plugins have access to the related classes. 48 // You should also add it to proguard_common.flags so that proguard does not remove the portions 49 // of the library which are used by the plugins but not by systemui itself. 50 static_libs: [ 51 "androidx.annotation_annotation", 52 "androidx-constraintlayout_constraintlayout", 53 "PlatformAnimationLib", 54 "PluginCoreLib", 55 "SystemUICommon", 56 "SystemUILogLib", 57 "androidx.annotation_annotation", 58 "androidx.compose.ui_ui", 59 "androidx.compose.runtime_runtime", 60 ], 61} 62 63android_app { 64 65 // Dummy to generate .toc files. 66 name: "PluginDummyLib", 67 use_resource_processor: true, 68 platform_apis: true, 69 srcs: ["src/**/*.java"], 70 71 libs: ["SystemUIPluginLib"], 72 73 optimize: { 74 enabled: false, 75 }, 76 77} 78