Page MenuHomePhabricator

[Dev] Image assets should be derived from SVGs by the Android toolchain
Closed, ResolvedPublic3 Estimated Story Points

Description

Android Support library v23.2 seems to support vector drawables on all APIs:
http://android-developers.blogspot.com/2016/02/android-support-library-232.html

I'm not sure if we can user our SVGs verbatim but presumably allowing the Android toolchain to cut and optimize our assets from a single source will produce the best result with the least code.

Some more tips here for the platform version of VectorDrawables:
https://medium.com/@webalys/die-png-die-how-to-use-vector-icons-in-your-apps-d884c9c63e93#.e1ji7fz2t

Alternative library from Trellolololo:
https://github.com/trello/victor

Event Timeline

Change 284253 had a related patch set uploaded (by Dbrant):
Introduction to vector drawables.

https://gerrit.wikimedia.org/r/284253

Change 284379 had a related patch set uploaded (by Dbrant):
Vector drawables, part 2.

https://gerrit.wikimedia.org/r/284379

Change 284253 merged by jenkins-bot:
Introduction to vector drawables.

https://gerrit.wikimedia.org/r/284253

Change 284379 merged by jenkins-bot:
Vector drawables, part 2.

https://gerrit.wikimedia.org/r/284379

Dbrant set the point value for this task to 3.
Dbrant moved this task from To Do to QA Signoff on the Mobile-App-Android-Sprint-80-Mercury board.

QA: no functional changes intended.

Testing Wikipedia app 2.1.143-alpha-2016-04-20 on Android 5.1 ZTE phone. No issues uncovered during exploratory testing.