jzbrooks / vgo

vector graphic optimization
MIT License
43 stars 2 forks source link

Avoid android resources in bake transformation vector drawable optimization #17

Closed jzbrooks closed 4 years ago

jzbrooks commented 4 years ago

BakeTransformations assumes that paths will have non-empty path data by calling .first(). This isn't necessarily true if path data is specified with string resources.

Transformation values can also be specified with a an @integer resource. Since we don't understand what that value might be and have no way to follow it (for the time being), just ignore it.

jzbrooks commented 4 years ago

This can be sort of tricky since baking transformations may happen higher in the group hierarchy and be unable to be processed further down the hierarchy.