@Incubating interface SwiftComponent : ComponentWithBinaries, ComponentWithDependencies
Configuration for a Swift component, such as a library or executable, defining the source files that make up the component plus other settings.
Swift component is composed of some Swift source files that are compiled and then linked into some binary.
An instance of this type is added as a project extension by the Swift plugins.
Since
4.2
abstract fun getBinaries(): BinaryCollection<out SwiftBinary>
Returns the binaries for this library. |
|
abstract fun getImplementationDependencies(): Configuration
Returns the implementation dependencies of this component. |
|
abstract fun getModule(): Property<String>
Defines the Swift module for this component. The default value is calculated from the project name. |
|
abstract fun getOperatingSystems(): SetProperty<OperatingSystemFamily>
Specifies the operating systems for the target machine. |
|
abstract fun getSource(): ConfigurableFileCollection
Defines the source files or directories of this component. You can add files or directories to this collection. When a directory is added, all source files are included for compilation. When this collection is empty, the directory |
|
abstract fun getSourceCompatibility(): Property<SwiftVersion>
Returns the Swift language level to use to compile the source files. |
|
abstract fun getSwiftSource(): FileCollection
Returns the Swift source files of this component, as defined in |
|
abstract fun source(action: Action<in ConfigurableFileCollection>): Unit
Configures the source files or directories for this component. |
abstract fun getDependencies(): ComponentDependencies
Returns the dependencies of this component. |
interface ProductionSwiftComponent : SwiftComponent, ProductionComponent
Represents a Swift component that is the main product of a project. |
|
interface SwiftXCTestSuite : SwiftComponent, TestSuiteComponent
A XCTest suite, implemented in Swift. |