KotlinMultiplatformAndroidVariant

@Incubating interface KotlinMultiplatformAndroidVariant : HasAndroidTest, HasUnitTest


Properties for the main Variant of a kotlin multiplatform android library

Summary

Public properties

Artifacts

Access to the variant's buildable artifacts for build customization.

FileCollection

Access to the variant's compile classpath.

Instrumentation

Access to the variant's instrumentation options.

String

The name of the variant

Inherited properties

From class com.android.build.api.variant.HasAndroidTest
AndroidTest?

Variant's AndroidTest configuration, or null if android tests are disabled for this variant.

From class com.android.build.api.variant.HasUnitTest
UnitTest?

Variant's UnitTest, or null if the unit tests for this variant are disabled.

Public properties

artifacts

val artifactsArtifacts

Access to the variant's buildable artifacts for build customization.

compileClasspath

val compileClasspathFileCollection

Access to the variant's compile classpath.

The returned FileCollection should not be resolved until execution time.

instrumentation

val instrumentationInstrumentation

Access to the variant's instrumentation options.

name

val nameString

The name of the variant