GeneratesApkBuilder

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 properties

Int?

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

String?

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

Public properties

targetSdk

var targetSdkInt?

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.

targetSdkPreview

var targetSdkPreviewString?

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.