Package-level declarations

Types

Link copied to clipboard

ContentParser implementation that parses AVG (Android Vector Graphics) XML content into IconFileContents using the XmlParser.

Link copied to clipboard
fun interface ContentParser

Parses raw string content (SVG or AVG markup) into an IconFileContents domain model.

Link copied to clipboard
typealias IconMapperFn = (String) -> String

A typealias for a mapper function to change the icon name before parsing.

Link copied to clipboard
class ImageParser(fileManager: FileManager, contentParsers: Map<FileType, ContentParser>)

Parses SVG and Android Vector Drawable files into IconFileContents.

Link copied to clipboard
data class ParserConfig(val pkg: String, val theme: String, val optimize: Boolean, val receiverType: String?, val addToMaterial: Boolean, val kmpPreview: Boolean, val noPreview: Boolean, val makeInternal: Boolean, val minified: Boolean, val exclude: Regex? = null, val silent: Boolean = false, val keepTempFolder: Boolean = false, val formatConfig: FormatConfig? = null, val formatOverrides: FormatConfig.Overrides? = null)

Configuration parameters for the Parser class.

Link copied to clipboard

ContentParser implementation that parses SVG content into IconFileContents.

Link copied to clipboard
class SvgParser(logger: Logger = NoOpLogger) : XmlParser

A parser for SVG (Scalable Vector Graphics) files.

Link copied to clipboard
abstract class XmlParser(val logger: Logger = NoOpLogger)

Abstract class representing an XML parser.

Functions

Link copied to clipboard