From 2cf3898f6511ac1ec828146c05b4065f7f060d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 14 Dec 2023 10:19:12 +0900 Subject: [PATCH] =?UTF-8?q?Module=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../utils/module/SharedPrefUtilsModule.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/utils/src/main/java/one/nem/lacerta/utils/module/SharedPrefUtilsModule.java b/utils/src/main/java/one/nem/lacerta/utils/module/SharedPrefUtilsModule.java index 05e28235..e3df3b91 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/module/SharedPrefUtilsModule.java +++ b/utils/src/main/java/one/nem/lacerta/utils/module/SharedPrefUtilsModule.java @@ -1,4 +1,16 @@ package one.nem.lacerta.utils.module; -public class SharedPrefUtilsModule { +import dagger.Binds; +import dagger.Module; +import dagger.hilt.InstallIn; +import dagger.hilt.components.SingletonComponent; +import one.nem.lacerta.utils.repository.SharedPrefUtils; +import one.nem.lacerta.utils.impl.SharedPrefUtilsImpl; + +@Module +@InstallIn(SingletonComponent.class) // TODO-rca: Singletonである必要があるのか検討する? +abstract class SharedPrefUtilsModule { + + @Binds + public abstract SharedPrefUtils bindSharedPrefUtils(SharedPrefUtilsImpl sharedPrefUtilsImpl); }