Skip to content

Commit

Permalink
[fix] 개발자 모드 관련 빌드 에러 해결
Browse files Browse the repository at this point in the history
릴리즈 모드에서 (디버그 모드에서만 필요한) 개발자 모드 관련 파일을 참조해서 빌드 에러가 떴는데 관련 파일을 디버그용으로 하나 더 만들어주는 것으로 해결함
  • Loading branch information
unam98 committed Jun 19, 2024
1 parent cf0cb7d commit f93f6ae
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.runnect.runnect.developer.di

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.repository.ServerStatusRepositoryImpl
import com.runnect.runnect.developer.domain.ServerStatusRepository
import com.runnect.runnect.domain.*
import com.runnect.runnect.domain.repository.BannerRepository
import com.runnect.runnect.domain.repository.CourseRepository
import com.runnect.runnect.domain.repository.DepartureSearchRepository
import com.runnect.runnect.domain.repository.LoginRepository
import com.runnect.runnect.domain.repository.ReverseGeocodingRepository
import com.runnect.runnect.domain.repository.StorageRepository
import com.runnect.runnect.domain.repository.UserRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
interface DebugRepositoryModule {

@Singleton
@Binds
fun bindServerStatusRepository(serverStatusRepositoryImpl: ServerStatusRepositoryImpl): ServerStatusRepository
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.runnect.runnect.developer.di

import com.google.firebase.firestore.ktx.firestore
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.domain.*
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object DebugServiceModule {

@Singleton
@Provides
fun provideBannerService() = Firebase.firestore
}
6 changes: 0 additions & 6 deletions app/src/main/java/com/runnect/runnect/di/RepositoryModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package com.runnect.runnect.di
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.repository.ServerStatusRepositoryImpl
import com.runnect.runnect.developer.domain.ServerStatusRepository
import com.runnect.runnect.domain.*
import com.runnect.runnect.domain.repository.BannerRepository
import com.runnect.runnect.domain.repository.CourseRepository
Expand Down Expand Up @@ -49,8 +47,4 @@ interface RepositoryModule {
@Singleton
@Binds
fun bindBannerRepository(bannerRepositoryImpl: BannerRepositoryImpl): BannerRepository

@Singleton
@Binds
fun bindServerStatusRepository(serverStatusRepositoryImpl: ServerStatusRepositoryImpl): ServerStatusRepository
}
8 changes: 0 additions & 8 deletions app/src/main/java/com/runnect/runnect/di/ServiceModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Firebase
import com.runnect.runnect.data.repository.*
import com.runnect.runnect.data.service.*
import com.runnect.runnect.data.service.LoginService
import com.runnect.runnect.data.service.UserService
import com.runnect.runnect.data.source.remote.*
import com.runnect.runnect.developer.data.service.ServerStatusService
import com.runnect.runnect.domain.*
import dagger.Module
import dagger.Provides
Expand Down Expand Up @@ -35,11 +32,6 @@ object ServiceModule {
fun providePCourseService(@RetrofitModule.RetrofitV2 retrofitV2: Retrofit) =
retrofitV2.create(CourseService::class.java)

@Singleton
@Provides
fun provideSeverStatusService(@RetrofitModule.RetrofitFlow retrofitV2Flow: Retrofit) =
retrofitV2Flow.create(ServerStatusService::class.java)

@Singleton
@Provides
fun provideKSearchService(@RetrofitModule.Tmap tmapRetrofit: Retrofit) =
Expand Down

0 comments on commit f93f6ae

Please sign in to comment.