@Incubating public interface SwiftComponent extends SoftwareComponent
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.
Named.Namer
Modifier and Type | Method and Description |
---|---|
SwiftBinary |
getDevelopmentBinary()
Returns the binary of the component to use as the default for development.
|
Configuration |
getImplementationDependencies()
Returns the implementation dependencies of this component.
|
PropertyState<String> |
getModule()
Defines the Swift module for this component.
|
ConfigurableFileCollection |
getSource()
Defines the source files or directories of this component.
|
FileCollection |
getSwiftSource()
Returns the Swift source files of this component, as defined in
getSource() . |
void |
source(Action<? super ConfigurableFileCollection> action)
Configures the source files or directories for this component.
|
PropertyState<String> getModule()
ConfigurableFileCollection getSource()
When this collection is empty, the directory src/main/swift
is used by default.
void source(Action<? super ConfigurableFileCollection> action)
FileCollection getSwiftSource()
getSource()
.SwiftBinary getDevelopmentBinary()
Configuration getImplementationDependencies()