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

val 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

val 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.