mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
Hiltモジュール実装
This commit is contained in:
parent
bd17bf5f80
commit
8a0b6bd3db
|
@ -1,4 +1,16 @@
|
||||||
package one.nem.lacerta.utils.module;
|
package one.nem.lacerta.utils.module;
|
||||||
|
|
||||||
public class DeviceInfoUtilsModule {
|
import dagger.Binds;
|
||||||
|
import dagger.Module;
|
||||||
|
import dagger.hilt.InstallIn;
|
||||||
|
import dagger.hilt.components.SingletonComponent;
|
||||||
|
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
|
||||||
|
import one.nem.lacerta.utils.impl.DeviceInfoUtilsImpl;
|
||||||
|
|
||||||
|
@Module
|
||||||
|
@InstallIn(SingletonComponent.class) // TODO-rca: Singletonである必要があるのか検討する?
|
||||||
|
abstract public class DeviceInfoUtilsModule {
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
public abstract DeviceInfoUtils bindDeviceInfoUtils(DeviceInfoUtilsImpl deviceInfoUtilsImpl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user