Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 1 | // Copyright (C) 2017 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 | |
Muhammad Qureshi | 9bced7d | 2020-01-16 15:22:12 -0800 | [diff] [blame] | 25 | genrule { |
| 26 | name: "statslog-SystemUI-java-gen", |
| 27 | tools: ["stats-log-api-gen"], |
| 28 | cmd: "$(location stats-log-api-gen) --java $(out) --module sysui --javaPackage com.android.systemui.shared.system --javaClass SysUiStatsLog", |
| 29 | out: ["com/android/systemui/shared/system/SysUiStatsLog.java"], |
| 30 | } |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 31 | |
Muhammad Qureshi | 9bced7d | 2020-01-16 15:22:12 -0800 | [diff] [blame] | 32 | java_library { |
| 33 | name: "SystemUI-statsd", |
| 34 | |
| 35 | srcs: [ |
| 36 | ":statslog-SystemUI-java-gen", |
| 37 | ], |
Cole Faust | 5479e81 | 2023-12-20 11:57:03 -0800 | [diff] [blame] | 38 | lint: { |
| 39 | baseline_filename: "lint-baseline.xml", |
| 40 | }, |
Muhammad Qureshi | 9bced7d | 2020-01-16 15:22:12 -0800 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | android_library { |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 44 | name: "SystemUISharedLib", |
| 45 | srcs: [ |
| 46 | "src/**/*.java", |
Josh Tsuji | 2da469f | 2021-05-10 11:52:06 -0400 | [diff] [blame] | 47 | "src/**/*.kt", |
| 48 | "src/**/*.aidl", |
Winson Chung | 2b72add | 2021-02-02 23:27:07 -0800 | [diff] [blame] | 49 | ":wm_shell-aidls", |
Evan Rosky | 14ea8c6 | 2021-09-30 17:28:35 -0700 | [diff] [blame] | 50 | ":wm_shell_util-sources", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 51 | ], |
Tony Wickham | 023cb19 | 2018-09-13 15:23:04 -0700 | [diff] [blame] | 52 | static_libs: [ |
Muhammad Qureshi | 9bced7d | 2020-01-16 15:22:12 -0800 | [diff] [blame] | 53 | "PluginCoreLib", |
Hawkwood Glazier | 8485dc1 | 2022-05-21 18:35:22 +0000 | [diff] [blame] | 54 | "SystemUIAnimationLib", |
Hawkwood Glazier | 44fa742 | 2022-06-07 17:28:09 +0000 | [diff] [blame] | 55 | "SystemUIPluginLib", |
Nick Chameyev | 0f3c4e5 | 2022-05-11 14:49:35 +0100 | [diff] [blame] | 56 | "SystemUIUnfoldLib", |
Nick Chameyev | dc99480 | 2021-06-28 19:10:08 +0100 | [diff] [blame] | 57 | "androidx.dynamicanimation_dynamicanimation", |
Dave Mankoff | 93c9d9d | 2021-10-20 10:14:04 -0400 | [diff] [blame] | 58 | "androidx.concurrent_concurrent-futures", |
Alejandro Nijamkin | 97860c2 | 2022-11-04 12:12:46 -0700 | [diff] [blame] | 59 | "androidx.lifecycle_lifecycle-runtime-ktx", |
| 60 | "androidx.lifecycle_lifecycle-viewmodel-ktx", |
| 61 | "androidx.recyclerview_recyclerview", |
| 62 | "kotlinx_coroutines_android", |
| 63 | "kotlinx_coroutines", |
Nicolo' Mazzucato | 6fb25a6 | 2022-01-10 19:56:02 +0100 | [diff] [blame] | 64 | "dagger2", |
| 65 | "jsr330", |
Dave Mankoff | 93c9d9d | 2021-10-20 10:14:04 -0400 | [diff] [blame] | 66 | ], |
Hawkwood Glazier | 9158a60 | 2022-05-27 15:48:40 +0000 | [diff] [blame] | 67 | resource_dirs: [ |
| 68 | "res", |
| 69 | ], |
Dave Mankoff | 93c9d9d | 2021-10-20 10:14:04 -0400 | [diff] [blame] | 70 | min_sdk_version: "current", |
Nicolo' Mazzucato | 6fb25a6 | 2022-01-10 19:56:02 +0100 | [diff] [blame] | 71 | plugins: ["dagger2-compiler"], |
Colin Cross | fbd05dd | 2023-07-18 10:52:21 -0700 | [diff] [blame] | 72 | kotlincflags: ["-Xjvm-default=all"], |
Cole Faust | 5479e81 | 2023-12-20 11:57:03 -0800 | [diff] [blame] | 73 | lint: { |
| 74 | baseline_filename: "lint-baseline.xml", |
| 75 | }, |
Dave Mankoff | 93c9d9d | 2021-10-20 10:14:04 -0400 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | java_library { |
| 79 | name: "SystemUI-flag-types", |
| 80 | srcs: [ |
| 81 | "src/com/android/systemui/flags/Flag.kt", |
| 82 | ], |
Dave Mankoff | d1d4886 | 2021-11-05 14:26:41 -0400 | [diff] [blame] | 83 | include_srcs: true, |
Dave Mankoff | 93c9d9d | 2021-10-20 10:14:04 -0400 | [diff] [blame] | 84 | static_kotlin_stdlib: false, |
| 85 | java_version: "1.8", |
| 86 | min_sdk_version: "current", |
Cole Faust | 5479e81 | 2023-12-20 11:57:03 -0800 | [diff] [blame] | 87 | lint: { |
| 88 | baseline_filename: "lint-baseline.xml", |
| 89 | }, |
Dave Mankoff | 93c9d9d | 2021-10-20 10:14:04 -0400 | [diff] [blame] | 90 | } |
| 91 | |
| 92 | java_library { |
| 93 | name: "SystemUIFlagsLib", |
| 94 | srcs: [ |
| 95 | "src/com/android/systemui/flags/**/*.kt", |
| 96 | ], |
| 97 | static_kotlin_stdlib: false, |
| 98 | libs: [ |
| 99 | "androidx.concurrent_concurrent-futures", |
Dave Mankoff | 93c9d9d | 2021-10-20 10:14:04 -0400 | [diff] [blame] | 100 | ], |
| 101 | static_libs: [ |
| 102 | "SystemUI-flag-types", |
Tony Wickham | 023cb19 | 2018-09-13 15:23:04 -0700 | [diff] [blame] | 103 | ], |
Dave Mankoff | 8ecf577 | 2022-12-22 17:59:48 +0000 | [diff] [blame] | 104 | optimize: { |
| 105 | proguard_flags_files: ["proguard_flags.flags"], |
| 106 | }, |
Sunny Goyal | 226849f | 2020-05-01 15:45:09 -0700 | [diff] [blame] | 107 | java_version: "1.8", |
Evan Rosky | 14ea8c6 | 2021-09-30 17:28:35 -0700 | [diff] [blame] | 108 | min_sdk_version: "current", |
Cole Faust | 5479e81 | 2023-12-20 11:57:03 -0800 | [diff] [blame] | 109 | lint: { |
| 110 | baseline_filename: "lint-baseline.xml", |
| 111 | }, |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 112 | } |