Package org.gradle.language.swift
Interface SwiftComponent
- All Superinterfaces:
- ComponentWithBinaries,- ComponentWithDependencies,- ComponentWithTargetMachines,- Named,- SoftwareComponent
- All Known Subinterfaces:
- ProductionSwiftComponent,- SwiftApplication,- SwiftLibrary,- SwiftXCTestSuite
public interface SwiftComponent
extends ComponentWithBinaries, ComponentWithDependencies, ComponentWithTargetMachines
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
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.NamedNamed.Namer
- 
Method SummaryModifier and TypeMethodDescriptionBinaryCollection<? extends SwiftBinary> Returns the binaries for this library.Returns the implementation dependencies of this component.Defines the Swift module for this component.Defines the source files or directories of this component.Returns the Swift language level to use to compile the source files.Returns the Swift source files of this component, as defined ingetSource().voidsource(Action<? super ConfigurableFileCollection> action) Configures the source files or directories for this component.Methods inherited from interface org.gradle.language.ComponentWithDependenciesgetDependenciesMethods inherited from interface org.gradle.language.ComponentWithTargetMachinesgetTargetMachines
- 
Method Details- 
getModuleDefines the Swift module for this component. The default value is calculated from the project name.
- 
getSourceConfigurableFileCollection getSource()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 src/main/swiftis used by default.
- 
sourceConfigures the source files or directories for this component.
- 
getSwiftSourceFileCollection getSwiftSource()Returns the Swift source files of this component, as defined ingetSource().
- 
getBinariesBinaryCollection<? extends SwiftBinary> getBinaries()Returns the binaries for this library.- Specified by:
- getBinariesin interface- ComponentWithBinaries
- Since:
- 4.5
 
- 
getImplementationDependenciesConfiguration getImplementationDependencies()Returns the implementation dependencies of this component.
- 
getSourceCompatibilityProperty<SwiftVersion> getSourceCompatibility()Returns the Swift language level to use to compile the source files.- Since:
- 4.6
 
 
-