[Chore]: 앱 릴리스 빌드 최적화(R8) 활성화 및 라이브러리별 ProGuard 규칙 구성 - #156
Open
oungsi2000 wants to merge 1 commit into
Open
Conversation
코드 최적화 및 리소스 축소를 활성화하고, 사용 중인 외부 라이브러리(Kakao SDK, Ktor, kotlinx.serialization 등)의 정상 동작을 위한 ProGuard 규칙을 대폭 업데이트합니다.
- `build.gradle.kts`: `isMinifyEnabled` 및 `isShrinkResources`를 `true`로 설정하여 릴리스 빌드 시 코드 난독화 및 리소스 축소 적용
- `proguard-rules.pro`:
- 리플렉션 및 제네릭 처리를 위한 공통 속성(`Signature`, `Annotations` 등) 유지 설정 추가
- **Kakao SDK**: SDK 내부 클래스 및 리플렉션을 사용하는 Gson 관련 직렬화 모델의 난독화 제외 규칙 추가
- **Ktor & OkHttp**: 엔진 탐색을 위한 `ServiceLoader` 경로 및 안드로이드 미지원 클래스에 대한 경고 무시 처리
- **kotlinx.serialization**: `@Serializable` 어노테이션이 적용된 클래스의 `Companion` 객체와 `serializer()` 메서드가 삭제되지 않도록 공식 권장 규칙 적용
- 기존의 불필요하거나 중복된 Retrofit 관련 규칙 정리 및 주석을 통한 가독성 개선
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
oungsi2000
marked this pull request as ready for review
August 22, 2026 02:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
릴리스 빌드에서 R8(코드 축소/난독화)을 활성화하고, Kakao SDK/Ktor 관련 크래시를 막기 위한 ProGuard 규칙을 정리했습니다.
변경사항 / 상세
app/build.gradle.kts: release 빌드타입에isMinifyEnabled = true,isShrinkResources = true적용app/proguard-rules.pro재작성:-keep class com.kakao.sdk.** { *; }는 유지)-dontwarn@Serializable클래스의Companion/serializer()가 제거되지 않도록 공식 권장 규칙 적용검증
:app:assembleRelease실제 빌드 성공 (R8 에러 없음),mapping.txt생성으로 난독화 적용 확인ktlintCheck+test전체 통과중점 리뷰사항