GeneratesApk

public interface GeneratesApk

Known direct subclasses
ApplicationVariant

Properties for the main Variant of an application.

DynamicFeatureVariant
GeneratesTestApk
Known indirect subclasses
AndroidTest

Properties for the android test Variant of a module.

TestVariant

Variant for test-only modules.


Cross cutting interface for Component subtypes that are producing APK files.

Summary

Public methods

abstract @NonNull AndroidResources

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

abstract @NonNull Provider<@NonNull String>

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

abstract @NonNull ApkPackaging

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

abstract Renderscript

Variant specific settings for the renderscript compiler.

abstract @NonNull AndroidVersion

Target SDK version for this variant.

abstract @NonNull AndroidVersion

Public methods

getAndroidResources

abstract @NonNull AndroidResources getAndroidResources()

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

getApplicationId

abstract @NonNull Provider<@NonNull StringgetApplicationId()

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

getPackaging

abstract @NonNull ApkPackaging getPackaging()

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

getRenderscript

abstract Renderscript getRenderscript()

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

getTargetSdk

abstract @NonNull AndroidVersion getTargetSdk()

Target SDK version for this variant.

getTargetSdkVersion

abstract @NonNull AndroidVersion getTargetSdkVersion()