Skip to content

Commit

Permalink
Fixed Vector Drawable bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashung Hung committed May 17, 2022
1 parent 522936b commit 85af06d
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 73 deletions.
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Android Res Export 是 Sketch 上的 Android 资源导出插件。

⚠️ 注意:4.x 版从写了所有功能,可能不支持 Sketch 72 以下的版本 。
⚠️ 注意:4.x 版重写了所有功能,可能不支持 Sketch 72 以下的版本 。

新增功能如下:自适应 Sketch 界面语言;导出所有资源时将出现选择窗口;导出矢量资源功能不再需要安装任何依赖;图层的色彩、形状、矢量代码都可以实时查看。

Expand Down
2 changes: 1 addition & 1 deletion assets/manifest_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"identifier": "com.ashung.hung.android_res_export",
"compatibleVersion": 3,
"bundleVersion": 1,
"version": "4.0.8",
"version": "4.0.12",
"disableCocoaScriptPreprocessor": true,
"appcast": "https://raw.githubusercontent.com//master/.appcast.xml",
"author": "Ashung Hung",
Expand Down
2 changes: 1 addition & 1 deletion assets/manifest_zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"identifier": "com.ashung.hung.android_res_export",
"compatibleVersion": 3,
"bundleVersion": 1,
"version": "4.0.8",
"version": "4.0.12",
"disableCocoaScriptPreprocessor": true,
"appcast": "https://raw.githubusercontent.com//master/.appcast.xml",
"author": "Ashung Hung",
Expand Down
167 changes: 101 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "android_res_export",
"productName": "Android Res Export",
"version": "4.0.11",
"version": "4.0.12",
"engines": {
"sketch": ">=3.0"
},
Expand Down Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"highlight.js": "^11.5.1",
"sketch-module-web-view": "^3.5.1",
"svg2vectordrawable": "^2.8.7"
"svg2vectordrawable": "^2.9.0"
},
"author": "Ashung Hung <ashung.hung@foxmail.com>"
}
2 changes: 1 addition & 1 deletion resources/export_vector_assets.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const svg2vectordrawable = require('svg2vectordrawable');
const svg2vectordrawable = require('svg2vectordrawable/src/main.browser');

const main = document.getElementById('main');
const preview = document.getElementById('preview');
Expand Down
2 changes: 1 addition & 1 deletion resources/view_vector_drawable_code.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const svg2vectordrawable = require('svg2vectordrawable');
const svg2vectordrawable = require('svg2vectordrawable/src/main.browser');

const highlight = require('highlight.js/lib/core');
const xml = require('highlight.js/lib/languages/xml');
Expand Down

0 comments on commit 85af06d

Please sign in to comment.