From 8a0b6bd3db2093d99244c7b38c07e08c97141c7c Mon Sep 17 00:00:00 2001 From: r-ca Date: Thu, 14 Dec 2023 03:48:22 +0900 Subject: [PATCH] =?UTF-8?q?Hilt=E3=83=A2=E3=82=B8=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../utils/module/DeviceInfoUtilsModule.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/utils/src/main/java/one/nem/lacerta/utils/module/DeviceInfoUtilsModule.java b/utils/src/main/java/one/nem/lacerta/utils/module/DeviceInfoUtilsModule.java index 1673b81e..9f47b6b9 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/module/DeviceInfoUtilsModule.java +++ b/utils/src/main/java/one/nem/lacerta/utils/module/DeviceInfoUtilsModule.java @@ -1,4 +1,16 @@ package one.nem.lacerta.utils.module; -public class DeviceInfoUtilsModule { +import dagger.Binds; +import dagger.Module; +import dagger.hilt.InstallIn; +import dagger.hilt.components.SingletonComponent; +import one.nem.lacerta.utils.repository.DeviceInfoUtils; +import one.nem.lacerta.utils.impl.DeviceInfoUtilsImpl; + +@Module +@InstallIn(SingletonComponent.class) // TODO-rca: Singletonである必要があるのか検討する? +abstract public class DeviceInfoUtilsModule { + + @Binds + public abstract DeviceInfoUtils bindDeviceInfoUtils(DeviceInfoUtilsImpl deviceInfoUtilsImpl); }