blob: e945f1eb0991b6d7cdd0e59878b918011b15ae2f [file] [log] [blame]
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +02001// Copyright (C) 2021 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 {
Aditya Choudharyb4262272024-01-31 11:09:29 +000016 default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +020017 // 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
Jordan Demeulenaered876f5c2021-04-07 16:40:47 +020025android_library {
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +020026
27 name: "SystemUIAnimationLib",
Peter Kalauskas84c5a992023-08-23 13:39:23 -070028 use_resource_processor: true,
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +020029
30 srcs: [
31 "src/**/*.java",
32 "src/**/*.kt",
33 ],
Yein Jof7f052e2023-02-17 22:38:44 +000034 exclude_srcs: [
35 "src/com/android/systemui/surfaceeffects/**/*.java",
36 "src/com/android/systemui/surfaceeffects/**/*.kt",
37 ],
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +020038
Jordan Demeulenaered876f5c2021-04-07 16:40:47 +020039 resource_dirs: [
40 "res",
41 ],
42
Yein Jo7b8e5272022-11-29 06:53:36 +000043 static_libs: [
Colin Cross64ee6e22024-03-25 15:21:29 -070044 "androidx.core_core-animation",
Yein Jo7b8e5272022-11-29 06:53:36 +000045 "androidx.core_core-ktx",
46 "androidx.annotation_annotation",
Yein Jof7f052e2023-02-17 22:38:44 +000047 "SystemUIShaderLib",
Kateryna Ivanovabd68ce22023-04-26 15:12:30 +000048 "animationlib",
Yein Jof7f052e2023-02-17 22:38:44 +000049 ],
50
51 manifest: "AndroidManifest.xml",
52 kotlincflags: ["-Xjvm-default=all"],
53}
54
55android_library {
56 name: "SystemUIShaderLib",
Peter Kalauskas84c5a992023-08-23 13:39:23 -070057 use_resource_processor: true,
Yein Jof7f052e2023-02-17 22:38:44 +000058
59 srcs: [
60 "src/com/android/systemui/surfaceeffects/**/*.java",
61 "src/com/android/systemui/surfaceeffects/**/*.kt",
62 ],
63
64 static_libs: [
Colin Cross64ee6e22024-03-25 15:21:29 -070065 "androidx.core_core-animation",
Yein Jof7f052e2023-02-17 22:38:44 +000066 "androidx.core_core-ktx",
67 "androidx.annotation_annotation",
Yein Jo7b8e5272022-11-29 06:53:36 +000068 ],
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +020069
Jordan Demeulenaered876f5c2021-04-07 16:40:47 +020070 manifest: "AndroidManifest.xml",
Jordan Demeulenaere6e77c582022-01-17 11:28:09 +010071 kotlincflags: ["-Xjvm-default=all"],
Yein Jof7f052e2023-02-17 22:38:44 +000072
73 // sdk_version must be specified, otherwise it compiles against private APIs.
Lucas Dupind46fabd2023-08-30 15:17:25 -070074 min_sdk_version: "33",
Yein Jof7f052e2023-02-17 22:38:44 +000075 sdk_version: "current",
Jordan Demeulenaerecea62bb2021-04-08 11:04:50 +020076}