PostProcessing

Added in 7.0.0

@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

Added in 7.0.0
fun consumerProguardFile(file: Any): Unit

consumerProguardFiles

Added in 7.0.0
fun consumerProguardFiles(vararg files: Any): Unit

initWith

Added in 7.0.0
fun initWith(that: PostProcessing): Unit

proguardFile

Added in 7.0.0
fun proguardFile(file: Any): Unit

proguardFiles

Added in 7.0.0
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

Added in 7.0.0
fun testProguardFile(file: Any): Unit

testProguardFiles

Added in 7.0.0
fun testProguardFiles(vararg files: Any): Unit

Public properties

codeShrinker

Added in 7.0.0
Deprecated in 7.0.0
var codeShrinkerString

isObfuscate

Added in 7.0.0
var isObfuscateBoolean

isOptimizeCode

Added in 7.0.0
var isOptimizeCodeBoolean

isRemoveUnusedCode

Added in 7.0.0
var isRemoveUnusedCodeBoolean

isRemoveUnusedResources

Added in 7.0.0
var isRemoveUnusedResourcesBoolean