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:
@@ -11,7 +11,9 @@ import Foundation
|
||||
public extension FileManager
|
||||
{
|
||||
var altstoreSharedDirectory: URL? {
|
||||
guard let appGroup = Bundle.main.altstoreAppGroup else { return nil }
|
||||
guard let appGroup = Bundle.main.altstoreAppGroup else {
|
||||
return nil
|
||||
}
|
||||
|
||||
let sharedDirectoryURL = self.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
|
||||
return sharedDirectoryURL
|
||||
|
||||
@@ -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