PostProcessing

@Incubating interface PostProcessing


DSL object for configuring postProcessing: removing dead code, obfuscating etc.

This DSL is incubating and subject to change. To configure code and resource shrinkers, Instead use the properties already available in the buildType block.

To learn more, read Shrink Your Code and Resources.

Summary

Public functions

Unit
Unit
consumerProguardFiles(vararg files: Any)
Unit
Unit
Unit
proguardFiles(vararg files: Any)
Unit
setConsumerProguardFiles(consumerProguardFiles: List<Any>)
Unit
setProguardFiles(proguardFiles: List<Any>)
Unit
setTestProguardFiles(testProguardFiles: List<Any>)
Unit
Unit
testProguardFiles(vararg files: Any)

Public properties

String

This property is deprecated. This property no longer has any effect.

Boolean
Boolean
Boolean
Boolean

Public functions

consumerProguardFile

fun consumerProguardFile(file: Any): Unit

consumerProguardFiles

fun consumerProguardFiles(vararg files: Any): Unit

initWith

fun initWith(that: PostProcessing): Unit

proguardFile

fun proguardFile(file: Any): Unit

proguardFiles

fun proguardFiles(vararg files: Any): Unit

setConsumerProguardFiles

fun setConsumerProguardFiles(consumerProguardFiles: List<Any>): Unit

setProguardFiles

fun setProguardFiles(proguardFiles: List<Any>): Unit

setTestProguardFiles

fun setTestProguardFiles(testProguardFiles: List<Any>): Unit

testProguardFile

fun testProguardFile(file: Any): Unit

testProguardFiles

fun testProguardFiles(vararg files: Any): Unit

Public properties

codeShrinker

var codeShrinkerString

isObfuscate

var isObfuscateBoolean

isOptimizeCode

var isOptimizeCodeBoolean

isRemoveUnusedCode

var isRemoveUnusedCodeBoolean

isRemoveUnusedResources

var isRemoveUnusedResourcesBoolean