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# Internal Hilt libraries 17 18load("@rules_java//java:defs.bzl", "java_library") 19 20package(default_visibility = ["//:src"]) 21 22java_library( 23 name = "test_singleton_component", 24 srcs = ["TestSingletonComponent.java"], 25 deps = [":generated_component"], 26) 27 28java_library( 29 name = "generated_component", 30 srcs = ["GeneratedComponent.java"], 31) 32 33java_library( 34 name = "test_singleton_component_manager", 35 srcs = ["TestSingletonComponentManager.java"], 36 deps = [":component_manager"], 37) 38 39java_library( 40 name = "component_manager", 41 srcs = [ 42 "GeneratedComponentManager.java", 43 "GeneratedComponentManagerHolder.java", 44 ], 45 exports = [ 46 "//java/dagger/hilt/internal:preconditions", 47 "//java/dagger/hilt/internal:unsafe_casts", 48 ], 49) 50 51java_library( 52 name = "preconditions", 53 srcs = [ 54 "Preconditions.java", 55 ], 56) 57 58java_library( 59 name = "unsafe_casts", 60 srcs = [ 61 "UnsafeCasts.java", 62 ], 63) 64 65java_library( 66 name = "component_entry_point", 67 srcs = ["ComponentEntryPoint.java"], 68 proguard_specs = ["proguard-rules.pro"], 69 deps = ["//java/dagger/hilt:generates_root_input"], 70) 71 72java_library( 73 name = "generated_entry_point", 74 srcs = ["GeneratedEntryPoint.java"], 75 proguard_specs = ["proguard-rules.pro"], 76 deps = ["//java/dagger/hilt:generates_root_input"], 77) 78 79filegroup( 80 name = "srcs_filegroup", 81 srcs = glob(["*"]), 82) 83