From 12cba0242b49f0eaf7d92b0d0ac7f243fada16f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 14 Dec 2023 14:38:34 +0900 Subject: [PATCH] =?UTF-8?q?Hilt=20Module=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/jgit/module/ManageRepoModule.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/src/main/java/one/nem/lacerta/source/jgit/module/ManageRepoModule.java b/source/src/main/java/one/nem/lacerta/source/jgit/module/ManageRepoModule.java index 215ef707..ff319888 100644 --- a/source/src/main/java/one/nem/lacerta/source/jgit/module/ManageRepoModule.java +++ b/source/src/main/java/one/nem/lacerta/source/jgit/module/ManageRepoModule.java @@ -1,4 +1,16 @@ package one.nem.lacerta.source.jgit.module; -public class ManageRepoModule { +import dagger.Binds; +import dagger.Module; +import dagger.hilt.InstallIn; +import dagger.hilt.components.SingletonComponent; +import one.nem.lacerta.source.jgit.ManageRepo; +import one.nem.lacerta.source.jgit.impl.ManageRepoImpl; + +@Module +@InstallIn(SingletonComponent.class) +abstract public class ManageRepoModule { + + @Binds + public abstract ManageRepo bindManageRepo(ManageRepoImpl manageRepoImpl); }