HiltModule追加, Bind追加

This commit is contained in:
ろむねこ 2023-12-10 18:14:10 +09:00
parent c2eec8064b
commit 15ee6f344f
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,4 +1,21 @@
package com.example.lacerta.data.module;
public class DeviceMetaModule {
import android.app.Application;
import com.example.lacerta.data.impl.DeviceMetaImpl;
import com.example.lacerta.data.repository.DeviceMeta;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
// Singleton
import dagger.hilt.components.SingletonComponent;
@Module
@InstallIn(SingletonComponent.class)
abstract class DeviceMetaModule {
@Binds
public abstract DeviceMeta bindDeviceMeta(DeviceMetaImpl deviceMetaImpl);
}