From 7764ffe109ba429c4ce5c3ffe604c67599e4335e Mon Sep 17 00:00:00 2001 From: Denes Date: Tue, 16 Jan 2024 20:31:12 +0100 Subject: [PATCH] feat: Add library version number to header event --- Sources/Trap/Constants.swift | 5 +++++ Sources/Trap/Manager/Reporter.swift | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Sources/Trap/Constants.swift diff --git a/Sources/Trap/Constants.swift b/Sources/Trap/Constants.swift new file mode 100644 index 0000000..6445863 --- /dev/null +++ b/Sources/Trap/Constants.swift @@ -0,0 +1,5 @@ +struct Constants { + struct App { + static let version = "1.1.3" + } +} diff --git a/Sources/Trap/Manager/Reporter.swift b/Sources/Trap/Manager/Reporter.swift index 3e21ce7..d2f1752 100644 --- a/Sources/Trap/Manager/Reporter.swift +++ b/Sources/Trap/Manager/Reporter.swift @@ -139,7 +139,8 @@ class TrapReporter { DataType.string(config.reporter.sessionId.uuidString), DataType.string(streamId.uuidString), DataType.int(sequenceId), - DataType.dict(["version": DataType.string("20230706T094422Z")]) + DataType.dict(["version": DataType.string("20230706T094422Z")]), + DataType.string(Constants.App.version) ]) sequenceId += 1