mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
スタブをInjectionするようにした
This commit is contained in:
1 file changed
+15
-1
@@ -1,4 +1,18 @@
|
||||
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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user