1// Copyright (C) 2023 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
19java_library {
20    name: "flag-util",
21    srcs: ["src_util/**/*.java"],
22    static_libs: [
23        "auto_value_annotations",
24        "jsr305",
25    ],
26    plugins: ["auto_value_plugin"],
27    host_supported: true,
28    sdk_version: "current",
29}
30
31java_library {
32    name: "flag-junit-base",
33    srcs: ["src_base/**/*.java"],
34    static_libs: [
35        "flag-util",
36        "guava",
37        "jsr305",
38        "junit",
39        "platform-test-annotations",
40    ],
41    host_supported: true,
42    sdk_version: "current",
43}
44
45java_library {
46    name: "flag-junit",
47    srcs: ["src/**/*.java"],
48    static_libs: [
49        "androidx.test.rules",
50        "flag-junit-base",
51    ],
52    libs: [
53        "framework-configinfrastructure",
54    ],
55    sdk_version: "module_current",
56}
57
58java_library_host {
59    name: "flag-junit-host",
60    srcs: ["src_host/**/*.java"],
61    static_libs: [
62        "flag-junit-base",
63        "flag-util",
64        "libaconfig_java_proto_full",
65    ],
66    libs: [
67        "tradefed",
68    ],
69}
70