booster / com.didiglobal.booster.compression / SimpleCompressionTaskCreator

SimpleCompressionTaskCreator

class SimpleCompressionTaskCreator : CompressionTaskCreator

Represents a simple implementation of CompressionTaskCreator

Author
johnsonlee

Constructors

<init>

Represents a simple implementation of CompressionTaskCreator

SimpleCompressionTaskCreator(tool: CompressionTool, compressor: (Boolean) -> KClass<out CompressImages<out CompressionOptions>>)

Functions

createCompressionTask

Returns a task for compression

fun createCompressionTask(variant: BaseVariant, results: CompressionResults, name: String, supplier: () -> Collection<File>, ignores: Set<Wildcard>, vararg deps: TaskProvider<out Task>): TaskProvider<out CompressImages<out CompressionOptions>>

getCompressionTaskClass

Returns the class of compression task

fun getCompressionTaskClass(aapt2: Boolean): KClass<out CompressImages<out CompressionOptions>>