Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Sources/Segment/Plugins.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public protocol DestinationPlugin: EventPlugin {

public protocol UtilityPlugin: EventPlugin { }

public protocol VersionedPlugin {
static func version() -> String
}

// For internal platform-specific bits
internal protocol PlatformPlugin: Plugin { }

Expand Down
8 changes: 8 additions & 0 deletions Sources/Segment/Plugins/SegmentDestination.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,11 @@ extension SegmentDestination {
}
}
}

// MARK: Versioning

extension SegmentDestination: VersionedPlugin {
public static func version() -> String {
return __segment_version
}
}