Commit ff07d95
committed
fix: R8 난독화 시 Retrofit API 호출 실패 해결
1. kotlin.Result 제네릭 타입 정보 보존 (-keep class kotlin.Result)
- R8이 inline class인 kotlin.Result의 Signature를 최적화하면서
Retrofit의 ResultCallAdapterFactory가 Call<Result<T>> 타입을 인식 못함
- square/retrofit#3880
2. BaseResponse/ErrorResponse DTO 필드명 보존 (-keepclassmembers)
- ResponseInterceptor에서 Gson으로 역직렬화 시 필드명 매핑 실패 방지
- 범위를 data.dto.response.base 패키지로 한정1 parent 7417e63 commit ff07d95
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
14 | 26 | | |
15 | 27 | | |
16 | 28 | | |
0 commit comments