mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-15 17:53:31 +01:00
Actually shows AltStore build version in Settings for BETA builds
This commit is contained in:
@@ -107,7 +107,12 @@ class SettingsViewController: UITableViewController
|
|||||||
{
|
{
|
||||||
#if BETA
|
#if BETA
|
||||||
// Only show build version for BETA builds.
|
// Only show build version for BETA builds.
|
||||||
let localizedVersion = installedApp.localizedVersion
|
let localizedVersion = if let bundleVersion = Bundle.main.object(forInfoDictionaryKey: kCFBundleVersionKey as String) as? String {
|
||||||
|
"\(installedApp.version) (\(bundleVersion))"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
installedApp.localizedVersion
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
let localizedVersion = installedApp.version
|
let localizedVersion = installedApp.version
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user