-
- All Implemented Interfaces:
-
org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithJsPresetFunctions,org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithNativeShortcuts,org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithPresetFunctions,org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithWasmPresetFunctions,org.jetbrains.kotlin.gradle.dsl.KotlinTopLevelExtensionConfig,org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerTypeHolder,org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetContainer,org.jetbrains.kotlin.gradle.plugin.KotlinTargetsContainer,org.jetbrains.kotlin.gradle.plugin.KotlinTargetsContainerWithPresets
public abstract class KotlinMultiplatformExtension extends KotlinProjectExtension implements KotlinTargetContainerWithPresetFunctions, KotlinTargetContainerWithJsPresetFunctions, KotlinTargetContainerWithWasmPresetFunctions, KotlinTargetContainerWithNativeShortcuts
-
-
Field Summary
Fields Modifier and Type Field Description private final NamedDomainObjectCollection<KotlinTargetPreset<?>>presetsprivate final NamedDomainObjectCollection<KotlinTarget>targetsprivate final KotlinJsCompilerTypecompilerTypeFromPropertiesprivate final NamedDomainObjectCollection<KotlinTargetWithTests<?, ?>>testableTargetsprivate final NamedDomainObjectContainer<KotlinSourceSet>sourceSetsprivate StringcoreLibrariesVersionprivate List<String>kotlinDaemonJvmArgsprivate ExplicitApiModeexplicitApiprivate final KotlinJsCompilerTypeBOTHprivate final KotlinJsCompilerTypeIRprivate final KotlinJsCompilerTypeLEGACYprivate final KotlinJsCompilerTypedefaultJsCompilerType
-
Constructor Summary
Constructors Constructor Description KotlinMultiplatformExtension(Project project)
-
Method Summary
Modifier and Type Method Description NamedDomainObjectCollection<KotlinTargetPreset<?>>getPresets()final NamedDomainObjectCollection<KotlinTarget>getTargets()KotlinJsCompilerTypegetCompilerTypeFromProperties()final NamedDomainObjectCollection<KotlinTargetWithTests<?, ?>>getTestableTargets()final Unittargets(Action<TargetsFromPresetExtension> configure)final Unittargets(Function1<TargetsFromPresetExtension, Unit> configure)final KotlinOnlyTarget<AbstractKotlinCompilation<?>>metadata(Function1<KotlinOnlyTarget<AbstractKotlinCompilation<?>>, Unit> configure)final KotlinOnlyTarget<AbstractKotlinCompilation<?>>metadata(Action<KotlinOnlyTarget<AbstractKotlinCompilation<?>>> configure)final <T extends KotlinTarget> TtargetFromPreset(KotlinTargetPreset<T> preset, String name, Function1<T, Unit> configure)final <T extends KotlinTarget> TtargetFromPreset(KotlinTargetPreset<T> preset, String name, Action<T> configure)final <T extends KotlinTarget> TtargetFromPreset(KotlinTargetPreset<T> preset)final <T extends KotlinTarget> TtargetFromPreset(KotlinTargetPreset<T> preset, String name)final <T extends KotlinTarget> TtargetFromPreset(KotlinTargetPreset<T> preset, Action<T> configure)-
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
getSourceSets -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinTopLevelExtension
explicitApi, explicitApiWarning, getCoreLibrariesVersion, getExplicitApi, invokeWhenCreated, jvmToolchain, jvmToolchain, setCoreLibrariesVersion, setExplicitApi, setKotlinDaemonJvmArgs -
Methods inherited from class org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerTypeHolder
getBOTH, getDefaultJsCompilerType, getIR, getLEGACY -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithPresetFunctions
android, android, android, android, android, androidNativeArm32, androidNativeArm32, androidNativeArm32, androidNativeArm32, androidNativeArm32, androidNativeArm64, androidNativeArm64, androidNativeArm64, androidNativeArm64, androidNativeArm64, androidNativeX64, androidNativeX64, androidNativeX64, androidNativeX64, androidNativeX64, androidNativeX86, androidNativeX86, androidNativeX86, androidNativeX86, androidNativeX86, iosArm32, iosArm32, iosArm32, iosArm32, iosArm32, iosArm64, iosArm64, iosArm64, iosArm64, iosArm64, iosSimulatorArm64, iosSimulatorArm64, iosSimulatorArm64, iosSimulatorArm64, iosSimulatorArm64, iosX64, iosX64, iosX64, iosX64, iosX64, jvm, jvm, jvm, jvm, jvm, linuxArm32Hfp, linuxArm32Hfp, linuxArm32Hfp, linuxArm32Hfp, linuxArm32Hfp, linuxArm64, linuxArm64, linuxArm64, linuxArm64, linuxArm64, linuxMips32, linuxMips32, linuxMips32, linuxMips32, linuxMips32, linuxMipsel32, linuxMipsel32, linuxMipsel32, linuxMipsel32, linuxMipsel32, linuxX64, linuxX64, linuxX64, linuxX64, linuxX64, macosArm64, macosArm64, macosArm64, macosArm64, macosArm64, macosX64, macosX64, macosX64, macosX64, macosX64, mingwX64, mingwX64, mingwX64, mingwX64, mingwX64, mingwX86, mingwX86, mingwX86, mingwX86, mingwX86, tvosArm64, tvosArm64, tvosArm64, tvosArm64, tvosArm64, tvosSimulatorArm64, tvosSimulatorArm64, tvosSimulatorArm64, tvosSimulatorArm64, tvosSimulatorArm64, tvosX64, tvosX64, tvosX64, tvosX64, tvosX64, wasm32, wasm32, wasm32, wasm32, wasm32, watchosArm32, watchosArm32, watchosArm32, watchosArm32, watchosArm32, watchosArm64, watchosArm64, watchosArm64, watchosArm64, watchosArm64, watchosDeviceArm64, watchosDeviceArm64, watchosDeviceArm64, watchosDeviceArm64, watchosDeviceArm64, watchosSimulatorArm64, watchosSimulatorArm64, watchosSimulatorArm64, watchosSimulatorArm64, watchosSimulatorArm64, watchosX64, watchosX64, watchosX64, watchosX64, watchosX64, watchosX86, watchosX86, watchosX86, watchosX86, watchosX86 -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithJsPresetFunctions
js, js, js, js, js, js, js, js, js, js, js -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithWasmPresetFunctions
wasm, wasm, wasm, wasm, wasm -
Methods inherited from class org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithNativeShortcuts
ios, ios, ios, ios, ios, tvos, tvos, tvos, tvos, tvos, watchos, watchos, watchos, watchos, watchos -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPresets
NamedDomainObjectCollection<KotlinTargetPreset<?>> getPresets()
-
getTargets
final NamedDomainObjectCollection<KotlinTarget> getTargets()
-
getCompilerTypeFromProperties
KotlinJsCompilerType getCompilerTypeFromProperties()
-
getTestableTargets
final NamedDomainObjectCollection<KotlinTargetWithTests<?, ?>> getTestableTargets()
-
targets
final Unit targets(Action<TargetsFromPresetExtension> configure)
-
targets
final Unit targets(Function1<TargetsFromPresetExtension, Unit> configure)
-
metadata
final KotlinOnlyTarget<AbstractKotlinCompilation<?>> metadata(Function1<KotlinOnlyTarget<AbstractKotlinCompilation<?>>, Unit> configure)
-
metadata
final KotlinOnlyTarget<AbstractKotlinCompilation<?>> metadata(Action<KotlinOnlyTarget<AbstractKotlinCompilation<?>>> configure)
-
targetFromPreset
final <T extends KotlinTarget> T targetFromPreset(KotlinTargetPreset<T> preset, String name, Function1<T, Unit> configure)
-
targetFromPreset
final <T extends KotlinTarget> T targetFromPreset(KotlinTargetPreset<T> preset, String name, Action<T> configure)
-
targetFromPreset
final <T extends KotlinTarget> T targetFromPreset(KotlinTargetPreset<T> preset)
-
targetFromPreset
final <T extends KotlinTarget> T targetFromPreset(KotlinTargetPreset<T> preset, String name)
-
targetFromPreset
final <T extends KotlinTarget> T targetFromPreset(KotlinTargetPreset<T> preset, Action<T> configure)
-
-
-
-