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); }