This repository was archived by the owner on Apr 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ struct BugsnagUser: Encodable {
151151
152152struct BugsnagApp : Encodable {
153153 let releaseStage : String
154+ let version : String ?
154155}
155156
156157struct BugsnagMetaData : Encodable {
Original file line number Diff line number Diff line change 11public struct BugsnagConfig {
22 let apiKey : String
33 let releaseStage : String
4+ /// A version identifier, (eg. a git hash)
5+ let version : String ?
46 let keyFilters : [ String ]
57 let shouldReport : Bool
68 let debug : Bool
79
810 public init (
911 apiKey: String ,
1012 releaseStage: String ,
13+ version: String ? = nil ,
1114 keyFilters: [ String ] = [ ] ,
1215 shouldReport: Bool = true ,
1316 debug: Bool = false
1417 ) {
1518 self . apiKey = apiKey
1619 self . releaseStage = releaseStage
20+ self . version = version
1721 self . keyFilters = keyFilters
1822 self . shouldReport = shouldReport
1923 self . debug = debug
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ public struct BugsnagReporter: Service {
3030 }
3131
3232 app = BugsnagApp (
33- releaseStage: config. releaseStage
33+ releaseStage: config. releaseStage,
34+ version: config. version
3435 )
3536 headers = . init( [
3637 ( " Content-Type " , " application/json " ) ,
You can’t perform that action at this time.
0 commit comments