cleanup: improved messaging for appID customization

This commit is contained in:
mahee96
2026-02-22 05:31:26 +05:30
parent 096bb85bc1
commit 83ed17c443

View File

@@ -709,7 +709,7 @@ extension AppManager
var app: AppProtocol = app var app: AppProtocol = app
// ---- Preflight bundle ID resolution ---- // ---- Preflight bundle ID resolution ----
if UserDefaults.standard.customizeAppId, // only show prompt when enabled by user if UserDefaults.standard.customizeAppId, // only show prompt when enabled by user
let presentingViewController { let presentingViewController {
let originalBundleID = app.bundleIdentifier let originalBundleID = app.bundleIdentifier
let resolution = await self.resolveBundleID( let resolution = await self.resolveBundleID(
@@ -2360,9 +2360,12 @@ private extension AppManager {
completion: @escaping (BundleIDResolution) -> Void completion: @escaping (BundleIDResolution) -> Void
) -> UIAlertController { ) -> UIAlertController {
let titleText = NSLocalizedString("AppID Customization", comment: "")
let messageText = NSLocalizedString("Customize the AppID if required and press 'Confirm' to proceed.", comment: "")
let alert = UIAlertController( let alert = UIAlertController(
title: NSLocalizedString("Override Bundle Identifier", comment: ""), title: titleText,
message: nil, message: messageText,
preferredStyle: .alert preferredStyle: .alert
) )
@@ -2379,7 +2382,7 @@ private extension AppManager {
) )
} }
okAction = UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default) { _ in okAction = UIAlertAction(title: NSLocalizedString("Confirm", comment: ""), style: .default) { _ in
completion(.resolved(alert.textFields?.first?.text ?? initialBundleID)) completion(.resolved(alert.textFields?.first?.text ?? initialBundleID))
} }