blob: a26cf123263667763e9bd7e5bc2329d80962b0d5 [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001// 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
Bob Badour8a6a2bc2021-02-12 17:07:05 -080015package {
Aditya Choudharyb4262272024-01-31 11:09:29 +000016 default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_",
Bob Badour8a6a2bc2021-02-12 17:07:05 -080017 // 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
Jason Monka2f2d822018-08-13 11:10:48 -040025java_library {
Jason Monka2f2d822018-08-13 11:10:48 -040026 name: "SystemUIPluginLib",
Andy Wickham64e34102021-03-07 16:02:01 -080027 srcs: [
Andy Wickham64e34102021-03-07 16:02:01 -080028 "bcsmartspace/src/**/*.java",
Liam, Lee Pong Lam509448e2023-01-06 01:30:12 +000029 "bcsmartspace/src/**/*.kt",
Yifei Zhangcedd4522023-10-31 11:21:32 -070030 "src/**/*.java",
31 "src/**/*.kt",
Andy Wickham64e34102021-03-07 16:02:01 -080032 ],
Jason Monka2f2d822018-08-13 11:10:48 -040033
Yifei Zhangcedd4522023-10-31 11:21:32 -070034 optimize: {
35 proguard_flags_files: [
36 "proguard_plugins.flags",
37 ],
38 export_proguard_flags_files: true,
39 },
40
Hawkwood Glazierbab76df2024-08-14 11:49:34 +000041 plugins: ["PluginAnnotationProcessor"],
42
Hawkwood Glazier1c8c7242023-04-28 19:14:53 +000043 // If you add a static lib here, you may need to also add the package to the ClassLoaderFilter
44 // in PluginInstance. That will ensure that loaded plugins have access to the related classes.
Hawkwood Glaziera3ebc6b2023-05-03 18:49:40 +000045 // You should also add it to proguard_common.flags so that proguard does not remove the portions
46 // of the library which are used by the plugins but not by systemui itself.
Tony Wickhamb4593f92018-10-04 10:45:42 -070047 static_libs: [
Jordan Demeulenaere2541d512021-04-20 13:54:31 +020048 "androidx.annotation_annotation",
Sherry Zhoud3a62b32023-10-04 04:27:33 +000049 "androidx-constraintlayout_constraintlayout",
Luca Zuccarini674ecf02023-12-20 15:51:55 +010050 "PlatformAnimationLib",
Dave Mankoff8012d7b2020-11-13 17:34:39 -050051 "PluginCoreLib",
Darrell Shi60006322023-04-06 17:58:40 +000052 "SystemUICommon",
Darrell Shi1a21b362023-04-28 19:51:44 +000053 "SystemUILogLib",
Yifei Zhangcedd4522023-10-31 11:21:32 -070054 "androidx.annotation_annotation",
Tony Wickhamb4593f92018-10-04 10:45:42 -070055 ],
Jason Monka2f2d822018-08-13 11:10:48 -040056}
57
58android_app {
59
60 // Dummy to generate .toc files.
61 name: "PluginDummyLib",
Peter Kalauskas84c5a992023-08-23 13:39:23 -070062 use_resource_processor: true,
Jason Monka2f2d822018-08-13 11:10:48 -040063 platform_apis: true,
64 srcs: ["src/**/*.java"],
65
66 libs: ["SystemUIPluginLib"],
67
68 optimize: {
69 enabled: false,
70 },
71
72}