org.gradle.language.swift

## Interface SwiftBinary

- All Superinterfaces:
    ComponentWithNativeRuntime, ComponentWithObjectFiles, Named, SoftwareComponent
  All Known Subinterfaces:
    SwiftExecutable, SwiftSharedLibrary, SwiftStaticLibrary, SwiftXCTestBinary, SwiftXCTestBundle, SwiftXCTestExecutable

      @Incubating
      public interface SwiftBinary
      extends ComponentWithObjectFiles

  A binary built from Swift source and linked from the resulting object files.
  Since:
    4.2

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.gradle.api.Named

      `Named.Namer`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `FileCollection` | `getCompileModules()` Returns the modules to use to compile this binary.
    `Provider<SwiftCompile>` | `getCompileTask()` Returns the compile task for this binary.
    `FileCollection` | `getLinkLibraries()` Returns the link libraries to use to link this binary.
    `Provider<String>` | `getModule()` Returns the name of the Swift module that this binary defines.
    `FileCollection` | `getRuntimeLibraries()` Returns the runtime libraries required by this binary.
    `SwiftLanguageVersion` | `getSwiftLanguageVersion()` Returns the Swift language version of this component.
    `FileCollection` | `getSwiftSource()` Returns the Swift source files of this binary.
    `SwiftPlatform` | `getTargetPlatform()` Returns the target platform for this component.
    `boolean` | `isTestable()` Returns true if this binary has testing enabled.

    - ### Methods inherited from interface org.gradle.language.nativeplatform.ComponentWithObjectFiles

      `getObjects`

    - ### Methods inherited from interface org.gradle.language.nativeplatform.ComponentWithNativeRuntime

      `getBaseName, getToolChain, isDebuggable, isOptimized`

    - ### Methods inherited from interface org.gradle.api.Named

      `getName`

- - ### Method Detail

    - #### getModule

          Provider<String> getModule()

      Returns the name of the Swift module that this binary defines.

    - #### isTestable

          boolean isTestable()

      Returns true if this binary has testing enabled.
      Since:
        4.4

    - #### getSwiftSource

          FileCollection getSwiftSource()

      Returns the Swift source files of this binary.

    - #### getCompileModules

          FileCollection getCompileModules()

      Returns the modules to use to compile this binary. Includes the module file of this binary's dependencies.
      Since:
        4.4

    - #### getLinkLibraries

          FileCollection getLinkLibraries()

      Returns the link libraries to use to link this binary. Includes the link libraries of the component's dependencies.

    - #### getRuntimeLibraries

          FileCollection getRuntimeLibraries()

      Returns the runtime libraries required by this binary. Includes the runtime libraries of the component's dependencies.

    - #### getCompileTask

          Provider<SwiftCompile> getCompileTask()

      Returns the compile task for this binary.
      Since:
        4.5

    - #### getTargetPlatform

          SwiftPlatform getTargetPlatform()

      Returns the target platform for this component.
      Specified by:
        `getTargetPlatform` in interface `ComponentWithNativeRuntime`
      Since:
        4.5

    - #### getSwiftLanguageVersion

          SwiftLanguageVersion getSwiftLanguageVersion()

      Returns the Swift language version of this component.
      Since:
        4.5