KotlinMultiplatformAndroidCompilationBuilder

Added in 8.2.0

@Incubating
interface KotlinMultiplatformAndroidCompilationBuilder


Options to build a KotlinMultiplatformAndroidCompilation object.

Summary

Public properties

String

The name of the compilation object.

String

The name of the sourceSet that is used in the compilation as the default sourceSet to compile.

String?

The name of the sourceSet tree that would be used to infer the dependencies between sourceSets.

Public properties

compilationName

Added in 8.2.0
var compilationNameString

The name of the compilation object. The name can be used later to access the compilation object using

kotlin {
androidLibrary {
compilations.getByName("main") {
// configure compilation
}
}
}

defaultSourceSetName

Added in 8.2.0
var defaultSourceSetNameString

The name of the sourceSet that is used in the compilation as the default sourceSet to compile. The sourceSet created will be located at $projectDir/src/$sourceSetName.

The sourceSet name can be used later to access the sourceSet object using

kotlin {
sourceSets.getByName("androidMain") {
// configure sourceSet
}
}
See also
KotlinSourceSet

sourceSetTreeName

Added in 8.2.0
var sourceSetTreeNameString?

The name of the sourceSet tree that would be used to infer the dependencies between sourceSets. For example, setting the sourceSetTreeName to test means that compilation will include the commonTest sourceSet, and setting it to integrationTest means that the compilation will include the commonIntegrationTest sourceSet if exists.

Setting this value to null means that this compilation is not part of any sourceSet trees and the kotlin plugin will not include any common test sourceSets in this compilation.

See also
org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.targetHierarchy