mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[AltBackup+Schemes]: Fixes for URL schemes throughout both AltBackup and SideStore apps
This commit is contained in:
@@ -343,14 +343,18 @@ public extension InstalledApp
|
||||
|
||||
public extension InstalledApp
|
||||
{
|
||||
// TODO: @mahee96: Do NOT hardcode app's url scheme prefixes as in here
|
||||
// Need to get it dynamically from the Info.plist of other means
|
||||
var openAppURL: URL {
|
||||
let openAppURL = URL(string: "altstore-" + self.bundleIdentifier + "://")!
|
||||
let openAppURL = URL(string: "sidestore-" + self.bundleIdentifier + "://")!
|
||||
return openAppURL
|
||||
}
|
||||
|
||||
// TODO: @mahee96: Do NOT hardcode app's url scheme prefixes as in here
|
||||
// Need to get it dynamically from the Info.plist of other means
|
||||
class func openAppURL(for app: AppProtocol) -> URL
|
||||
{
|
||||
let openAppURL = URL(string: "altstore-" + app.bundleIdentifier + "://")!
|
||||
let openAppURL = URL(string: "sidestore-" + app.bundleIdentifier + "://")!
|
||||
return openAppURL
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user