Skip to content
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

[AOSP-pick] Remove build system check in NewVectorAssetAction #7464

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

sellophane
Copy link
Collaborator

Cherry pick AOSP commit d33b1db1cb84f9320718a889d346497db79362c8.

The check, for whether PNG generation is supported, and subsequent
check against the minSdk version, is substantially incomplete, eliding
as it does any mention of the support library's varying compatibility
support for vector drawables.

Given this, the check is of limited utility, and (worse) actively
prevents the user from doing what they need to in cases where their
action is completely valid. Remove the check, which also makes the
question of whether the build system automatically generates PNGs for
vector drawables irrelevant.

Bug: none filed
Test: existing
Change-Id: I11a3df3b57df714f5f4e71ced88bae9a9ad7e0d2

AOSP: d33b1db1cb84f9320718a889d346497db79362c8

The check, for whether PNG generation is supported, and subsequent
check against the minSdk version, is substantially incomplete, eliding
as it does any mention of the support library's varying compatibility
support for vector drawables.

Given this, the check is of limited utility, and (worse) actively
prevents the user from doing what they need to in cases where their
action is completely valid.  Remove the check, which also makes the
question of whether the build system automatically generates PNGs for
vector drawables irrelevant.

Bug: none filed
Test: existing
Change-Id: I11a3df3b57df714f5f4e71ced88bae9a9ad7e0d2

AOSP: d33b1db1cb84f9320718a889d346497db79362c8
@sellophane sellophane requested a review from mai93 as a code owner March 12, 2025 15:09
@sellophane sellophane requested a review from LeFrosch March 12, 2025 15:09
@github-actions github-actions bot added the awaiting-review Awaiting review from Bazel team on PRs label Mar 12, 2025
@sgowroji sgowroji added the product: Android Studio Android Studio plugin label Mar 13, 2025
Copy link
Collaborator

@odisseus odisseus left a comment

Choose a reason for hiding this comment

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

ASWB only, no effect

@sellophane sellophane merged commit e0dbddd into master Mar 14, 2025
9 checks passed
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: Android Studio Android Studio plugin
Projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants