mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
スタブをInjectionするようにした
This commit is contained in:
parent
7d158bf3e2
commit
dc05e809f5
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user