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 15android_binary( 16 name = "hilt", 17 srcs = ["CoffeeApp.java"], 18 manifest = "AndroidManifest.xml", 19 resource_files = glob(["res/**"]), 20 deps = [ 21 ":heater_module", 22 ":pump_module", 23 "//:hilt-android", 24 "//java/example/common", 25 ], 26) 27 28android_library( 29 name = "heater_module", 30 srcs = ["HeaterModule.java"], 31 manifest = "AndroidManifest.xml", 32 visibility = ["//javatests/example/hilt:__pkg__"], 33 deps = [ 34 "//:hilt-android", 35 "//java/example/common", 36 ], 37) 38 39android_library( 40 name = "pump_module", 41 srcs = ["PumpModule.java"], 42 manifest = "AndroidManifest.xml", 43 visibility = ["//javatests/example/hilt:__pkg__"], 44 deps = [ 45 "//:hilt-android", 46 "//java/example/common", 47 ], 48) 49