Skip to content

STRUCT

CommonSettings ​

Contents

  • Properties
    • settings
    • targetRegexp
    • exceptRegexp
    • configurations
  • Methods
    • init(settings:configurations:targetRegexp:exceptRegexp:)
    • init(dictionaryLiteral:)
swift
public struct CommonSettings: Codable, Equatable, ExpressibleByDictionaryLiteral

Common settings that can be shared across all or some modules.

Properties ​

settings ​

swift
public let settings: [String: SettingValue]

Settings in format "Setting name": "Settings Value"

targetRegexp ​

swift
public let targetRegexp: String?

Regular expression which describes which targets settings need to be applied to.

exceptRegexp ​

swift
public let exceptRegexp: String?

Regular expression which describes which targets need to be excluded from applying settings.

configurations ​

swift
public let configurations: [String]

List of configuration names to apply settings to.

Methods ​

init(settings:configurations:targetRegexp:exceptRegexp:) ​

swift
public init(
    settings: [String: SettingValue],
    configurations: [String] = [],
    targetRegexp: String? = nil,
    exceptRegexp: String? = nil
)

Creates a new CommonSettings instance.

  • Parameters:
    • settings: settings that need to be applied
    • configurations: list of configuration names
    • targetRegexp: regular expression that will be mathched against target names
    • exceptRegexp: regular expression exceptions that will be mathched against target names

Parameters ​

NameDescription
settingssettings that need to be applied
configurationslist of configuration names
targetRegexpregular expression that will be mathched against target names
exceptRegexpregular expression exceptions that will be mathched against target names

init(dictionaryLiteral:) ​

swift
public init(dictionaryLiteral elements: (String, SettingValue)...)