LibraryBuildType

interface LibraryBuildType : VariantDimension, HasInitWith, BuildType, VariantDimension, LibraryVariantDimension


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.

There are two build types defined by default, debug and release, and you can customize them and create additional build types.

The default debug build type enables debug options, while the release build type is not debuggable and can be configured to, for example shrink and obfuscate your library for distribution.

See configuring build types for more information.

Summary

Public properties

Boolean

Whether this build type should be selected in Studio by default

Inherited functions

From class BuildType
@Incubating Unit

Copies all properties from the given build type.

@Incubating Unit
@Incubating Unit

This function is deprecated. Replaced with property matchingFallbacks

@Incubating Unit
setMatchingFallbacks(vararg fallbacks: String?)

This function is deprecated. Replaced with property matchingFallbacks

From class ExtensionAware
From class LibraryVariantDimension
@Incubating Unit

Options for configuring AAR metadata.

@Incubating Unit

Options for configuring AAR metadata.

@Incubating Any
consumerProguardFile(proguardFile: Any?)

Adds a proguard rule file to be included in the published AAR.

@Incubating Any
consumerProguardFiles(vararg proguardFiles: Any?)

Adds proguard rule files to be included in the published AAR.

From class Named
From class VariantDimension
@Incubating Unit
addManifestPlaceholders(manifestPlaceholders: Map<String?, Any?>?)

Adds manifest placeholders.

@Incubating Unit
buildConfigField(type: String?, name: String?, value: String?)

Adds a new field to the generated BuildConfig class.

@Incubating Unit

Encapsulates per-variant CMake and ndk-build configurations for your external native build.

Unit

Options for configuring Java compilation.

@Incubating Unit
ndk(action: (@ExtensionFunctionType Ndk.() -> Unit)?)

Encapsulates per-variant configurations for the NDK, such as ABI filters.

@Incubating Unit
@Incubating Any
proguardFile(proguardFile: Any?)

Adds a new ProGuard configuration file.

@Incubating Any
proguardFiles(vararg files: Any?)

Adds new ProGuard configuration files.

@Incubating Unit
resValue(type: String?, name: String?, value: String?)

Adds a new generated resource.

@Incubating Void?
setManifestPlaceholders(manifestPlaceholders: Map<String?, Any?>?)

This function is deprecated. Use manifestPlaceholders property instead

@Incubating Any
setProguardFiles(proguardFileIterable: Iterable<*>?)

Replaces the ProGuard configuration files.

@Incubating Unit

Configure the shader compiler options.

@Incubating Any
testProguardFile(proguardFile: Any?)

Adds a proguard rule file to be used when processing test code.

@Incubating Any
testProguardFiles(vararg proguardFiles: Any?)

Adds proguard rule files to be used when processing test code.

Public properties

isDefault

val isDefaultBoolean

Whether this build type should be selected in Studio by default