KotlinMultiplatformAndroidTarget

@Incubating interface KotlinMultiplatformAndroidTarget : KotlinMultiplatformAndroidExtension


Summary

Public functions

@Incubating Unit

Enables compilation of java sources.

Inherited functions

From class com.android.build.api.dsl.KotlinMultiplatformAndroidExtension
@Incubating Unit

Options for configuring AAR metadata.

@Incubating Unit

Specifies options for doing variant selection for external Android dependencies based on build types and product flavours

@Incubating Unit

Specifies options for the lint tool.

@Incubating Unit

Specifies options for the R8/D8 optimization tool.

@Incubating Unit

Specifies options and rules that determine which files the Android plugin packages into your APK.

@Incubating Unit

Includes the specified library to the classpath.

@Incubating Unit
useLibrary(name: String, required: Boolean)

Includes the specified library to the classpath.

@Incubating Unit

Creates and configures a compilation for tests that run on the device (previously referred to as instrumented tests).

@Incubating HasConfigurableValue<KotlinMultiplatformAndroidTestOnDevice>

Creates and configures a compilation for tests that run on the device (previously referred to as instrumented tests).

@Incubating Unit

Creates and configures a compilation for tests that run on the JVM (previously referred to as unit tests).

@Incubating HasConfigurableValue<KotlinMultiplatformAndroidTestOnJvm>

Creates and configures a compilation for tests that run on the JVM (previously referred to as unit tests).

Inherited properties

From class com.android.build.api.dsl.KotlinMultiplatformAndroidExtension
AarMetadata

Options for configuring AAR metadata.

String

Specifies the version of the SDK Build Tools to use when building your project.

Int?

Specifies the API level to compile your project against.

Int?
String?
DependencyVariantSelection

Specifies options for doing variant selection for external Android dependencies based on build types and product flavours

MutableMap<StringAny>

Additional per module experimental properties.

Boolean

Whether core library desugaring is enabled.

Lint

Specifies options for the lint tool.

Int?

The maxSdkVersion, or null if not specified.

Int?

The minimum SDK version.

String?
String?

The namespace of the generated R and BuildConfig classes.

KmpOptimization

Specifies options for the R8/D8 optimization tool.

Packaging

Specifies options and rules that determine which files the Android plugin packages into your APK.

TestCoverage

Configure the gathering of code-coverage from tests.

String?

The namespace used by the android test and unit test components for the generated R and BuildConfig classes.

Public functions

withJava

@Incubating
fun withJava(): Unit

Enables compilation of java sources.

Public properties