From 97517010bde210adf8d0725244509bdb6cf6a2ea Mon Sep 17 00:00:00 2001 From: unam Date: Wed, 3 Jul 2024 20:04:36 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EB=B9=8C=EB=93=9C=20=EB=88=84=EB=9D=BD?= =?UTF-8?q?=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../runnect/runnect/developer/di/DebugServiceModule.kt | 8 ++++++++ app/src/main/java/com/runnect/runnect/di/ServiceModule.kt | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/debug/java/com/runnect/runnect/developer/di/DebugServiceModule.kt b/app/src/debug/java/com/runnect/runnect/developer/di/DebugServiceModule.kt index b447b13a..dfd5f54f 100644 --- a/app/src/debug/java/com/runnect/runnect/developer/di/DebugServiceModule.kt +++ b/app/src/debug/java/com/runnect/runnect/developer/di/DebugServiceModule.kt @@ -5,11 +5,14 @@ import com.google.firebase.ktx.Firebase import com.runnect.runnect.data.repository.* import com.runnect.runnect.data.service.* import com.runnect.runnect.data.source.remote.* +import com.runnect.runnect.developer.data.service.ServerStatusService +import com.runnect.runnect.di.RetrofitModule import com.runnect.runnect.domain.* import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.components.SingletonComponent +import retrofit2.Retrofit import javax.inject.Singleton @Module @@ -19,4 +22,9 @@ object DebugServiceModule { @Singleton @Provides fun provideBannerService() = Firebase.firestore + + @Singleton + @Provides + fun provideServerStatusService(@RetrofitModule.RetrofitV2 retrofitV2: Retrofit) = + retrofitV2.create(ServerStatusService::class.java) } \ No newline at end of file diff --git a/app/src/main/java/com/runnect/runnect/di/ServiceModule.kt b/app/src/main/java/com/runnect/runnect/di/ServiceModule.kt index ac7a20b1..5048d86c 100644 --- a/app/src/main/java/com/runnect/runnect/di/ServiceModule.kt +++ b/app/src/main/java/com/runnect/runnect/di/ServiceModule.kt @@ -41,8 +41,4 @@ object ServiceModule { @Provides fun provideReverseGeocodingService(@RetrofitModule.Tmap tmapRetrofit: Retrofit) = tmapRetrofit.create(ReverseGeocodingService::class.java) - - @Singleton - @Provides - fun provideBannerService() = Firebase.firestore } \ No newline at end of file