Skip to content

ADFA-4551: Remove dead/duplicate vector drawables#1570

Merged
davidschachterADFA merged 5 commits into
stagefrom
fix/ADFA-4551-optimize-svgs
Jul 24, 2026
Merged

ADFA-4551: Remove dead/duplicate vector drawables#1570
davidschachterADFA merged 5 commits into
stagefrom
fix/ADFA-4551-optimize-svgs

Conversation

@davidschachterADFA

Copy link
Copy Markdown
Collaborator

Summary

  • Removes ic_launcher_animated.xml and ic_launcher_animated_dark.xml - confirmed zero references anywhere in the codebase (splash screen uses ic_launcher_foreground, launcher uses ic_launcher).
  • Removes ic_launcher_main.xml - byte-for-byte duplicate of ic_launcher_fg_vector.xml, which is the one actually referenced (common/src/main/res/layout/layout_nav_header.xml).
  • Removes drawable-night/cogo_brand_mark.xml - byte-for-byte identical to the base drawable, so dark mode now just falls back to it with no visual change.

Part of ADFA-4551 (APK size reduction: "optimize the SVG files in res/"). This PR covers only the zero-risk dedupe; reducing path-coordinate precision across the remaining ~278KB of vector drawables is a separate, riskier follow-up that needs on-device visual verification.

Test plan

  • :app:assembleV8Debug builds successfully
  • Visually confirm launcher icon, splash screen, and brand mark render unchanged in light/dark mode

ic_launcher_animated(.xml/_dark.xml) and ic_launcher_main.xml have no
references anywhere in the codebase (the splash screen uses
ic_launcher_foreground, the launcher uses ic_launcher). The -night
variant of cogo_brand_mark.xml is byte-for-byte identical to the base
drawable, so removing it changes nothing visually - dark mode now just
falls back to the base file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@davidschachterADFA, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 7 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ffc86144-419c-4863-86cc-b2621b57b734

📥 Commits

Reviewing files that changed from the base of the PR and between f4e0622 and 1cc229c.

📒 Files selected for processing (5)
  • logsender/src/main/res/drawable/ic_androidide_log.xml
  • resources/src/main/res/drawable-night/cogo_brand_mark.xml
  • resources/src/main/res/drawable/ic_launcher_animated.xml
  • resources/src/main/res/drawable/ic_launcher_animated_dark.xml
  • resources/src/main/res/drawable/ic_launcher_main.xml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ADFA-4551-optimize-svgs

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

Comment @coderabbitai help to get the list of available commands.

davidschachterADFA and others added 4 commits July 23, 2026 23:13
ic_androidide_log.xml carried 3+ decimal places throughout its path
data on a 32-unit viewport rendered at 24dp - far finer than a pixel
can represent. Rounded to 2 decimals, cutting the file by 13% with no
visible difference. The other large vector drawables checked
(androidide_header, ic_computer_vision, ic_launcher, etc.) already
used <=2 decimals in their path data, so nothing to trim there.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Pre-existing formatting debt (spaces instead of tabs, unwrapped
license comment) surfaced once the file was touched by the precision
trim, since Spotless's ratchet reformats any file that differs from
origin/stage.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@davidschachterADFA

Copy link
Copy Markdown
Collaborator Author

Added a second commit: trimmed path-coordinate precision in ic_androidide_log.xml (3+ decimals on a 32-unit viewport reduced to 2, ~13% smaller, no visible difference expected). The other large vector drawables checked already used <=2 decimals, so nothing else to trim.

Needs a visual check on-device before merge - please confirm the log/notification icon still renders correctly (Logcat/build-log viewer icon).

@hal-eisen-adfa hal-eisen-adfa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

My bad - didn't understand the fallback mechanism at first.

@davidschachterADFA
davidschachterADFA merged commit 212c2e8 into stage Jul 24, 2026
4 checks passed
@davidschachterADFA
davidschachterADFA deleted the fix/ADFA-4551-optimize-svgs branch July 24, 2026 00:45
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.

2 participants