PostProcessing

@Incubating
public 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 methods

abstract void
abstract void
abstract @NonNull String
abstract void
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract void
abstract void
abstract void
abstract void
setConsumerProguardFiles(
    @NonNull List<@NonNull Object> consumerProguardFiles
)
abstract void
setObfuscate(boolean isObfuscate)
abstract void
setOptimizeCode(boolean isOptimizeCode)
abstract void
abstract void
setRemoveUnusedCode(boolean isRemoveUnusedCode)
abstract void
setRemoveUnusedResources(boolean isRemoveUnusedResources)
abstract void
abstract void
abstract void

Public methods

consumerProguardFile

abstract void consumerProguardFile(@NonNull Object file)

consumerProguardFiles

abstract void consumerProguardFiles(@NonNull Object files)

getCodeShrinker

abstract @NonNull String getCodeShrinker()

initWith

abstract void initWith(@NonNull PostProcessing that)

isObfuscate

abstract boolean isObfuscate()

isOptimizeCode

abstract boolean isOptimizeCode()

isRemoveUnusedCode

abstract boolean isRemoveUnusedCode()

isRemoveUnusedResources

abstract boolean isRemoveUnusedResources()

proguardFile

abstract void proguardFile(@NonNull Object file)

proguardFiles

abstract void proguardFiles(@NonNull Object files)

setCodeShrinker

abstract void setCodeShrinker(@NonNull String codeShrinker)

setConsumerProguardFiles

abstract void setConsumerProguardFiles(
    @NonNull List<@NonNull Object> consumerProguardFiles
)

setObfuscate

abstract void setObfuscate(boolean isObfuscate)

setOptimizeCode

abstract void setOptimizeCode(boolean isOptimizeCode)

setProguardFiles

abstract void setProguardFiles(@NonNull List<@NonNull Object> proguardFiles)

setRemoveUnusedCode

abstract void setRemoveUnusedCode(boolean isRemoveUnusedCode)

setRemoveUnusedResources

abstract void setRemoveUnusedResources(boolean isRemoveUnusedResources)

setTestProguardFiles

abstract void setTestProguardFiles(@NonNull List<@NonNull Object> testProguardFiles)

testProguardFile

abstract void testProguardFile(@NonNull Object file)

testProguardFiles

abstract void testProguardFiles(@NonNull Object files)