mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
RoomUtils WIP
This commit is contained in:
parent
0804bfb8f6
commit
d222d77a91
|
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user