From 725078ad3e2ed6fe11b6c6778d89d73af156fefc Mon Sep 17 00:00:00 2001 From: Sangwook123 Date: Mon, 8 Jan 2024 06:57:35 +0900 Subject: [PATCH] [chore] #64 login intent --- .../src/main/java/org/sopt/login/onboarding/di/IntentModule.kt | 2 ++ .../sopt/login/onboarding/intentprovider/IntentProviderImpl.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/feature/login/src/main/java/org/sopt/login/onboarding/di/IntentModule.kt b/feature/login/src/main/java/org/sopt/login/onboarding/di/IntentModule.kt index 6369e44e..84f3d57d 100644 --- a/feature/login/src/main/java/org/sopt/login/onboarding/di/IntentModule.kt +++ b/feature/login/src/main/java/org/sopt/login/onboarding/di/IntentModule.kt @@ -5,6 +5,7 @@ import dagger.Module import dagger.hilt.InstallIn import dagger.hilt.components.SingletonComponent import org.sopt.common.intentprovider.IntentProvider +import org.sopt.common.intentprovider.LOGIN import org.sopt.login.onboarding.intentprovider.IntentProviderImpl import javax.inject.Singleton @@ -13,5 +14,6 @@ import javax.inject.Singleton abstract class IntentModule { @Binds @Singleton + @LOGIN abstract fun bindsIntentProvider(intentProvider: IntentProviderImpl): IntentProvider } diff --git a/feature/login/src/main/java/org/sopt/login/onboarding/intentprovider/IntentProviderImpl.kt b/feature/login/src/main/java/org/sopt/login/onboarding/intentprovider/IntentProviderImpl.kt index 9c316fd9..e7b87145 100644 --- a/feature/login/src/main/java/org/sopt/login/onboarding/intentprovider/IntentProviderImpl.kt +++ b/feature/login/src/main/java/org/sopt/login/onboarding/intentprovider/IntentProviderImpl.kt @@ -10,6 +10,6 @@ import javax.inject.Inject class IntentProviderImpl @Inject constructor( @ApplicationContext private val context: Context, ) : IntentProvider { - override fun getAuthIntent(): Intent = + override fun getIntent(): Intent = LoginActivity.newInstance(context) }