GeneratesApkBuilder

public interface GeneratesApkBuilder

Known direct subclasses
ApplicationVariantBuilder

Application specific variant object that contains properties that will determine the variant's build flow.

DynamicFeatureVariantBuilder
TestVariantBuilder

VariantBuilder type for tests associated with a module.


Cross-cutting interface for components builders that produce APK files.

Summary

Public methods

abstract Integer

Gets or sets the target SDK Version for this variant as an integer API level.

abstract String

Gets or sets the target SDK Version for this variant as an integer API level.

abstract void
setTargetSdk(Integer targetSdk)

Gets or sets the target SDK Version for this variant as an integer API level.

abstract void
setTargetSdkPreview(String targetSdkPreview)

Gets or sets the target SDK Version for this variant as an integer API level.

Public methods

getTargetSdk

abstract Integer getTargetSdk()

Gets or sets the target SDK Version for this variant as an integer API level. Setting this will override previous calls of targetSdk and targetSdkPreview setters. Only one of targetSdk and targetSdkPreview should be set.

The value may be null if set via targetSdkPreview.

getTargetSdkPreview

abstract String getTargetSdkPreview()

Gets or sets the target SDK Version for this variant as an integer API level. Setting this will override previous calls of targetSdk and targetSdkPreview setters. Only one of targetSdk and targetSdkPreview should be set.

The value may be null if set via targetSdk.

setTargetSdk

abstract void setTargetSdk(Integer targetSdk)

Gets or sets the target SDK Version for this variant as an integer API level. Setting this will override previous calls of targetSdk and targetSdkPreview setters. Only one of targetSdk and targetSdkPreview should be set.

The value may be null if set via targetSdkPreview.

setTargetSdkPreview

abstract void setTargetSdkPreview(String targetSdkPreview)

Gets or sets the target SDK Version for this variant as an integer API level. Setting this will override previous calls of targetSdk and targetSdkPreview setters. Only one of targetSdk and targetSdkPreview should be set.

The value may be null if set via targetSdk.