KotlinMultiplatformAndroidVariant

@Incubating
public interface KotlinMultiplatformAndroidVariant extends HasAndroidTest, HasUnitTest


Properties for the main Variant of a kotlin multiplatform android library

Summary

Public methods

abstract @NonNull Artifacts

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

abstract @NonNull FileCollection

Access to the variant's compile classpath.

abstract @NonNull Instrumentation

Access to the variant's instrumentation options.

abstract @NonNull String

The name of the variant

Inherited methods

From com.android.build.api.variant.HasAndroidTest
abstract AndroidTest

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

From com.android.build.api.variant.HasUnitTest
abstract UnitTest

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

Public methods

getArtifacts

@Incubating
abstract @NonNull Artifacts getArtifacts()

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

getCompileClasspath

@Incubating
abstract @NonNull FileCollection getCompileClasspath()

Access to the variant's compile classpath.

The returned FileCollection should not be resolved until execution time.

getInstrumentation

@Incubating
abstract @NonNull Instrumentation getInstrumentation()

Access to the variant's instrumentation options.

getName

@Incubating
abstract @NonNull String getName()

The name of the variant