Files
SideStore/AltStoreCore/Protocols/AppProtocol.swift
Riley Testut ed396b400d Supports installing Fugu14-based jailbreaks
If a jailbreak app contains the relevant Fugu14 entries in its Info.plist, AltStore will automatically guide the user through the Fugu14 untether process before installing the jailbreak.
2021-10-25 22:27:30 -07:00

53 lines
919 B
Swift

//
// AppProtocol.swift
// AltStore
//
// Created by Riley Testut on 7/26/19.
// Copyright © 2019 Riley Testut. All rights reserved.
//
import Foundation
import AltSign
public protocol AppProtocol
{
var name: String { get }
var bundleIdentifier: String { get }
var url: URL { get }
}
public struct AnyApp: AppProtocol
{
public var name: String
public var bundleIdentifier: String
public var url: URL
public init(name: String, bundleIdentifier: String, url: URL)
{
self.name = name
self.bundleIdentifier = bundleIdentifier
self.url = url
}
}
extension ALTApplication: AppProtocol
{
public var url: URL {
return self.fileURL
}
}
extension StoreApp: AppProtocol
{
public var url: URL {
return self.downloadURL
}
}
extension InstalledApp: AppProtocol
{
public var url: URL {
return self.fileURL
}
}