From d222d77a915f66f783ece2ff58bc3bdecfcd134c Mon Sep 17 00:00:00 2001 From: r-ca Date: Wed, 13 Dec 2023 18:48:44 +0900 Subject: [PATCH] RoomUtils WIP --- .../one/nem/lacerta/source/db/RoomUtils.java | 15 +++++++++++++++ .../nem/lacerta/source/db/RoomUtilsModule.java | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 data/src/main/java/one/nem/lacerta/source/db/RoomUtilsModule.java 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); +}