blob: 0537f17b359423236186bc40e6f16f3b831afb5a [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 {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_base_packages_SystemUI_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
22}
23
Jason Monka2f2d822018-08-13 11:10:48 -040024java_library {
25
26 name: "SystemUIPluginLib",
27
Andy Wickham64e34102021-03-07 16:02:01 -080028 srcs: [
Andy Wickham64e34102021-03-07 16:02:01 -080029 "bcsmartspace/src/**/*.java",
Liam, Lee Pong Lam509448e2023-01-06 01:30:12 +000030 "bcsmartspace/src/**/*.kt",
Yifei Zhangcedd4522023-10-31 11:21:32 -070031 "src/**/*.java",
32 "src/**/*.kt",
Andy Wickham64e34102021-03-07 16:02:01 -080033 ],
Jason Monka2f2d822018-08-13 11:10:48 -040034
Yifei Zhangcedd4522023-10-31 11:21:32 -070035 optimize: {
36 proguard_flags_files: [
37 "proguard_plugins.flags",
38 ],
39 export_proguard_flags_files: true,
40 },
41
Hawkwood Glazier1c8c7242023-04-28 19:14:53 +000042 // If you add a static lib here, you may need to also add the package to the ClassLoaderFilter
43 // in PluginInstance. That will ensure that loaded plugins have access to the related classes.
Hawkwood Glaziera3ebc6b2023-05-03 18:49:40 +000044 // You should also add it to proguard_common.flags so that proguard does not remove the portions
45 // of the library which are used by the plugins but not by systemui itself.
Tony Wickhamb4593f92018-10-04 10:45:42 -070046 static_libs: [
Jordan Demeulenaere2541d512021-04-20 13:54:31 +020047 "androidx.annotation_annotation",
Sherry Zhoud3a62b32023-10-04 04:27:33 +000048 "androidx-constraintlayout_constraintlayout",
Dave Mankoff8012d7b2020-11-13 17:34:39 -050049 "PluginCoreLib",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +020050 "SystemUIAnimationLib",
Darrell Shi60006322023-04-06 17:58:40 +000051 "SystemUICommon",
Darrell Shi1a21b362023-04-28 19:51:44 +000052 "SystemUILogLib",
Yifei Zhangcedd4522023-10-31 11:21:32 -070053 "androidx.annotation_annotation",
Tony Wickhamb4593f92018-10-04 10:45:42 -070054 ],
Jason Monka2f2d822018-08-13 11:10:48 -040055
56}
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}