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