XCMetricsPlugin

public struct XCMetricsPlugin : Equatable, Hashable

A plugin executed by XCMetrics that collects custom metrics.

  • The body implementation of a plugin which takes a dictionary of the environment variable provided to it and should return a dictionary of key-value pairs to be attached to the build metadata of the build.

    Declaration

    Swift

    public typealias PluginBody = ([String : String]) -> [String : String]
  • Initializer for XCMetricsPlugin.

    Declaration

    Swift

    public init(name: String, body: @escaping PluginBody)

    Parameters

    name

    A unique name for this plugin.

    body

    The closure that contains the implementation of this plugin.

  • Equatable implementation for XCMetricsPlugin.

    Declaration

    Swift

    public static func == (lhs: XCMetricsPlugin, rhs: XCMetricsPlugin) -> Bool
  • Hashable implementation for XCMetricsPlugin.

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)