Stay organized with collections Save and categorize content based on your preferences.

TestBuildType

interface TestBuildType : BuildType, TestVariantDimension
com.android.build.api.dsl.TestBuildType

Build types define certain properties that Gradle uses when building and packaging your library, and are typically configured for different stages of your development lifecycle.

Test projects have a target application project that they depend on and build type matching works in the same way as library dependencies. Therefore to test multiple build types of an application you can declare corresponding build types here.

See configuring build types for more information.

Summary

Inherited functions

Properties

abstract Boolean?

Whether to crunch PNGs.

abstract Boolean

Whether this build type should generate a debuggable apk.

Inherited properties

Properties

isCrunchPngs

abstract var isCrunchPngs: Boolean?

Whether to crunch PNGs.

Setting this property to true reduces of PNG resources that are not already optimally compressed. However, this process increases build times.

PNG crunching is enabled by default in the release build type and disabled by default in the debug build type.

isDebuggable

abstract var isDebuggable: Boolean

Whether this build type should generate a debuggable apk.