Skip to content

Commit

Permalink
[Hotfix/token] 릴리즈 모드 / 디버그 모드 인터셉터 같게 함: 토큰 재발급이 안되던 이유 (#181) (#182)
Browse files Browse the repository at this point in the history
* feat: 디버그랑 릴리즈 인터셉터 같게함

* version 1.1.12
  • Loading branch information
HI-JIN2 authored Apr 3, 2024
1 parent d582fee commit 332a6bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
applicationId "com.eatssu.android"
minSdk 23
targetSdk 34
versionCode 13
versionName "1.1.11"
versionCode 14
versionName "1.1.12"


buildConfigField("String", "KAKAO_NATIVE_APP_KEY", "\"${properties.get('KAKAO_NATIVE_APP_KEY')}\"")
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/com/eatssu/android/di/NetworkModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ object NetworkModule {
OkHttpClient.Builder().addInterceptor(loggingInterceptor).addInterceptor(tokenInterceptor)
.build()
} else {
OkHttpClient.Builder().build()
val loggingInterceptor = HttpLoggingInterceptor()
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY)

OkHttpClient.Builder().addInterceptor(loggingInterceptor).addInterceptor(tokenInterceptor)
.build()
}

@Singleton
Expand Down

0 comments on commit 332a6bd

Please sign in to comment.