Skip to content

Commit

Permalink
add version number to message
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanlensink committed Jun 11, 2018
1 parent 7574214 commit 8f7e0fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Switchcraft/Classes/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ public struct Config {
public var alertMessage: String? {
if let bundle = Bundle.main.infoDictionary,
let displayName = bundle["CFBundleDisplayName"] as? String,
let versionString = bundle["CFBundleShortVersionString"] as? String {
return displayName + " " + versionString
let versionString = bundle["CFBundleShortVersionString"] as? String,
let buildNumber = bundle["CFBundleVersion"] as? String {
return displayName + " " + versionString + "-" + buildNumber
}
return nil
}
Expand Down

0 comments on commit 8f7e0fe

Please sign in to comment.