Skip to content

Commit 332a6bd

Browse files
authored
[Hotfix/token] 릴리즈 모드 / 디버그 모드 인터셉터 같게 함: 토큰 재발급이 안되던 이유 (#181) (#182)
* feat: 디버그랑 릴리즈 인터셉터 같게함 * version 1.1.12
1 parent d582fee commit 332a6bd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ android {
2121
applicationId "com.eatssu.android"
2222
minSdk 23
2323
targetSdk 34
24-
versionCode 13
25-
versionName "1.1.11"
24+
versionCode 14
25+
versionName "1.1.12"
2626

2727

2828
buildConfigField("String", "KAKAO_NATIVE_APP_KEY", "\"${properties.get('KAKAO_NATIVE_APP_KEY')}\"")

app/src/main/java/com/eatssu/android/di/NetworkModule.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ object NetworkModule {
4747
OkHttpClient.Builder().addInterceptor(loggingInterceptor).addInterceptor(tokenInterceptor)
4848
.build()
4949
} else {
50-
OkHttpClient.Builder().build()
50+
val loggingInterceptor = HttpLoggingInterceptor()
51+
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY)
52+
53+
OkHttpClient.Builder().addInterceptor(loggingInterceptor).addInterceptor(tokenInterceptor)
54+
.build()
5155
}
5256

5357
@Singleton

0 commit comments

Comments
 (0)