Skip to content

Commit

Permalink
Merge pull request #15 from cursorinsight/denes/improvements
Browse files Browse the repository at this point in the history
feat: Add library version number to header event
  • Loading branch information
denessapi authored Jan 17, 2024
2 parents afb9f9e + 7764ffe commit 3ab1c24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Sources/Trap/Constants.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
struct Constants {
struct App {
static let version = "1.1.3"
}
}
3 changes: 2 additions & 1 deletion Sources/Trap/Manager/Reporter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ab1c24

Please sign in to comment.