Skip to content

Commit 126e99f

Browse files
committed
fix: GsonConverterFactory 사용 DTO 필드명 보존 규칙 복원
RetrofitV2/RetrofitFlow가 여전히 GsonConverterFactory를 사용하므로 DTO 필드명 난독화 방지 규칙이 필요. 이전 커밋에서 잘못 제거한 것을 복원.
1 parent e804944 commit 126e99f

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+
# RetrofitV2/RetrofitFlow가 GsonConverterFactory를 사용하므로
16+
# Gson 리플렉션으로 직렬화되는 DTO 필드명 보존 필요
17+
-keepclassmembers class com.runnect.runnect.data.dto.** { <fields>; }
18+
1419
# --- Retrofit + kotlin.Result ---
1520
# kotlin.Result는 inline class라 R8이 제네릭 타입 정보를 최적화함
1621
# Retrofit이 Call<Result<T>>의 타입 파라미터를 리플렉션으로 읽지 못해 CallAdapter 생성 실패

0 commit comments

Comments
 (0)