GeneratesApk

Added in 7.0.0

interface GeneratesApk

Known direct subclasses
ApplicationVariant

Model for application components that only contains build-time properties.

DynamicFeatureVariant

Model for dynamic feature components that only contains build-time properties.

GeneratesTestApk

Build-time properties for Component that produce test APKs.

Known indirect subclasses
AndroidTest

Model for Android Test components that contains build-time properties

DeviceTest

Model for Device Test components that contains build-time properties

TestVariant

Model for test components that only contains build-time properties.


Build-time properties for Component that produce APKs.

Summary

Public properties

AndroidResources

Variant's android resources processing configuration, initialized by the corresponding global DSL element.

Provider<String>

Variant's application ID as present in the final manifest file of the APK.

Dexing

Variant's specific dexing options

ApkPackaging

Variant's packagingOptions, initialized by the corresponding global DSL element.

Renderscript?

Variant specific settings for the renderscript compiler.

AndroidVersion

Target SDK version for this variant.

AndroidVersion

This property is deprecated. Replaced with targetSdk, will be removed in 9.0

Public properties

androidResources

Added in 7.0.0
val androidResourcesAndroidResources

Variant's android resources processing configuration, initialized by the corresponding global DSL element.

applicationId

Added in 7.0.0
val applicationIdProvider<String>

Variant's application ID as present in the final manifest file of the APK.

dexing

Added in 8.3.1
val dexingDexing

Variant's specific dexing options

packaging

Added in 7.0.0
val packagingApkPackaging

Variant's packagingOptions, initialized by the corresponding global DSL element.

renderscript

Added in 7.0.0
val renderscriptRenderscript?

Variant specific settings for the renderscript compiler. This will return null when com.android.build.api.dsl.BuildFeatures.renderScript is false.

targetSdk

Added in 8.1.0
val targetSdkAndroidVersion

Target SDK version for this variant.

targetSdkVersion

Added in 7.4.1
Deprecated in 8.1.0
val targetSdkVersionAndroidVersion