diff --git a/data/src/main/java/one/nem/lacerta/source/db/RoomUtils.java b/data/src/main/java/one/nem/lacerta/source/db/RoomUtils.java index c0de9976..6c51c58e 100644 --- a/data/src/main/java/one/nem/lacerta/source/db/RoomUtils.java +++ b/data/src/main/java/one/nem/lacerta/source/db/RoomUtils.java @@ -1,5 +1,20 @@ package one.nem.lacerta.source.db; +import android.content.Context; + +import javax.inject.Inject; + +import dagger.hilt.android.qualifiers.ApplicationContext; + public class RoomUtils { // Internal Utils + + + + @Inject // TODO-rca: 実装を切り離す? + RoomUtils(@ApplicationContext Context context) { + + } + + } diff --git a/data/src/main/java/one/nem/lacerta/source/db/RoomUtilsModule.java b/data/src/main/java/one/nem/lacerta/source/db/RoomUtilsModule.java new file mode 100644 index 00000000..2676fb53 --- /dev/null +++ b/data/src/main/java/one/nem/lacerta/source/db/RoomUtilsModule.java @@ -0,0 +1,16 @@ +package one.nem.lacerta.source.db; + +import android.content.Context; + +import dagger.Binds; +import dagger.Module; +import dagger.hilt.InstallIn; +import dagger.hilt.components.SingletonComponent; + +@Module +@InstallIn(SingletonComponent.class) +abstract public class RoomUtilsModule { + + @Binds + public abstract RoomUtils bindRoomUtils(Context context); +}