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

Fix vector icon references in layout files #2594

Merged
merged 1 commit into from
Jun 15, 2020

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

Add vectorDrawables.useSupportLibrary = true to build.gradle [0].
Without this, when targeting API <= 19, PNG versions of vector
drawables will be generated at build time. This reduces the SDK's
filesize from 219kb to 189kb.

Use app:srcCompat instead of android:src when referencing vector
drawables.

Fix some drawable dimensions and layouts.

[0] https://developer.android.com/guide/topics/graphics/vector-drawable-resources#vector-drawables-backward-solution

Motivation

Fixes #2578

Testing

Manually tested

Add `vectorDrawables.useSupportLibrary = true` to `build.gradle` [0].
Without this, when targeting API <= 19, PNG versions of vector
drawables will be generated at build time. This reduces the SDK's
filesize from 219kb to 189kb.

Use `app:srcCompat` instead of `android:src` when referencing vector
drawables.

Fix some drawable dimensions and layouts.

Fixes #2578

[0] https://developer.android.com/guide/topics/graphics/vector-drawable-resources#vector-drawables-backward-solution
@chander-stripe
Copy link
Contributor

I just had to do this for the standalone app too haha

@mshafrir-stripe mshafrir-stripe merged commit 8bbaa54 into master Jun 15, 2020
@mshafrir-stripe mshafrir-stripe deleted the fix-vector-drawables branch June 15, 2020 16:39
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.

Google Pay Review Issue
3 participants