booster / com.didiglobal.booster.compression.task / CompressImages

CompressImages

abstract class CompressImages<T : CompressionOptions> : DefaultTask

Represents task for image compression

Author
johnsonlee

Constructors

<init>

Represents task for image compression

CompressImages()

Properties

command

val command: Command

compressor

val compressor: File

filter

The resource path filter

var filter: ResourceNameFilter

images

lateinit var images: () -> Collection<File>

options

lateinit var options: T

results

lateinit var results: CompressionResults

tool

lateinit var tool: CompressionTool

variant

lateinit var variant: BaseVariant

variantName

val variantName: String

Functions

ignore

fun ignore(resName: String, dest: File, src: File): Unit

includes

open fun includes(arg: Pair<File, Metadata>): Boolean
open fun includes(input: File): Boolean