diff --git a/README.md b/README.md index 483dca2..4373297 100755 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Exports assets as a VectorDrawable for Android. Say goodbye to a bajillion asset ![screenshot](img/screenshot1.png) -Supports [VectorDrawable] as well as [vector-compat]. +Supports [VectorDrawable], [VectorDrawableCompat] as well as [vector-compat] Added in the option to generate a VectorDrawable without the compat options. @@ -37,4 +37,5 @@ _NOTE: If your Mac has not installed GitHub client, You need to install [GitHub [svg2android]:https://github.com/inloop/svg2android [sketch-export-assets]:https://github.com/geertwille/sketch-export-assets [VectorDrawable]:https://developer.android.com/reference/android/graphics/drawable/VectorDrawable.html +[VectorDrawableCompat]:https://developer.android.com/guide/topics/graphics/vector-drawable-resources.html#vector-drawables-backward-solution [vector-compat]:https://github.com/wnafee/vector-compat diff --git a/library/generator.js b/library/generator.js index 7629a19..a493b8f 100644 --- a/library/generator.js +++ b/library/generator.js @@ -309,7 +309,8 @@ function parseFile(inputXml) { //XML Vector start generatedOutput = '\n'; generatedOutput += '' : ''); } -function generateCompatAttr(name, val, groupLevel, def, end) { - if (typeof val === "undefined" || val == def) return ""; - return INDENT.repeat(groupLevel + 2) + 'app:{0}="{1}"{2}\n'.f(name, val, end ? ' />' : ''); -} - function wordwrap(str, width, brk, cut) { brk = brk || '\n'; width = width || 75;