Skip to content

Commit

Permalink
[chore/#10] 선언 위치를 수정합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
SYAAINN committed Dec 2, 2024
1 parent 6c61aae commit 797bbda
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/org/sopt/and/di/DataSourceModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import javax.inject.Singleton
abstract class DataSourceModule {
@Binds
@Singleton
fun bindTokenLocalDataSource(sharedPreferences: SharedPreferences): TokenLocalDataSource {
return TokenLocalDataSourceImpl(sharedPreferences)
}
abstract fun bindTokenLocalDataSource(
tokenLocalDataSourceImpl: TokenLocalDataSourceImpl
): TokenLocalDataSource

@Binds
@Singleton
Expand Down
20 changes: 10 additions & 10 deletions app/src/main/java/org/sopt/and/di/NetworkModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
object NetworkModule {
@Provides
@Singleton
fun providesJson(): Json =
Json {
isLenient = true
prettyPrint = true
explicitNulls = false
ignoreUnknownKeys = true
}

@Provides
@Singleton
fun provideLoggingInterceptor(): HttpLoggingInterceptor = HttpLoggingInterceptor().apply {
Expand All @@ -41,6 +31,16 @@ object NetworkModule {
addInterceptor(loggingInterceptor)
}.build()

@Provides
@Singleton
fun providesJson(): Json =
Json {
isLenient = true
prettyPrint = true
explicitNulls = false
ignoreUnknownKeys = true
}

@Provides
@Singleton
fun provideRetrofit(
Expand Down

0 comments on commit 797bbda

Please sign in to comment.