Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 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 | |
Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 15 | package { |
Aditya Choudhary | b426227 | 2024-01-31 11:09:29 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_", |
Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 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 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 25 | java_library { |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 26 | name: "SystemUIPluginLib", |
Andy Wickham | 64e3410 | 2021-03-07 16:02:01 -0800 | [diff] [blame] | 27 | srcs: [ |
Andy Wickham | 64e3410 | 2021-03-07 16:02:01 -0800 | [diff] [blame] | 28 | "bcsmartspace/src/**/*.java", |
Liam, Lee Pong Lam | 509448e | 2023-01-06 01:30:12 +0000 | [diff] [blame] | 29 | "bcsmartspace/src/**/*.kt", |
Yifei Zhang | cedd452 | 2023-10-31 11:21:32 -0700 | [diff] [blame] | 30 | "src/**/*.java", |
| 31 | "src/**/*.kt", |
Andy Wickham | 64e3410 | 2021-03-07 16:02:01 -0800 | [diff] [blame] | 32 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 33 | |
Yifei Zhang | cedd452 | 2023-10-31 11:21:32 -0700 | [diff] [blame] | 34 | optimize: { |
| 35 | proguard_flags_files: [ |
| 36 | "proguard_plugins.flags", |
| 37 | ], |
| 38 | export_proguard_flags_files: true, |
| 39 | }, |
| 40 | |
Hawkwood Glazier | bab76df | 2024-08-14 11:49:34 +0000 | [diff] [blame^] | 41 | plugins: ["PluginAnnotationProcessor"], |
| 42 | |
Hawkwood Glazier | 1c8c724 | 2023-04-28 19:14:53 +0000 | [diff] [blame] | 43 | // 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 Glazier | a3ebc6b | 2023-05-03 18:49:40 +0000 | [diff] [blame] | 45 | // 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 Wickham | b4593f9 | 2018-10-04 10:45:42 -0700 | [diff] [blame] | 47 | static_libs: [ |
Jordan Demeulenaere | 2541d51 | 2021-04-20 13:54:31 +0200 | [diff] [blame] | 48 | "androidx.annotation_annotation", |
Sherry Zhou | d3a62b3 | 2023-10-04 04:27:33 +0000 | [diff] [blame] | 49 | "androidx-constraintlayout_constraintlayout", |
Luca Zuccarini | 674ecf0 | 2023-12-20 15:51:55 +0100 | [diff] [blame] | 50 | "PlatformAnimationLib", |
Dave Mankoff | 8012d7b | 2020-11-13 17:34:39 -0500 | [diff] [blame] | 51 | "PluginCoreLib", |
Darrell Shi | 6000632 | 2023-04-06 17:58:40 +0000 | [diff] [blame] | 52 | "SystemUICommon", |
Darrell Shi | 1a21b36 | 2023-04-28 19:51:44 +0000 | [diff] [blame] | 53 | "SystemUILogLib", |
Yifei Zhang | cedd452 | 2023-10-31 11:21:32 -0700 | [diff] [blame] | 54 | "androidx.annotation_annotation", |
Tony Wickham | b4593f9 | 2018-10-04 10:45:42 -0700 | [diff] [blame] | 55 | ], |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | android_app { |
| 59 | |
| 60 | // Dummy to generate .toc files. |
| 61 | name: "PluginDummyLib", |
Peter Kalauskas | 84c5a99 | 2023-08-23 13:39:23 -0700 | [diff] [blame] | 62 | use_resource_processor: true, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 63 | platform_apis: true, |
| 64 | srcs: ["src/**/*.java"], |
| 65 | |
| 66 | libs: ["SystemUIPluginLib"], |
| 67 | |
| 68 | optimize: { |
| 69 | enabled: false, |
| 70 | }, |
| 71 | |
| 72 | } |