Skip to content

Commit

Permalink
Treat build version as an application.version, instead of product ver…
Browse files Browse the repository at this point in the history
…sion that should be treaten as marketing_version
  • Loading branch information
konraddysput committed Oct 19, 2023
1 parent 74ab0a5 commit 22628a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Sources/Features/Extensions/Foundation+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ extension Bundle {
var releaseVersionNumber: String? {
return infoDictionary?["CFBundleShortVersionString"] as? String
}

var buildVersionNumber: String? {
return infoDictionary?["CFBundleVersion"] as? String
}
}
2 changes: 1 addition & 1 deletion Sources/Public/BacktraceClientCustomizing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public typealias Bookmarks = [String: Data]

public let applicationName = Bundle.main.displayName

public let applicationVersion = Bundle.main.releaseVersionNumber
public let applicationVersion = Bundle.main.buildVersionNumber

public let defaultMetricsBaseUrlString = "https://events.backtrace.io/api/"

Expand Down

0 comments on commit 22628a0

Please sign in to comment.