Package com.quittle.svg2androidvector
Class Svg2AndroidVectorExtension
java.lang.Object
com.quittle.svg2androidvector.Svg2AndroidVectorExtension
Provides configuration for the
Svg 2 Android Vector Plugin.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfailOnWarning(boolean failOnWarning) Sets the flag when build should fail when there are warnings converting the SVG.booleanWhether or not to fail the task when there are warnings converting the SVG.voidsetFailOnWarning(boolean failOnWarning) Sets the flag when build should fail when there are warnings converting the SVG.
-
Constructor Details
-
Svg2AndroidVectorExtension
public Svg2AndroidVectorExtension()Default constructor.
-
-
Method Details
-
getFailOnWarning
public boolean getFailOnWarning()Whether or not to fail the task when there are warnings converting the SVG.- Returns:
- true if the build should fail.
-
setFailOnWarning
public void setFailOnWarning(boolean failOnWarning) Sets the flag when build should fail when there are warnings converting the SVG. If the SVG fails to convert entirely, then an empty XML file will be generating, causing AAPT to complain.- Parameters:
failOnWarning- If the build should fail.
-
failOnWarning
public void failOnWarning(boolean failOnWarning) Sets the flag when build should fail when there are warnings converting the SVG. If the SVG fails to convert entirely, then an empty XML file will be generating, causing AAPT to complain.- Parameters:
failOnWarning- If the build should fail.
-