xref: /aosp_15_r20/frameworks/base/packages/SystemUI/utils/kairos/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1//
2// Copyright (C) 2024 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_",
19    default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
20}
21
22java_library {
23    name: "kairos",
24    host_supported: true,
25    kotlincflags: ["-opt-in=com.android.systemui.kairos.ExperimentalFrpApi"],
26    srcs: ["src/**/*.kt"],
27    static_libs: [
28        "kotlin-stdlib",
29        "kotlinx_coroutines",
30    ],
31}
32
33java_test {
34    name: "kairos-test",
35    optimize: {
36        enabled: false,
37    },
38    srcs: [
39        "test/**/*.kt",
40    ],
41    static_libs: [
42        "kairos",
43        "junit",
44        "kotlin-stdlib",
45        "kotlin-test",
46        "kotlinx_coroutines",
47        "kotlinx_coroutines_test",
48    ],
49}
50