Factory

class Factory(logger: Logger, fileManager: FileManager)(source)

Constructors

Link copied to clipboard
constructor(logger: Logger, fileManager: FileManager)

Functions

Link copied to clipboard
fun optimize(file: Path): Path

Checks the type of file (SVG or AVG) and invokes the correct optimization process using the appropriate optimization tools.

Link copied to clipboard
fun verifyDependency(hasSvg: Boolean, hasAvg: Boolean)

Verify the availability of dependencies required by the optimizers.