スタブをInjectionするようにした

This commit is contained in:
ろむねこ 2023-12-11 13:49:32 +09:00
parent 7d158bf3e2
commit dc05e809f5
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,4 +1,18 @@
package one.nem.lacerta.data.module; package one.nem.lacerta.data.module;
public class DocumentsModule { import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.components.SingletonComponent;
import one.nem.lacerta.data.repository.Documents;
import one.nem.lacerta.data.impl.DocumentsImpl;
@Module
@InstallIn(SingletonComponent.class)
abstract public class DocumentsModule {
@Binds
public abstract Documents bindDocuments(DocumentsImpl documentsImpl);
} }