feature: added a prompt before installing to customize appId

This commit is contained in:
mahee96
2026-02-02 08:44:49 +05:30
parent d70c916222
commit 30c03aad42
4 changed files with 212 additions and 38 deletions

View File

@@ -38,11 +38,13 @@ final class VerifyAppOperation: ResultOperation<Void>
{
let permissionsMode: PermissionReviewMode
let context: InstallAppOperationContext
var customBundleId: String?
init(permissionsMode: PermissionReviewMode, context: InstallAppOperationContext)
init(permissionsMode: PermissionReviewMode, context: InstallAppOperationContext, customBundleId: String? = nil)
{
self.permissionsMode = permissionsMode
self.context = context
self.customBundleId = customBundleId
super.init()
}
@@ -65,7 +67,8 @@ final class VerifyAppOperation: ResultOperation<Void>
}
if !["ny.litritt.ignited", "com.litritt.ignited"].contains(where: { $0 == app.bundleIdentifier }) {
guard app.bundleIdentifier == self.context.bundleIdentifier else {
let bundleId = customBundleId ?? app.bundleIdentifier
guard bundleId == self.context.bundleIdentifier else {
throw VerificationError.mismatchedBundleIdentifiers(sourceBundleID: self.context.bundleIdentifier, app: app)
}
}