Skip to content

Commit 76a715f

Browse files
committed
fix: Gson으로 역직렬화되는 DTO 필드명 난독화 방지
BaseResponse, ErrorResponse 등이 Kotlin Serialization(@SerialName)으로 선언되어 있지만 ResponseInterceptor, ResultCall, FlowCallAdapter에서 Gson으로 역직렬화됨. R8이 필드명을 난독화하면 Gson 매핑 실패로 API 응답이 전부 깨지는 문제 수정.
1 parent e8383ec commit 76a715f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/proguard-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
-keepattributes SourceFile,LineNumberTable
1212
-keep public class * extends java.lang.Exception
1313

14+
# --- DTO ---
15+
# Gson 리플렉션으로 역직렬화되는 DTO 클래스의 필드명 보존
16+
# (BaseResponse, ErrorResponse 등이 Gson과 Kotlin Serialization 양쪽에서 사용됨)
17+
-keepclassmembers class com.runnect.runnect.data.dto.** { <fields>; }
18+
1419
# --- Kakao SDK ---
1520
# 공식 문서: https://developers.kakao.com/docs/latest/en/android/getting-started#configure-for-shrinking-and-obfuscation-(optional)
1621
-keep class com.kakao.sdk.**.model.* { <fields>; }

0 commit comments

Comments
 (0)