Skip to content

Commit adc6078

Browse files
committed
fix: 중복 Gson ProGuard 규칙 제거 및 renamesourcefileattribute 제거
- Gson 2.13.2 JAR에 consumer rules(gson.pro)가 포함되어 있으므로 수동 규칙 제거 - -renamesourcefileattribute는 Firebase 공식 문서 근거가 아니므로 제거
1 parent 068be1d commit adc6078

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

app/proguard-rules.pro

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,14 @@
33
# ===========================
44
# 각 라이브러리의 공식 문서 또는 공식 저장소에 근거한 규칙만 포함합니다.
55
# consumer rules로 자동 적용되는 라이브러리는 별도 규칙을 추가하지 않습니다.
6-
# (Retrofit, OkHttp, Kotlin Serialization, Glide, Naver Map SDK, DataBinding, Hilt)
6+
# (Retrofit, OkHttp, Kotlin Serialization, Glide, Naver Map SDK, DataBinding, Hilt, Gson)
77

88
# --- Firebase Crashlytics ---
99
# 난독화된 스택 트레이스를 읽을 수 있도록 소스 파일명/라인 번호 유지
1010
# 공식 문서: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=android
1111
-keepattributes SourceFile,LineNumberTable
1212
-keep public class * extends java.lang.Exception
13-
-renamesourcefileattribute SourceFile
1413

1514
# --- Kakao SDK ---
1615
# 공식 문서: https://developers.kakao.com/docs/latest/en/android/getting-started#configure-for-shrinking-and-obfuscation-(optional)
1716
-keep class com.kakao.sdk.**.model.* { <fields>; }
18-
19-
# --- Gson ---
20-
# Gson 2.13.x JAR에 consumer rules가 포함되어 있지 않으므로 수동 추가 필요
21-
# 공식 규칙 파일: https://github.com/google/gson/blob/main/gson/src/main/resources/META-INF/proguard/gson.pro
22-
# 공식 트러블슈팅: https://github.com/google/gson/blob/main/Troubleshooting.md#r8-agp
23-
-keep class * extends com.google.gson.TypeAdapter
24-
-keepclassmembers,allowobfuscation class * {
25-
@com.google.gson.annotations.SerializedName <fields>;
26-
}

0 commit comments

Comments
 (0)