From fd04610e6c8eda074203be561f5e303423d3d578 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 10:50:28 +0900 Subject: [PATCH] WIP Binds --- .../lacerta/source/pref/module/CommonModule.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/data/src/main/java/one/nem/lacerta/source/pref/module/CommonModule.java b/data/src/main/java/one/nem/lacerta/source/pref/module/CommonModule.java index de34c426..1e5a8579 100644 --- a/data/src/main/java/one/nem/lacerta/source/pref/module/CommonModule.java +++ b/data/src/main/java/one/nem/lacerta/source/pref/module/CommonModule.java @@ -1,4 +1,16 @@ package one.nem.lacerta.source.pref.module; -public class CommonModule { +import dagger.Binds; +import dagger.Module; +import dagger.hilt.InstallIn; +import dagger.hilt.components.SingletonComponent; +import one.nem.lacerta.source.pref.impl.CommonImpl; +import one.nem.lacerta.source.pref.repository.Common; + +@Module +@InstallIn(SingletonComponent.class) +abstract public class CommonModule { + + @Binds + public abstract Common bindCommon(CommonImpl commonImpl); }