1# Copyright (C) 2019 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# Internal Hilt Android managers 17 18package(default_visibility = ["//:src"]) 19 20android_library( 21 name = "component_supplier", 22 srcs = ["ComponentSupplier.java"], 23) 24 25android_library( 26 name = "managers", 27 srcs = [ 28 "ActivityComponentManager.java", 29 "ActivityRetainedComponentManager.java", 30 "ApplicationComponentManager.java", 31 "BroadcastReceiverComponentManager.java", 32 "FragmentComponentManager.java", 33 "ServiceComponentManager.java", 34 "ViewComponentManager.java", 35 ], 36 deps = [ 37 ":component_supplier", 38 "//:dagger_with_compiler", 39 "//java/dagger/hilt:entry_point", 40 "//java/dagger/hilt:install_in", 41 "//java/dagger/hilt/android:activity_retained_lifecycle", 42 "//java/dagger/hilt/android/components", 43 "//java/dagger/hilt/android/components:view_model_component", 44 "//java/dagger/hilt/android/internal", 45 "//java/dagger/hilt/android/internal/builders", 46 "//java/dagger/hilt/android/scopes:activity_retained_scoped", 47 "//java/dagger/hilt/android/scopes:view_model_scoped", 48 "//java/dagger/hilt/internal:component_manager", 49 "//java/dagger/hilt/internal:preconditions", 50 "@maven//:androidx_activity_activity", 51 "@maven//:androidx_annotation_annotation", 52 "@maven//:androidx_fragment_fragment", 53 "@maven//:androidx_lifecycle_lifecycle_viewmodel", 54 ], 55) 56 57filegroup( 58 name = "srcs_filegroup", 59 srcs = glob(["*"]), 60) 61