Hiltモジュール実装

This commit is contained in:
r-ca 2023-12-14 03:48:22 +09:00
parent bd17bf5f80
commit 8a0b6bd3db
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

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