- Minor fixes and cleanup

This commit is contained in:
Magesh K
2025-02-09 16:18:41 +05:30
parent 533655c96b
commit a8fd1a3e83
7 changed files with 164 additions and 164 deletions

View File

@@ -289,11 +289,10 @@ private extension SettingsViewController
versionLabel = NSLocalizedString(String(format: "Version %@", localizedVersion), comment: "SideStore Version")
}
else if var version = buildInfo.marketing_version
else if let version = buildInfo.marketing_version
{
versionLabel = NSLocalizedString(String(format: "Version %@", version), comment: "SideStore Version")
}
else
{
var version = "SideStore\t"
@@ -303,10 +302,7 @@ private extension SettingsViewController
// add xcode build version for local builds
if let installedApp,
let version = installedApp.storeApp?.latestSupportedVersion?.version,
// if MARKETING_VERSION is set as "0.6.0-local" in CodeSigning.xcconfig as override,
// then it is assumed it is local build and we should show xcode build information
SemanticVersion(version)?.preRelease == "local"
SemanticVersion(installedApp.version)?.preRelease == "local"
{
versionLabel += "\n\(getXcodeVersion())"
}