Skip to content

Add feature flag to enable vector drawable support#45394

Closed
Abbondanzo wants to merge 1 commit into
facebook:mainfrom
Abbondanzo:export-D59647903
Closed

Add feature flag to enable vector drawable support#45394
Abbondanzo wants to merge 1 commit into
facebook:mainfrom
Abbondanzo:export-D59647903

Conversation

@Abbondanzo
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal]

The current Image implementation does not support loading vector drawables on Android, and support has been requested many times (issue, issue). I am proposing to put support behind this feature flag in order to validate against performance regressions. Adding support will require reading files from disk to determine if the resource is actually an XML file.

Differential Revision: D59647903

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jul 11, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59647903

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jul 11, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 21,267,948 +89
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 24,465,022 +39
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 3f83409
Branch: main

Summary:
Pull Request resolved: facebook#45394

Changelog: [Internal]

The current `Image` implementation does not support loading [vector drawables](https://developer.android.com/develop/ui/views/graphics/vector-drawable-resources) on Android, and support has been requested many times ([issue](facebook#16651), [issue](facebook#27502)). I am proposing to put support behind this feature flag in order to validate against performance regressions. Adding support will require reading files from disk to determine if the resource is actually an XML file.

Differential Revision: D59647903
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D59647903

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 12, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in bac5f1f.

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by Peter Abbondanzo in bac5f1f.

When will my fix make it into a release? | How to file a pick request?

@Abbondanzo Abbondanzo deleted the export-D59647903 branch October 11, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants