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
19android_app {
20    name: "tracinglib-test-app",
21    manifest: "app-manifest.xml",
22    platform_apis: true,
23}
24
25android_robolectric_test {
26    enabled: true,
27    name: "tracinglib-robo-test",
28    srcs: [
29        "src/**/*.kt",
30        ":tracinglib-core-srcs",
31    ],
32    java_resource_dirs: ["config"],
33    static_libs: [
34        "kotlinx_coroutines_android",
35        "flag-junit",
36        "com_android_systemui_flags_lib",
37    ],
38    libs: [
39        "androidx.test.core",
40        "androidx.test.runner",
41        "androidx.test.ext.junit",
42    ],
43    instrumentation_for: "tracinglib-test-app",
44    upstream: true,
45    strict_mode: false,
46}
47