fix: cached app after download was not respecting overriden appId/bundleId

This commit is contained in:
mahee96
2026-02-02 11:28:48 +05:30
parent 30c03aad42
commit 255db2bac0
3 changed files with 11 additions and 3 deletions

View File

@@ -32,6 +32,13 @@ public struct AnyApp: AppProtocol
self.url = url
self.storeApp = storeApp
}
public init(from app: AppProtocol, name: String? = nil, bundleId: String? = nil, url: URL? = nil, storeApp: StoreApp? = nil) {
self.name = name ?? app.name
self.bundleIdentifier = bundleId ?? app.bundleIdentifier
self.url = url ?? app.url
self.storeApp = storeApp ?? app.storeApp
}
}
extension ALTApplication: AppProtocol