Class Svg2AndroidVectorExtension

java.lang.Object
com.quittle.svg2androidvector.Svg2AndroidVectorExtension

public class Svg2AndroidVectorExtension extends Object
Provides configuration for the Svg 2 Android Vector Plugin.
  • 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.