Skip to content

[chore] 코드 및 리소스 최적화 설정 및 배포 진행 #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

915dbfl
Copy link
Collaborator

@915dbfl 915dbfl commented Jun 2, 2025

👩‍🌾 진행한 작업

  • 빌드 로직 수정(코드 및 리소스 최적화 설정)
  • 네이티브 라이브러리 디버그 파일 설정 추가

📷 작업 결과(사진)

x

🗣️ 공유할 내용

1. app:build.gradle.kts에 isShrinkResources 설정 추가

  • isMinifyEnabledisShrinkResources는 배포용 apk / aab를 만들 때 불필요한 코드 및 리소스를 최소화해 앱의 크기를 줄이는 역할을 합니다.
  • 위 두 설정은 aab를 만드는 application module에 설정을 해줘야 해 app:build.gradle.kts에서 작성하였습니다.

2. ndk.debugSymbolLevel 설정

  • 해당 코드의 역할
    • 앱에 포함된 네이티브 코드 라이브러리의 디버깅 정보는 앱 크기를 줄이기 위해 기본적으로 제거가 됩니다. 하지만 이렇게 디버깅 정보가 aab에 존재하지 않을 경우, 네이티브 코드에서 크래시가 발생하면 그 원인을 파악하는 데 어려움이 있습니다. 앱 출시를 진행할 때도 native 디버그 정보가 aab에 포함되어 있지 않을 경우, 별도로 올려달라는 경고를 띄워줍니다!
  • 설정 방법

3. versionCode 수정

  • 기존에 테스터 배포를 진행하며 버전 코드가 6으로 설정된 것을 정식 출시를 하며 1로 수정하였습니다!

closed #215

915dbfl added 2 commits June 2, 2025 16:00
네이티브 코드 라이브러리 관련 디버그 기호 파일 업로드 설정
@915dbfl 915dbfl self-assigned this Jun 2, 2025
@Copilot Copilot AI review requested due to automatic review settings June 2, 2025 08:34
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors build configuration and resource optimization settings while adding native library debug symbol support.

  • Moved build type configuration from KotlinAndroid.kt to app/build.gradle.kts to align with AAB requirements
  • Enabled resource shrinking, code minification, and full native debug symbol generation in the release build
  • Reset the versionCode from 6 to 1

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
build-logic/src/main/java/kr/boostcamp_2024/course/build_logic/KotlinAndroid.kt Removed the buildTypes block as its configuration is now in the app module
app/build.gradle.kts Added release build configuration with resource optimizations and native debug symbols; versionCode changed
Comments suppressed due to low confidence (1)

app/build.gradle.kts:11

  • The versionCode is decreased from 6 to 1, which may lead to deployment and upgrade issues. Consider ensuring that the versionCode increments as intended for proper version management.
versionCode = 1

@Cheonilyeong
Copy link
Collaborator

LGTM 👍

Copy link
Collaborator

@pengcon pengcon left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 ! 코파일럿 리뷰도 배워가네요 ㅋㅋㅋ 기념비적인 정식 버전 출시 😁

Copy link
Collaborator

@jay200333 jay200333 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다. 유리님 덕분에 새로운 정보 배워갑니다. 😁

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.

chore: 코드 및 리소스 최적화 설정 및 배포 진행
4 participants