xref: /aosp_15_r20/external/dagger2/examples/bazel/java/example/hilt/BUILD (revision f585d8a307d0621d6060bd7e80091fdcbf94fe27)
1# Copyright (C) 2020 The Dagger Authors.
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
15# TODO(b/239596898): Reenable once we've fixed this issue.
16# android_binary(
17#     name = "hilt",
18#     srcs = ["CoffeeApp.java"],
19#     manifest = "AndroidManifest.xml",
20#     resource_files = glob(["res/**"]),
21#     deps = [
22#         ":heater_module",
23#         ":pump_module",
24#         "//:hilt-android",
25#         "//java/example/common",
26#     ],
27# )
28
29android_library(
30    name = "heater_module",
31    srcs = ["HeaterModule.java"],
32    manifest = "AndroidManifest.xml",
33    visibility = ["//javatests/example/hilt:__pkg__"],
34    deps = [
35        "//:hilt-android",
36        "//java/example/common",
37    ],
38)
39
40android_library(
41    name = "pump_module",
42    srcs = ["PumpModule.java"],
43    manifest = "AndroidManifest.xml",
44    visibility = ["//javatests/example/hilt:__pkg__"],
45    deps = [
46        "//:hilt-android",
47        "//java/example/common",
48    ],
49)
50