Files
SideStore/AltStoreCore/Protocols/AppProtocol.swift
Riley Testut f1a39e1a1f [AltStoreCore] Refactors core AltStore logic into AltStoreCore framework
AltStoreCore will contain all shared AltStore code between AltStore and any app extensions. Initially, it includes all AltStore model logic.
2020-09-03 16:39:08 -07:00

39 lines
608 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 }
}
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
}
}