1// Copyright (C) 2024 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_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19// TODO(b/240432457): Replace with library once `-Xfriend-paths` is supported by Soong
20filegroup {
21    name: "tracinglib-core-srcs",
22    srcs: ["src/**/*.kt"],
23    visibility: ["//frameworks/libs/systemui/tracinglib:__subpackages__"],
24}
25
26java_library {
27    name: "tracinglib-platform",
28    static_libs: [
29        "kotlinx_coroutines_android",
30        "com_android_systemui_flags_lib",
31    ],
32    kotlincflags: [
33        "-Xjvm-default=all",
34        "-opt-in=kotlin.ExperimentalStdlibApi",
35        "-opt-in=kotlinx.coroutines.DelicateCoroutinesApi",
36        "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
37        "-Xexplicit-api=strict",
38    ],
39    srcs: [":tracinglib-core-srcs"],
40}
41