RoomUtils WIP

This commit is contained in:
r-ca 2023-12-13 18:48:44 +09:00
parent 0804bfb8f6
commit d222d77a91
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 31 additions and 0 deletions

View File

@ -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) {
}
}

View File

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