KotlinPlatformType

An Attribute representing the Kotlin target compilation platform.

This attribute is available in org.gradle.api.artifacts.ConsumableConfigurations created by the Kotlin Gradle plugin for the given org.gradle.api.Project. The attribute is also published as part of the project Gradle metadata publication.

To configure the default AttributeCompatibilityRule and AttributeDisambiguationRule use the KotlinPlatformType.setupAttributesMatchingStrategy method.

The instance of this attribute can be accessed via the KotlinPlatformType.attribute property.

Entries

Link copied to clipboard

Indicates a compilation result that is shared across different platforms.

Link copied to clipboard

Represents a compilation output compiled for the JVM Kotlin platform.

Link copied to clipboard

Represents a compilation output compiled for the JS Kotlin platform.

Link copied to clipboard

Represents a compilation output compiled for the Android Kotlin platform.

Link copied to clipboard

Represents a compilation output compiled for the Native Kotlin platform.

Link copied to clipboard

Represents a compilation output compiled for the Wasm Kotlin platform.

Types

Link copied to clipboard
object Companion

Provides additional static properties and constants for the KotlinPlatformType.

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.