Package org.gradle.language.swift
Schnittstelle SwiftComponent
- Alle Superschnittstellen:
ComponentWithBinaries,ComponentWithDependencies,ComponentWithTargetMachines,Named,SoftwareComponent
- Alle bekannten Unterschnittstellen:
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.
- Seit:
- 4.2
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Named
Named.Namer -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungBinaryCollection<? 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.Von Schnittstelle geerbte Methoden org.gradle.language.ComponentWithDependencies
getDependenciesVon Schnittstelle geerbte Methoden org.gradle.language.ComponentWithTargetMachines
getTargetMachines
-
Methodendetails
-
getModule
Defines the Swift module for this component. The default value is calculated from the project name. -
getSource
ConfigurableFileCollection 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. -
source
Configures the source files or directories for this component. -
getSwiftSource
FileCollection getSwiftSource()Returns the Swift source files of this component, as defined ingetSource(). -
getBinaries
BinaryCollection<? extends SwiftBinary> getBinaries()Returns the binaries for this library.- Angegeben von:
getBinariesin SchnittstelleComponentWithBinaries- Seit:
- 4.5
-
getImplementationDependencies
Configuration getImplementationDependencies()Returns the implementation dependencies of this component. -
getSourceCompatibility
Property<SwiftVersion> getSourceCompatibility()Returns the Swift language level to use to compile the source files.- Seit:
- 4.6
-