We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c7dff2 commit 70dbd47Copy full SHA for 70dbd47
Sources/Segment/Plugins.swift
@@ -58,6 +58,10 @@ public protocol DestinationPlugin: EventPlugin {
58
59
public protocol UtilityPlugin: EventPlugin { }
60
61
+public protocol VersionedPlugin {
62
+ static func version() -> String
63
+}
64
+
65
// For internal platform-specific bits
66
internal protocol PlatformPlugin: Plugin { }
67
Sources/Segment/Plugins/SegmentDestination.swift
@@ -211,3 +211,11 @@ extension SegmentDestination {
211
}
212
213
214
215
+// MARK: Versioning
216
217
+extension SegmentDestination: VersionedPlugin {
218
+ public static func version() -> String {
219
+ return __segment_version
220
+ }
221
0 commit comments