@Incubating public interface SwiftComponent extends ComponentWithBinaries
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 |
---|---|
BinaryCollection<? extends SwiftBinary> |
getBinaries()
Returns the binaries for this library.
|
Configuration |
getImplementationDependencies()
Returns the implementation dependencies of this component.
|
Property<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.
|
Property<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()
.BinaryCollection<? extends SwiftBinary> getBinaries()
getBinaries
in interface ComponentWithBinaries
Configuration getImplementationDependencies()