mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
Module実装
This commit is contained in:
parent
960f159a31
commit
2cf3898f65
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user