-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
릴리즈 모드에서 (디버그 모드에서만 필요한) 개발자 모드 관련 파일을 참조해서 빌드 에러가 떴는데 관련 파일을 디버그용으로 하나 더 만들어주는 것으로 해결함
- Loading branch information
Showing
4 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
app/src/debug/java/com/runnect/runnect/developer/di/DebugRepositoryModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
22 changes: 22 additions & 0 deletions
22
app/src/debug/java/com/runnect/runnect/developer/di/DebugServiceModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters