ParserConfig

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)(source)

Configuration parameters for the Parser class.

Constructors

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

Properties

Link copied to clipboard

if true, icons will be added to the Material-UI icon set E.g:

Link copied to clipboard

regex to exclude some icons from the parsing

Link copied to clipboard

optional formatting configuration for code emission. When null, the processor will attempt to resolve formatting from .editorconfig.

Link copied to clipboard

optional partial overrides applied on top of the resolved FormatConfig. Use this to let CLI flags override individual fields while still inheriting unspecified values from .editorconfig.

Link copied to clipboard

if true, the dev.tonholo.s2c.Processor won't request to delete the temp folder. Useful when running parallel execution.

Link copied to clipboard

if true, a KMP compatible @Preview Composable function will be generated for the parsed icon.

Link copied to clipboard

if true, the generated icon will be set as internal, hiding it from outside modules

Link copied to clipboard

if true, minifies the output removing all generated comments and inlining the path functions parameters

Link copied to clipboard

if true, no @Preview Composable function will be generated for the parsed icon.

Link copied to clipboard

if true, executes an SVG/AVG optimization before generating the Compose Icon code

Link copied to clipboard
val pkg: String

The package name that the generated code is going to be in

Link copied to clipboard

The type of the class or object that will be used as a receiver for the extension Icon property in the generated code.

Link copied to clipboard

if true, no console output will be displayed.

Link copied to clipboard

The Compose theme. If the full qualifier is not provided, you'll need to add the import to your code after generated. E.g: dev.tonholo.myapp.theme.MyAppTheme