mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-31 04:37:41 +00:00
fix(ios): use CFBundleShortVersionString for version
This commit is contained in:
parent
1ce2133a3d
commit
2fe3fc6658
2 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ public enum Util {
|
|||
public static let sdkVersion: String = {
|
||||
let url = Resources.bundle.url(forResource: "KeymanEngine-Info", withExtension: "plist")!
|
||||
let info = NSDictionary(contentsOf: url)!
|
||||
return info["CFBundleVersion"] as! String
|
||||
return info["CFBundleShortVersionString"] as! String
|
||||
}()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public class Version: NSObject, Comparable {
|
|||
|
||||
public static var current: Version {
|
||||
let engineInfo = Bundle(for: Manager.self).infoDictionary
|
||||
return Version(engineInfo!["CFBundleVersion"] as! String)!
|
||||
return Version(engineInfo!["CFBundleShortVersionString"] as! String)!
|
||||
}
|
||||
|
||||
public static var currentTagged: Version {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue