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-shared-aidls", 52 ], 53 static_libs: [ 54 "com.android.systemui.dagger-api", 55 "BiometricsSharedLib", 56 "PlatformAnimationLib", 57 "PluginCoreLib", 58 "SystemUIPluginLib", 59 "SystemUIUnfoldLib", 60 "SystemUISharedLib-Keyguard", 61 "WindowManager-Shell-shared", 62 "//frameworks/libs/systemui:tracinglib-platform", 63 "androidx.dynamicanimation_dynamicanimation", 64 "androidx.concurrent_concurrent-futures", 65 "androidx.lifecycle_lifecycle-runtime-ktx", 66 "androidx.lifecycle_lifecycle-viewmodel-ktx", 67 "androidx.recyclerview_recyclerview", 68 "kotlinx_coroutines_android", 69 "kotlinx_coroutines", 70 "dagger2", 71 "jsr330", 72 "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib", 73 "//frameworks/libs/systemui:msdl", 74 "//frameworks/libs/systemui:view_capture", 75 "am_flags_lib", 76 ], 77 resource_dirs: [ 78 "res", 79 ], 80 min_sdk_version: "current", 81 plugins: ["dagger2-compiler"], 82 kotlincflags: ["-Xjvm-default=all"], 83} 84 85java_library { 86 name: "SystemUI-flag-types", 87 srcs: [ 88 "src/com/android/systemui/flags/Flag.kt", 89 ], 90 include_srcs: true, 91 static_kotlin_stdlib: false, 92 java_version: "1.8", 93 min_sdk_version: "current", 94} 95 96java_library { 97 name: "SystemUIFlagsLib", 98 srcs: [ 99 "src/com/android/systemui/flags/**/*.kt", 100 ], 101 static_kotlin_stdlib: false, 102 libs: [ 103 "androidx.concurrent_concurrent-futures", 104 ], 105 static_libs: [ 106 "SystemUI-flag-types", 107 ], 108 optimize: { 109 proguard_flags_files: ["proguard_flags.flags"], 110 }, 111 java_version: "1.8", 112 min_sdk_version: "current", 113} 114