@Incubating interface ProductionSwiftComponent : SwiftComponent, ProductionComponent
Represents a Swift component that is the main product of a project.
Since
4.5
abstract fun getDevelopmentBinary(): Provider<out SwiftBinary>
{@inheritDoc} |
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. |
interface SwiftApplication : ProductionSwiftComponent
Configuration for a Swift application, defining the source files that make up the application plus other settings. An instance of this type is added as a project extension by the Swift application plugin. |
|
interface SwiftLibrary : ProductionSwiftComponent
Configuration for a Swift library, defining the source files that make up the library plus other settings. An instance of this type is added as a project extension by the Swift library plugin. |