File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed
Sources/Features/Attributes Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 33## Version 2.0.1
44- Added application.session and application.version attribute as defaults - no matter if the metrics integration is enabled or not.
55- Added application.build attribute that represents an app build version.
6+ - Added backtrace.agent attribute that represents current agent name.
67
78## Version 2.0.0
89- Adds Swift Package Manager support
Original file line number Diff line number Diff line change @@ -207,26 +207,14 @@ struct LibInfo: AttributesSource {
207207 private static let applicationGuidKey = " backtrace.unique.user.identifier "
208208 private static let applicationLangName = " backtrace-cocoa "
209209
210- var backtraceVersion : String ? {
211-
212- #if SWIFT_PACKAGE
213- if let build = Bundle . main. infoDictionary ? [ " CFBundleShortVersionString " ] {
214- return build as? String
215- }
216- #else
217- if let bundle = Bundle ( identifier: " Backtrace.io.Backtrace " ) ,
218- let build = bundle. infoDictionary ? [ " CFBundleShortVersionString " ] {
219- return build as? String
220- }
221- #endif
222- return nil
223- }
224-
210+ var backtraceVersion = " 2.0.1 "
211+
225212 var immutable : [ String : Any ? ] {
226213 return [ " guid " : LibInfo . guid ( store: UserDefaultsStore . self) . uuidString,
227214 " lang.name " : LibInfo . applicationLangName,
228215 " lang.version " : backtraceVersion,
229- " backtrace.version " : backtraceVersion]
216+ " backtrace.version " : backtraceVersion,
217+ " backtrace.agent " : " backtrace-cocoa " ]
230218 }
231219
232220 static private func guid( store: UserDefaultsStore . Type ) -> UUID {
You can’t perform that action at this time.
0 commit comments