Skip to content

chore: 앱 용량 줄이기#143

Merged
easyhooon merged 2 commits intodevelopfrom
BOOK-257-feature/#140
Aug 13, 2025
Merged

chore: 앱 용량 줄이기#143
easyhooon merged 2 commits intodevelopfrom
BOOK-257-feature/#140

Conversation

@easyhooon
Copy link
Copy Markdown
Contributor

@easyhooon easyhooon commented Aug 11, 2025

🔗 관련 이슈

📙 작업 설명

  • 앱 내에서 사용하는 png 파일들을 webp로 무손실 형식 변환하여 앱 용량 감소

🧪 테스트 내역 (선택)

  • 주요 기능 정상 동작 확인
  • 브라우저/기기에서 동작 확인
  • 엣지 케이스 테스트 완료
  • 기존 기능 영향 없음

💬 추가 설명 or 리뷰 포인트 (선택)

  • 이슈 내 레퍼런스로 소개드렸던 https://tinypng.com/ 사이트에서 진행하려다 무손실이라는 언급이 없어서(보통 webp로 변환하는 경우 손실이 발생), https://www.freeconvert.com/ko/png-to-webp 무손실 형식 변환을 지원하는 다른 사이트에서 진행했습니다.
  • CI step에 추가하고 싶었으나, email을 입력해도 not found라고 떠서 가내수공업 진행했고, 앞으로 png 추가시에도 webp로 변환 수작업(?)해서 추가하면 좋을 것 같습니다.

Summary by CodeRabbit

  • Chores
    • Android 앱 배포 워크플로에서 Firebase 배포 대상 그룹을 업데이트했습니다.
    • 앱 기능이나 사용자 경험에 대한 변경은 없습니다.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Aug 11, 2025

Walkthrough

Firebase App Distribution 워크플로우에서 배포 대상 그룹을 testers에서 reed-android-testers로 변경했습니다. 다른 설정과 단계는 변경되지 않았습니다.

Changes

Cohort / File(s) Change Summary
CI/CD: Firebase Distribution 그룹 변경
.github/workflows/android-cd.yml
Firebase Distribution action의 groups 값을 testers → reed-android-testers로 수정. 나머지 파라미터(appId, serviceCredentialsFileContent, file, releaseNotes) 및 단계 로직 불변.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Assessment against linked issues

Objective Addressed Explanation
앱 내 이미지 에셋 압축 및 최적화로 설치 용량 감소 (#140) CI 배포 그룹만 변경되었으며 이미지 에셋 최적화 작업은 없음.

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
Firebase Distribution 배포 그룹을 testers에서 reed-android-testers로 변경 (.github/workflows/android-cd.yml) 이슈 #140의 범위(이미지 에셋 압축/최적화, 앱 용량 감소)와 무관한 CI 배포 설정 변경.

Poem

푸른 빌드 초원에 발 굴-굴-굴 🐾
테스트 토끼 모여라, 그룹이 바뀌었지!
reed-android burrow로 점프-점프-점프 🥕
패키지는 그대로, 길만 달라졌네—
배포 바람 따라 오늘도 깡총!

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch BOOK-257-feature/#140

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
.github/workflows/android-cd.yml (2)

105-105: Firebase App Distribution 그룹 변경 — 존재/권한 확인 필요

reed-android-testers 그룹 alias가 Firebase 콘솔(App Distribution)에서 실제로 존재하는지, 그리고 업로드에 사용하는 서비스 계정(serviceCredentialsFileContent)에 App Distribution 업로드 권한이 있는지 확인해 주세요. 그룹 alias는 쉼표로 구분된 문자열 목록이며, 별칭 철자/대소문자 불일치로 인한 실패가 빈번합니다. 필요 시 그룹을 리포지토리 변수로 외부화해 운영 환경별로 쉽게 전환하는 것도 권장합니다.

선택 사항: 그룹을 변수로 관리하는 예시

 jobs:
   cd-build:
     runs-on: ubuntu-latest
+    env:
+      FIREBASE_DIST_GROUPS: ${{ vars.FIREBASE_DIST_GROUPS || 'reed-android-testers' }}
 ...
       -   name: Upload artifact to Firebase App Distribution
           uses: wzieba/Firebase-Distribution-Github-Action@v1
           with:
             appId: ${{secrets.FIREBASE_RELEASE_APP_ID}}
             serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
-            groups: reed-android-testers
+            groups: ${{ env.FIREBASE_DIST_GROUPS }}
             file: app/build/outputs/bundle/release/app-release.aab
             releaseNotes: ${{ steps.firebase_release_note.outputs.notes }}

7-11: PR 이벤트에서 배포/릴리스까지 실행되는 플로우 — 의도 확인 필요

이 워크플로우는 pull_request 트리거에서 바로 AAB 빌드, GitHub Release 생성, Firebase 배포까지 수행합니다. 포크에서 온 PR에는 시크릿이 전달되지 않아 실패할 수 있고, PR 단계에서 릴리스/배포를 실행하는 것은 운영 정책에 따라 부적절할 수 있습니다. 원하시는 동작이 “머지 후” 혹은 “태그 푸시 시” 배포라면 트리거 또는 스텝 조건을 조정해 주세요.

예시: 배포/릴리스는 push(main, tags)에서만 실행하도록 조건 추가

 on:
-  pull_request:
-    branches:
-      - main
+  pull_request:
+    branches: [ main ]
+  push:
+    branches: [ main ]
+    tags:
+      - 'v*'

 ...
-      -   name: Create Github Release
+      -   name: Create Github Release
+        if: ${{ github.event_name == 'push' }}
         uses: softprops/action-gh-release@v2
         with:
           tag_name: ${{ steps.extract_version.outputs.version }}
           release_name: ${{ steps.extract_version.outputs.version }}
           generate_release_notes: true

-      -   name: Upload artifact to Firebase App Distribution
+      -   name: Upload artifact to Firebase App Distribution
+        if: ${{ github.event_name == 'push' }}
         uses: wzieba/Firebase-Distribution-Github-Action@v1

Also applies to: 93-109

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c38f9d4 and b27f77b.

⛔ Files ignored due to path filters (20)
  • core/designsystem/src/main/res/drawable/img_emotion_insight.png is excluded by !**/*.png
  • core/designsystem/src/main/res/drawable/img_emotion_joy.png is excluded by !**/*.png
  • core/designsystem/src/main/res/drawable/img_emotion_sadness.png is excluded by !**/*.png
  • core/designsystem/src/main/res/drawable/img_emotion_warmth.png is excluded by !**/*.png
  • feature/detail/src/main/res/drawable/img_insight.png is excluded by !**/*.png
  • feature/detail/src/main/res/drawable/img_joy.png is excluded by !**/*.png
  • feature/detail/src/main/res/drawable/img_sad.png is excluded by !**/*.png
  • feature/detail/src/main/res/drawable/img_warm.png is excluded by !**/*.png
  • feature/home/src/main/res/drawable/img_empty_book.png is excluded by !**/*.png
  • feature/home/src/main/res/drawable/img_home_seed.png is excluded by !**/*.png
  • feature/home/src/main/res/drawable/img_reed_logo.png is excluded by !**/*.png
  • feature/home/src/main/res/drawable/img_seed_count.png is excluded by !**/*.png
  • feature/login/src/main/res/drawable/img_reed_logo_big.png is excluded by !**/*.png
  • feature/onboarding/src/main/res/drawable/img_onboarding_first.png is excluded by !**/*.png
  • feature/onboarding/src/main/res/drawable/img_onboarding_second.png is excluded by !**/*.png
  • feature/onboarding/src/main/res/drawable/img_onboarding_third.png is excluded by !**/*.png
  • feature/record/src/main/res/drawable/img_frame_marker.png is excluded by !**/*.png
  • feature/record/src/main/res/drawable/img_record_complete.png is excluded by !**/*.png
  • feature/search/src/main/res/drawable/img_book_register_complete.png is excluded by !**/*.png
  • feature/splash/src/main/res/drawable/ic_reed_logo.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • .github/workflows/android-cd.yml (1 hunks)
🔇 Additional comments (1)
.github/workflows/android-cd.yml (1)

1-109: PR 설명과 실제 변경 파일의 불일치

PR 설명은 PNG→WebP 변환(용량 최적화)을 주된 변경점으로 서술하고 있으나, 본 워크플로우 파일에서는 Firebase 배포 그룹만 변경되었습니다. 실질적인 리소스 변환 커밋이 동일 PR에 포함되어 있는지, 혹은 별도 PR로 분리했는지 확인 부탁드립니다. 릴리스 노트 자동 생성 단계가 PR 제목/커밋을 그대로 노출하므로, 변경 내용과 릴리스 산출물의 일관성을 유지하는 것이 좋습니다.

@easyhooon easyhooon mentioned this pull request Aug 12, 2025
@seoyoon513
Copy link
Copy Markdown
Contributor

seoyoon513 commented Aug 13, 2025

@easyhooon
안드로이드 스튜디오 내에서도 webp 변환을 지원하더라구요! Lossless encoding도 지원하고 여러개 선택 후 한꺼번에 변환도 가능해서 이거 활용하면 좋을 것 같아요

우클릭 > Convert to WebP

image

Copy link
Copy Markdown
Contributor

@seoyoon513 seoyoon513 left a comment

Choose a reason for hiding this comment

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

Gooooood 👍👍👍

@easyhooon
Copy link
Copy Markdown
Contributor Author

안드로이드 스튜디오 내에서도 webp 변환을 지원하더라구요! Lossless encoding도 지원하고 여러개 선택 후 한꺼번에 변환도 가능해서 이거 활용하면 좋을 것 같아요

우클릭 > Convert to WebP

몰랐슴다 이게 더 좋을 것 같네요

@easyhooon easyhooon merged commit c7bdf0f into develop Aug 13, 2025
5 checks passed
@easyhooon easyhooon deleted the BOOK-257-feature/#140 branch August 13, 2025 02:46
@seoyoon513 seoyoon513 changed the title [BOOK-257] chore: 앱 용량 줄이기 chore: 앱 용량 줄이기 Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOOK-257/feat] 앱 용량 줄이기

2 participants