KotlinMultiplatformAndroidLibraryTarget

Added in 8.9.0-alpha04

interface KotlinMultiplatformAndroidLibraryTarget : KotlinMultiplatformAndroidTarget, KotlinMultiplatformAndroidLibraryExtension


Summary

Public functions

Unit

Enables compilation of java sources.

Inherited functions

From com.android.build.api.dsl.KotlinMultiplatformAndroidLibraryExtension
Unit
aarMetadata(action: AarMetadata.() -> 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
lint(action: Lint.() -> Unit)

Specifies options for the lint tool.

Unit

Specifies options for the R8/D8 optimization tool.

Unit
packaging(action: Packaging.() -> Unit)

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

Unit

Includes the specified library to the classpath.

Unit
useLibrary(name: String, required: Boolean)

Includes the specified library to the classpath.

Unit

This function is deprecated. Use withDeviceTest.

HasConfigurableValue<KotlinMultiplatformAndroidDeviceTest>

This function is deprecated. Use withDeviceTestBuilder.

Unit

This function is deprecated. Use withHostTest.

HasConfigurableValue<KotlinMultiplatformAndroidHostTest>

This function is deprecated. Use withHostTestBuilder.

Unit

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

HasConfigurableValue<KotlinMultiplatformAndroidDeviceTest>

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<KotlinMultiplatformAndroidHostTest>

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.KotlinMultiplatformAndroidLibraryExtension
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

Boolean

Whether core library desugaring is enabled.

MutableMap<StringAny>

Additional per module experimental properties.

Lint

Specifies options for the lint tool.

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 AAR.

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.9.0-alpha04
fun withJava(): Unit

Enables compilation of java sources.

Public properties