Skip to content

Commit 5557342

Browse files
committed
FIX: 카카오 SDK 관련 프로가드 설정 부분을 공식 문서에 제시된 내용으로 수정
1 parent 036616c commit 5557342

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

app/proguard-rules.pro

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
-keepattributes SourceFile,LineNumberTable
22
-renamesourcefileattribute SourceFile
33

4-
# [Kakao SDK 버그 방어]
5-
# AccessTokenInterceptor에서 ClientErrorCause 상수를 리플렉션(getField)으로 찾기 때문에 난독화에서 제외함
6-
-keep enum com.kakao.sdk.common.model.ClientErrorCause {
7-
*;
8-
}
4+
# [Kakao SDK 프로가드 규칙]
5+
# https://developers.kakao.com/docs/ko/android/getting-started#project-pro-guard
6+
-keep class com.kakao.sdk.**.model.* { <fields>; }
7+
8+
# https://github.com/square/okhttp/pull/6792
9+
-dontwarn org.bouncycastle.jsse.**
10+
-dontwarn org.conscrypt.*
11+
-dontwarn org.openjsse.**
12+
13+
# refrofit2 (with r8 full mode)
14+
-if interface * { @retrofit2.http.* <methods>; }
15+
-keep,allowobfuscation interface <1>
16+
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
17+
-if interface * { @retrofit2.http.* public *** *(...); }
18+
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
19+
-keep,allowobfuscation,allowshrinking class retrofit2.Response
920

1021
# [Kotlinx Serialization]
1122
# 모든 @Serializable 클래스의 직렬화 로직 및 serializer 메서드 유지

0 commit comments

Comments
 (0)