mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Actually shows AltStore build version in Settings for BETA builds
This commit is contained in:
@@ -132,7 +132,12 @@ final class SettingsViewController: UITableViewController
|
||||
{
|
||||
#if BETA
|
||||
// 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
|
||||
let localizedVersion = installedApp.version
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user