KotlinMultiplatformAndroidTarget

Added in 8.2.0

@Incubating
interface KotlinMultiplatformAndroidTarget : KotlinMultiplatformAndroidExtension


Summary

Public functions

Unit

Enables compilation of java sources.

Inherited functions

From com.android.build.api.dsl.KotlinMultiplatformAndroidExtension
Unit

Options for configuring AAR metadata.

Unit

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

Unit
@Incubating
lint(action: Lint.() -> Unit)

Specifies options for the lint tool.

Unit

Specifies options for the R8/D8 optimization tool.

Unit

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

Unit

Includes the specified library to the classpath.

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

Includes the specified library to the classpath.

Unit

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

HasConfigurableValue<KotlinMultiplatformAndroidTestOnDevice>

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

Unit

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

HasConfigurableValue<KotlinMultiplatformAndroidTestOnJvm>

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

Inherited properties

From 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

Added in 8.2.0
@Incubating
fun withJava(): Unit

Enables compilation of java sources.

This API is experimental and is likely to change.

Public properties