Skip to content

Conversation

@poliver
Copy link
Contributor

@poliver poliver commented Jun 14, 2025

This PR cleans up Android's legacy app launcher assets in favor of the adaptive icon vector assets that are already present in the app.

Since the minimum SDK is now 26 (where adaptive icons were introduced), we can:

  • Rename mipmap-anydpi-v26/ to just mipmap-anydpi/.
  • Remove the .webp assets. They are only used on pre-26 devices, which are no longer supported.

I also relocated the vector drawable ic_launcher_foreground.xml from drawable/ to drawable-anydpi/ to align with convention for vector drawables.

Please let me know if you'd like screenshots of these changes going back to API 26. If this PR is merged, I can open a follow-up PR with similar cleanup for other legacy assets.

Note: I did need to run a gradle clean to force AAPT to refresh. Invalidating Android Studio (if you're using that) caches may also be necessary.

@veloce
Copy link
Contributor

veloce commented Jun 14, 2025

Thanks! Such PRs are always appreciated.

Please let me know if you'd like screenshots of these changes going back to API 26. If this PR is merged, I can open a follow-up PR with similar cleanup for other legacy assets.

Are we supposed to see any visual difference?

@veloce
Copy link
Contributor

veloce commented Jun 14, 2025

Just fyi, I'll be on vacation next week, so I'll merge this PR after that.

@poliver
Copy link
Contributor Author

poliver commented Jun 14, 2025

Are we supposed to see any visual difference?

Nope, this basically just removes unused assets.

@veloce
Copy link
Contributor

veloce commented Jun 15, 2025

Merging it then!

@veloce veloce merged commit 71431dd into lichess-org:main Jun 15, 2025
@poliver poliver deleted the adaptive_icon branch June 15, 2025 16:49
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