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 15package { 16 default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_", 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 25genrule { 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} 31 32java_library { 33 name: "SystemUI-statsd", 34 35 srcs: [ 36 ":statslog-SystemUI-java-gen", 37 ], 38 libs: [ 39 "androidx.annotation_annotation", 40 ], 41} 42 43android_library { 44 name: "SystemUISharedLib", 45 use_resource_processor: true, 46 srcs: [ 47 "src/**/*.java", 48 "src/**/*.kt", 49 "src/**/*.aidl", 50 ":wm_shell-aidls", 51 ":wm_shell_util-sources", 52 ], 53 static_libs: [ 54 "BiometricsSharedLib", 55 "PlatformAnimationLib", 56 "PluginCoreLib", 57 "SystemUIPluginLib", 58 "SystemUIUnfoldLib", 59 "SystemUISharedLib-Keyguard", 60 "WindowManager-Shell-shared", 61 "//frameworks/libs/systemui:tracinglib-platform", 62 "androidx.dynamicanimation_dynamicanimation", 63 "androidx.concurrent_concurrent-futures", 64 "androidx.lifecycle_lifecycle-runtime-ktx", 65 "androidx.lifecycle_lifecycle-viewmodel-ktx", 66 "androidx.recyclerview_recyclerview", 67 "kotlinx_coroutines_android", 68 "kotlinx_coroutines", 69 "dagger2", 70 "jsr330", 71 "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib", 72 ], 73 resource_dirs: [ 74 "res", 75 ], 76 min_sdk_version: "current", 77 plugins: ["dagger2-compiler"], 78 kotlincflags: ["-Xjvm-default=all"], 79} 80 81java_library { 82 name: "SystemUI-flag-types", 83 srcs: [ 84 "src/com/android/systemui/flags/Flag.kt", 85 ], 86 include_srcs: true, 87 static_kotlin_stdlib: false, 88 java_version: "1.8", 89 min_sdk_version: "current", 90} 91 92java_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", 100 ], 101 static_libs: [ 102 "SystemUI-flag-types", 103 ], 104 optimize: { 105 proguard_flags_files: ["proguard_flags.flags"], 106 }, 107 java_version: "1.8", 108 min_sdk_version: "current", 109} 110