# SwiftLibrary

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.

#### Since

4.2

## Functions

getApiDependencies
Link copied to clipboard
abstract fun getApiDependencies(): Configuration
Returns the API dependencies of this library.
getBinaries
Link copied to clipboard
abstract fun getBinaries(): BinaryCollection<out SoftwareComponent>
abstract fun getBinaries(): BinaryCollection<out SwiftBinary>
getDependencies
Link copied to clipboard
abstract fun getDependencies(): LibraryDependencies
Returns the dependencies of this library.
getDevelopmentBinary
Link copied to clipboard
abstract fun getDevelopmentBinary(): Provider<out SoftwareComponent>
abstract fun getDevelopmentBinary(): Provider<out SwiftBinary>
getImplementationDependencies
Link copied to clipboard
abstract fun getImplementationDependencies(): Configuration
getLinkage
Link copied to clipboard
abstract fun getLinkage(): SetProperty<Linkage>
Returns the list of linkage of this library.
getModule
Link copied to clipboard
abstract fun getModule(): Property<String>
getName
Link copied to clipboard
abstract fun getName(): String
getSource
Link copied to clipboard
abstract fun getSource(): ConfigurableFileCollection
getSourceCompatibility
Link copied to clipboard
abstract fun getSourceCompatibility(): Property<SwiftVersion>
getSwiftSource
Link copied to clipboard
abstract fun getSwiftSource(): FileCollection
getTargetMachines
Link copied to clipboard
abstract fun getTargetMachines(): SetProperty<TargetMachine>
source
Link copied to clipboard
abstract fun source(action: Action<in ConfigurableFileCollection>)