xref: /aosp_15_r20/external/dagger2/java/dagger/hilt/android/internal/lifecycle/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# Description:
16#   Hilt lifecycle ViewModel hooks.
17
18package(default_visibility = ["//:src"])
19
20android_library(
21    name = "lifecycle",
22    srcs = glob(["*.java"]),
23    deps = [
24        "//:dagger_with_compiler",
25        "//java/dagger/hilt:entry_point",
26        "//java/dagger/hilt:install_in",
27        "//java/dagger/hilt/android:activity_retained_lifecycle",
28        "//java/dagger/hilt/android:view_model_lifecycle",
29        "//java/dagger/hilt/android/components",
30        "//java/dagger/hilt/android/internal",
31        "//java/dagger/hilt/android/internal/builders",
32        "//java/dagger/hilt/android/lifecycle:retained_lifecycle",
33        "//java/dagger/hilt/internal:preconditions",
34        "@maven//:androidx_activity_activity",
35        "@maven//:androidx_annotation_annotation",
36        "@maven//:androidx_fragment_fragment",
37        "@maven//:androidx_lifecycle_lifecycle_common",
38        "@maven//:androidx_lifecycle_lifecycle_viewmodel",
39        "@maven//:androidx_lifecycle_lifecycle_viewmodel_savedstate",
40        "@maven//:androidx_savedstate_savedstate",
41        "@maven//:org_jetbrains_kotlin_kotlin_stdlib",
42    ],
43)
44
45filegroup(
46    name = "srcs_filegroup",
47    srcs = glob(["*"]),
48)
49