api / org.gradle.language.swift.plugins / SwiftApplicationPlugin

SwiftApplicationPlugin

@Incubating open class SwiftApplicationPlugin : Plugin<ProjectInternal>

A plugin that produces an executable from Swift source.

Adds compile, link and install tasks to build the executable. Defaults to looking for source files in `src/main/swift`.

Adds a SwiftApplication extension to the project to allow configuration of the executable.

Since
4.5

Constructors

<init>

SwiftApplicationPlugin(componentFactory: NativeComponentFactory, toolChainSelector: ToolChainSelector, attributesFactory: ImmutableAttributesFactory)

Injects a FileOperations instance.

Functions

apply

open fun apply(project: ProjectInternal): Unit