From dc05e809f5a17c2b1b5e28ec30da43a0e4843bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Mon, 11 Dec 2023 13:49:32 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=82=BF=E3=83=96=E3=82=92Injection?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/data/module/DocumentsModule.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/data/src/main/java/one/nem/lacerta/data/module/DocumentsModule.java b/data/src/main/java/one/nem/lacerta/data/module/DocumentsModule.java index 588d39fe..d0388035 100644 --- a/data/src/main/java/one/nem/lacerta/data/module/DocumentsModule.java +++ b/data/src/main/java/one/nem/lacerta/data/module/DocumentsModule.java @@ -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); + }