public interface HasSwiftSources
HasSwiftSourceSet
Modifier and Type | Method and Description |
---|---|
default SwiftSourceSet |
getSwiftSources()
Defines the Swift sources of this component.
|
default void |
swiftSources(Action<? super SwiftSourceSet> action)
Configures the Swift sources of this component using the specified configuration action.
|
default void |
swiftSources(groovy.lang.Closure<Void> closure)
Configures the Swift sources of this component using the specified configuration closure.
|
default SwiftSourceSet getSwiftSources()
By default, the source set contains all files in the directory src/componentName/swift
, where componentName represent this component's name, i.e. main or test.
SwiftSourceSet
default void swiftSources(Action<? super SwiftSourceSet> action)
action
- the configuration action, must not be nullgetSwiftSources()
default void swiftSources(@DelegatesTo(value=SwiftSourceSet.class,strategy=1) groovy.lang.Closure<Void> closure)
closure
- the configuration closure, must not be nullgetSwiftSources()