From 065d3594ac70b1549d9e96995ebdccffb616a743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Tue, 12 Dec 2023 10:24:53 +0900 Subject: [PATCH] =?UTF-8?q?Module=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/data/module/CommonsModule.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/data/src/main/java/one/nem/lacerta/data/module/CommonsModule.java b/data/src/main/java/one/nem/lacerta/data/module/CommonsModule.java index c7a28163..632b435f 100644 --- a/data/src/main/java/one/nem/lacerta/data/module/CommonsModule.java +++ b/data/src/main/java/one/nem/lacerta/data/module/CommonsModule.java @@ -1,4 +1,16 @@ package one.nem.lacerta.data.module; -public class CommonsModule { +import dagger.Binds; +import dagger.Module; +import dagger.hilt.InstallIn; +import dagger.hilt.components.SingletonComponent; +import one.nem.lacerta.data.repository.Commons; +import one.nem.lacerta.data.impl.CommonsImpl; + +@Module +@InstallIn(SingletonComponent.class) +abstract class CommonsModule { + + @Binds + public abstract Commons bindCommons(CommonsImpl commonsImpl); }