Skip to content

Commit

Permalink
Do not read application version as 'backtrace.version'
Browse files Browse the repository at this point in the history
  • Loading branch information
konraddysput committed Oct 31, 2023
1 parent 027ef15 commit 1dfcb1d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions Sources/Features/Attributes/DefaultAttributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,21 +207,8 @@ struct LibInfo: AttributesSource {
private static let applicationGuidKey = "backtrace.unique.user.identifier"
private static let applicationLangName = "backtrace-cocoa"

var backtraceVersion: String? {

#if SWIFT_PACKAGE
if let build = Bundle.main.infoDictionary?["CFBundleShortVersionString"] {
return build as? String
}
#else
if let bundle = Bundle(identifier: "Backtrace.io.Backtrace"),
let build = bundle.infoDictionary?["CFBundleShortVersionString"] {
return build as? String
}
#endif
return nil
}

var backtraceVersion = "2.0.1"

var immutable: [String: Any?] {
return ["guid": LibInfo.guid(store: UserDefaultsStore.self).uuidString,
"lang.name": LibInfo.applicationLangName,
Expand Down

0 comments on commit 1dfcb1d

Please sign in to comment.