Skip to content

Commit d6dc094

Browse files
committed
Update vd-tool
1 parent fec913b commit d6dc094

File tree

62 files changed

+138
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+138
-21
lines changed

FigmaExport.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "FigmaExport"
3-
spec.version = "0.16.1"
3+
spec.version = "0.16.2"
44
spec.summary = "Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project."
55
spec.homepage = "https://github.com/RedMadRobot/figma-export"
66
spec.license = { type: "MIT", file: "LICENSE" }

Release/vd-tool/bin/vd-tool

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env sh
22

3+
#
4+
# Copyright 2015 the original author or authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
319
##############################################################################
420
##
521
## vd-tool start up script for UN*X
@@ -64,7 +80,8 @@ case "`uname`" in
6480
;;
6581
esac
6682

67-
CLASSPATH=$APP_HOME/lib/vd-tool.jar:$APP_HOME/lib/sdk-common-26.4.0-dev.jar:$APP_HOME/lib/sdklib-26.4.0-dev.jar:$APP_HOME/lib/builder-test-api-3.4.0-dev.jar:$APP_HOME/lib/builder-model-3.4.0-dev.jar:$APP_HOME/lib/ddmlib-26.4.0-dev.jar:$APP_HOME/lib/bcpkix-jdk15on-1.56.jar:$APP_HOME/lib/bcprov-jdk15on-1.56.jar:$APP_HOME/lib/repository-26.4.0-dev.jar:$APP_HOME/lib/layoutlib-api-26.4.0-dev.jar:$APP_HOME/lib/dvlib-26.4.0-dev.jar:$APP_HOME/lib/common-26.4.0-dev.jar:$APP_HOME/lib/kotlin-stdlib-jdk8-1.3.21.jar:$APP_HOME/lib/kotlin-reflect-1.3.21.jar:$APP_HOME/lib/protobuf-java-3.4.0.jar:$APP_HOME/lib/javax.inject-1.jar:$APP_HOME/lib/gson-2.8.0.jar:$APP_HOME/lib/commons-compress-1.12.jar:$APP_HOME/lib/httpmime-4.5.6.jar:$APP_HOME/lib/httpclient-4.5.6.jar:$APP_HOME/lib/httpcore-4.4.10.jar:$APP_HOME/lib/annotations-26.4.0-dev.jar:$APP_HOME/lib/kxml2-2.3.0.jar:$APP_HOME/lib/kotlin-stdlib-jdk7-1.3.21.jar:$APP_HOME/lib/kotlin-stdlib-1.3.21.jar:$APP_HOME/lib/annotations-13.0.jar:$APP_HOME/lib/javax.activation-1.2.0.jar:$APP_HOME/lib/jaxb-runtime-2.2.11.jar:$APP_HOME/lib/jimfs-1.1.jar:$APP_HOME/lib/guava-26.0-jre.jar:$APP_HOME/lib/kotlin-stdlib-common-1.3.21.jar:$APP_HOME/lib/jaxb-core-2.2.11.jar:$APP_HOME/lib/stax-ex-1.7.7.jar:$APP_HOME/lib/FastInfoset-1.2.13.jar:$APP_HOME/lib/commons-logging-1.2.jar:$APP_HOME/lib/commons-codec-1.10.jar:$APP_HOME/lib/jsr305-3.0.2.jar:$APP_HOME/lib/checker-qual-2.5.2.jar:$APP_HOME/lib/error_prone_annotations-2.1.3.jar:$APP_HOME/lib/j2objc-annotations-1.1.jar:$APP_HOME/lib/animal-sniffer-annotations-1.14.jar:$APP_HOME/lib/jaxb-api-2.2.12-b140109.1041.jar:$APP_HOME/lib/txw2-2.2.11.jar:$APP_HOME/lib/istack-commons-runtime-2.21.jar
83+
CLASSPATH=$APP_HOME/lib/vd-tool.jar:$APP_HOME/lib/sdk-common-27.1.0.jar:$APP_HOME/lib/sdklib-27.1.0.jar:$APP_HOME/lib/builder-test-api-4.1.0.jar:$APP_HOME/lib/builder-model-4.1.0.jar:$APP_HOME/lib/ddmlib-27.1.0.jar:$APP_HOME/lib/shared-27.1.0.jar:$APP_HOME/lib/bcpkix-jdk15on-1.56.jar:$APP_HOME/lib/bcprov-jdk15on-1.56.jar:$APP_HOME/lib/repository-27.1.0.jar:$APP_HOME/lib/layoutlib-api-27.1.0.jar:$APP_HOME/lib/dvlib-27.1.0.jar:$APP_HOME/lib/common-27.1.0.jar:$APP_HOME/lib/kotlin-stdlib-jdk8-1.3.72.jar:$APP_HOME/lib/kotlin-reflect-1.3.72.jar:$APP_HOME/lib/aapt2-proto-4.1.0-alpha01-6193524.jar:$APP_HOME/lib/protos-27.1.0.jar:$APP_HOME/lib/protobuf-java-3.10.0.jar:$APP_HOME/lib/javax.inject-1.jar:$APP_HOME/lib/trove4j-20160824.jar:$APP_HOME/lib/gson-2.8.5.jar:$APP_HOME/lib/commons-compress-1.12.jar:$APP_HOME/lib/httpmime-4.5.6.jar:$APP_HOME/lib/httpclient-4.5.6.jar:$APP_HOME/lib/httpcore-4.4.10.jar:$APP_HOME/lib/annotations-27.1.0.jar:$APP_HOME/lib/kxml2-2.3.0.jar:$APP_HOME/lib/jimfs-1.1.jar:$APP_HOME/lib/guava-28.1-jre.jar:$APP_HOME/lib/kotlin-stdlib-jdk7-1.3.72.jar:$APP_HOME/lib/kotlin-stdlib-1.3.72.jar:$APP_HOME/lib/annotations-13.0.jar:$APP_HOME/lib/javax.activation-1.2.0.jar:$APP_HOME/lib/jaxb-runtime-2.3.1.jar:$APP_HOME/lib/failureaccess-1.0.1.jar:$APP_HOME/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:$APP_HOME/lib/jsr305-3.0.2.jar:$APP_HOME/lib/checker-qual-2.8.1.jar:$APP_HOME/lib/error_prone_annotations-2.3.2.jar:$APP_HOME/lib/j2objc-annotations-1.3.jar:$APP_HOME/lib/animal-sniffer-annotations-1.18.jar:$APP_HOME/lib/kotlin-stdlib-common-1.3.72.jar:$APP_HOME/lib/jaxb-api-2.3.1.jar:$APP_HOME/lib/txw2-2.3.1.jar:$APP_HOME/lib/istack-commons-runtime-3.0.7.jar:$APP_HOME/lib/stax-ex-1.8.jar:$APP_HOME/lib/FastInfoset-1.2.15.jar:$APP_HOME/lib/javax.activation-api-1.2.0.jar:$APP_HOME/lib/commons-logging-1.2.jar:$APP_HOME/lib/commons-codec-1.10.jar
84+
6885

6986
# Determine the Java command to use to start the JVM.
7087
if [ -n "$JAVA_HOME" ] ; then
@@ -109,10 +126,11 @@ if $darwin; then
109126
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110127
fi
111128

112-
# For Cygwin, switch paths to Windows format before running java
113-
if $cygwin ; then
129+
# For Cygwin or MSYS, switch paths to Windows format before running java
130+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
114131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133+
116134
JAVACMD=`cygpath --unix "$JAVACMD"`
117135

118136
# We build the pattern for arguments to be converted via cygpath
@@ -138,19 +156,19 @@ if $cygwin ; then
138156
else
139157
eval `echo args$i`="\"$arg\""
140158
fi
141-
i=$((i+1))
159+
i=`expr $i + 1`
142160
done
143161
case $i in
144-
(0) set -- ;;
145-
(1) set -- "$args0" ;;
146-
(2) set -- "$args0" "$args1" ;;
147-
(3) set -- "$args0" "$args1" "$args2" ;;
148-
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149-
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150-
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151-
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152-
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153-
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
162+
0) set -- ;;
163+
1) set -- "$args0" ;;
164+
2) set -- "$args0" "$args1" ;;
165+
3) set -- "$args0" "$args1" "$args2" ;;
166+
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167+
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168+
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169+
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170+
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171+
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154172
esac
155173
fi
156174

@@ -159,14 +177,9 @@ save () {
159177
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160178
echo " "
161179
}
162-
APP_ARGS=$(save "$@")
180+
APP_ARGS=`save "$@"`
163181

164182
# Collect all arguments for the java command, following the shell quoting and substitution rules
165183
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $VD_TOOL_OPTS -classpath "\"$CLASSPATH\"" com.android.ide.common.vectordrawable.VdCommandLineTool "$APP_ARGS"
166184

167-
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168-
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169-
cd "$(dirname "$0")"
170-
fi
171-
172185
exec "$JAVACMD" "$@"

Release/vd-tool/bin/vd-tool.bat

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem https://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
17+
@if "%DEBUG%" == "" @echo off
18+
@rem ##########################################################################
19+
@rem
20+
@rem vd-tool startup script for Windows
21+
@rem
22+
@rem ##########################################################################
23+
24+
@rem Set local scope for the variables with windows NT shell
25+
if "%OS%"=="Windows_NT" setlocal
26+
27+
set DIRNAME=%~dp0
28+
if "%DIRNAME%" == "" set DIRNAME=.
29+
set APP_BASE_NAME=%~n0
30+
set APP_HOME=%DIRNAME%..
31+
32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
35+
@rem Add default JVM options here. You can also use JAVA_OPTS and VD_TOOL_OPTS to pass JVM options to this script.
36+
set DEFAULT_JVM_OPTS=
37+
38+
@rem Find java.exe
39+
if defined JAVA_HOME goto findJavaFromJavaHome
40+
41+
set JAVA_EXE=java.exe
42+
%JAVA_EXE% -version >NUL 2>&1
43+
if "%ERRORLEVEL%" == "0" goto init
44+
45+
echo.
46+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47+
echo.
48+
echo Please set the JAVA_HOME variable in your environment to match the
49+
echo location of your Java installation.
50+
51+
goto fail
52+
53+
:findJavaFromJavaHome
54+
set JAVA_HOME=%JAVA_HOME:"=%
55+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56+
57+
if exist "%JAVA_EXE%" goto init
58+
59+
echo.
60+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61+
echo.
62+
echo Please set the JAVA_HOME variable in your environment to match the
63+
echo location of your Java installation.
64+
65+
goto fail
66+
67+
:init
68+
@rem Get command-line arguments, handling Windows variants
69+
70+
if not "%OS%" == "Windows_NT" goto win9xME_args
71+
72+
:win9xME_args
73+
@rem Slurp the command line arguments.
74+
set CMD_LINE_ARGS=
75+
set _SKIP=2
76+
77+
:win9xME_args_slurp
78+
if "x%~1" == "x" goto execute
79+
80+
set CMD_LINE_ARGS=%*
81+
82+
:execute
83+
@rem Setup the command line
84+
85+
set CLASSPATH=%APP_HOME%\lib\vd-tool.jar;%APP_HOME%\lib\sdk-common-27.1.0.jar;%APP_HOME%\lib\sdklib-27.1.0.jar;%APP_HOME%\lib\builder-test-api-4.1.0.jar;%APP_HOME%\lib\builder-model-4.1.0.jar;%APP_HOME%\lib\ddmlib-27.1.0.jar;%APP_HOME%\lib\shared-27.1.0.jar;%APP_HOME%\lib\bcpkix-jdk15on-1.56.jar;%APP_HOME%\lib\bcprov-jdk15on-1.56.jar;%APP_HOME%\lib\repository-27.1.0.jar;%APP_HOME%\lib\layoutlib-api-27.1.0.jar;%APP_HOME%\lib\dvlib-27.1.0.jar;%APP_HOME%\lib\common-27.1.0.jar;%APP_HOME%\lib\kotlin-stdlib-jdk8-1.3.72.jar;%APP_HOME%\lib\kotlin-reflect-1.3.72.jar;%APP_HOME%\lib\aapt2-proto-4.1.0-alpha01-6193524.jar;%APP_HOME%\lib\protos-27.1.0.jar;%APP_HOME%\lib\protobuf-java-3.10.0.jar;%APP_HOME%\lib\javax.inject-1.jar;%APP_HOME%\lib\trove4j-20160824.jar;%APP_HOME%\lib\gson-2.8.5.jar;%APP_HOME%\lib\commons-compress-1.12.jar;%APP_HOME%\lib\httpmime-4.5.6.jar;%APP_HOME%\lib\httpclient-4.5.6.jar;%APP_HOME%\lib\httpcore-4.4.10.jar;%APP_HOME%\lib\annotations-27.1.0.jar;%APP_HOME%\lib\kxml2-2.3.0.jar;%APP_HOME%\lib\jimfs-1.1.jar;%APP_HOME%\lib\guava-28.1-jre.jar;%APP_HOME%\lib\kotlin-stdlib-jdk7-1.3.72.jar;%APP_HOME%\lib\kotlin-stdlib-1.3.72.jar;%APP_HOME%\lib\annotations-13.0.jar;%APP_HOME%\lib\javax.activation-1.2.0.jar;%APP_HOME%\lib\jaxb-runtime-2.3.1.jar;%APP_HOME%\lib\failureaccess-1.0.1.jar;%APP_HOME%\lib\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;%APP_HOME%\lib\jsr305-3.0.2.jar;%APP_HOME%\lib\checker-qual-2.8.1.jar;%APP_HOME%\lib\error_prone_annotations-2.3.2.jar;%APP_HOME%\lib\j2objc-annotations-1.3.jar;%APP_HOME%\lib\animal-sniffer-annotations-1.18.jar;%APP_HOME%\lib\kotlin-stdlib-common-1.3.72.jar;%APP_HOME%\lib\jaxb-api-2.3.1.jar;%APP_HOME%\lib\txw2-2.3.1.jar;%APP_HOME%\lib\istack-commons-runtime-3.0.7.jar;%APP_HOME%\lib\stax-ex-1.8.jar;%APP_HOME%\lib\FastInfoset-1.2.15.jar;%APP_HOME%\lib\javax.activation-api-1.2.0.jar;%APP_HOME%\lib\commons-logging-1.2.jar;%APP_HOME%\lib\commons-codec-1.10.jar
86+
87+
88+
@rem Execute vd-tool
89+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %VD_TOOL_OPTS% -classpath "%CLASSPATH%" com.android.ide.common.vectordrawable.VdCommandLineTool %CMD_LINE_ARGS%
90+
91+
:end
92+
@rem End local scope for the variables with windows NT shell
93+
if "%ERRORLEVEL%"=="0" goto mainEnd
94+
95+
:fail
96+
rem Set variable VD_TOOL_EXIT_CONSOLE if you need the _script_ return code instead of
97+
rem the _cmd.exe /c_ return code!
98+
if not "" == "%VD_TOOL_EXIT_CONSOLE%" exit 1
99+
exit /b 1
100+
101+
:mainEnd
102+
if "%OS%"=="Windows_NT" endlocal
103+
104+
:omega
-290 KB
Binary file not shown.
305 KB
Binary file not shown.
658 KB
Binary file not shown.
-3.4 KB
Binary file not shown.
3.37 KB
Binary file not shown.
8.22 KB
Binary file not shown.
-40.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)