Skip to content

[SETTING/#233] 릴리즈 빌드에 R8 코드, 리소스 축소 적용 - #235

Merged
oilbeaneda merged 1 commit into
developfrom
setting/#233-release_r8
Nov 10, 2026
Merged

oilbeaneda merged 1 commit into
developfrom
setting/#233-release_r8

Conversation

@oilbeaneda

Copy link
Copy Markdown
Contributor

Related issue 🛠

Work Description ✏️

  • 릴리즈 빌드에 R8을 켰습니다. AGP 9에서는 optimization.enable 하나로 코드 축소, 난독화, 리소스 축소가 같이 적용됩니다.
  • 라이브러리 keep 규칙은 따로 추가하지 않았습니다. Retrofit, kotlinx.serialization, Credential Manager, Google ID, 네이버 지도, Hilt, Room, OkHttp, Coil 모두 라이브러리 안에 규칙이 들어 있고, 리플렉션이나 getIdentifier를 쓰는 곳이 없습니다.
  • 릴리즈 APK의 dex가 42MB에서 5.2MB로 줄었습니다. APK 전체 크기는 네이버 지도 네이티브 라이브러리(4개 ABI, 약 90MB) 때문에 크지만, AAB로 올리면 기기에 맞는 ABI만 내려갑니다.

매핑 파일 보관

  • 릴리즈 빌드 때 app/build/outputs/mapping/release/mapping.txt가 만들어집니다.
  • AAB로 Play Console에 올리면 매핑 파일이 같이 올라가서, Play Console의 비정상 종료 스택이 자동으로 복원됩니다.
  • 출시 버전마다 mapping.txt를 따로 보관해 두면, 다른 곳에서 받은 스택도 retrace로 복원할 수 있습니다.

Screenshot 📸

N/A

Uncompleted Tasks 😅

  • N/A

To Reviewers 📢

곧!!

@oilbeaneda oilbeaneda self-assigned this Nov 10, 2026
@oilbeaneda
oilbeaneda requested a review from a team as a code owner November 10, 2026 02:07
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

릴리즈 빌드 최적화 설정의 enable 값이 false에서 true로 변경되었습니다.

Merge Risk: Minimal · up to 63bd3

No merge-blocking issue is established. Release-flow test results were not reported.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed 제목이 릴리즈 빌드의 R8 코드·리소스 축소 적용을 정확히 나타냅니다.
Description check Passed 설명이 R8 적용, 축소 결과, 매핑 파일 보관 방법을 변경 내용과 연관해 설명합니다.
Linked Issues check Passed 직접 연결된 열린 이슈 #233의 릴리즈 R8 적용 요구는 app/build.gradle.kts의 release.optimization.enable = true로 반영했습니다. PR 설명은 AGP 9 설정이 코드·리소스 축소와 난독화를 활성화한다고 밝힙니다. PR 설명은 Retrofit 등 라이브러리의 자체 keep 규칙을 확인했고 별도 규칙이 필요…
Out of Scope Changes check Passed 변경은 릴리즈 빌드 최적화를 활성화하는 app/build.gradle.kts 한 줄입니다. #233의 R8 적용 범위와 직접 관련됩니다.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Linked Issues check

Explanation

직접 연결된 열린 이슈 #233의 릴리즈 R8 적용 요구는 app/build.gradle.kts의 release.optimization.enable = true로 반영했습니다. PR 설명은 AGP 9 설정이 코드·리소스 축소와 난독화를 활성화한다고 밝힙니다. PR 설명은 Retrofit 등 라이브러리의 자체 keep 규칙을 확인했고 별도 규칙이 필요 없다고 명시합니다. 매핑 파일 경로와 Play Console 업로드, 버전별 보관 및 retrace 사용 방법도 설명합니다. 주요 흐름 확인은 수동 테스트 항목이므로 코딩 요구사항 평가에서 제외합니다.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2300480 and 63bd3a1.

Files selected for processing: 1

  • app/build.gradle.kts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@seungjunGong seungjunGong left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

곧!!

@oilbeaneda
oilbeaneda merged commit aa7b733 into develop Nov 10, 2026
2 checks passed
@oilbeaneda
oilbeaneda deleted the setting/#233-release_r8 branch November 10, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SETTING] 릴리즈 빌드 R8 적용

2 participants