2020-11-11 17:25:16 -08:00
|
|
|
//
|
|
|
|
|
// ALTApplication+AltStoreApp.swift
|
|
|
|
|
// AltStore
|
|
|
|
|
//
|
|
|
|
|
// Created by Riley Testut on 11/11/20.
|
|
|
|
|
// Copyright © 2020 Riley Testut. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import AltSign
|
|
|
|
|
|
|
|
|
|
extension ALTApplication
|
|
|
|
|
{
|
2022-12-30 16:51:36 -05:00
|
|
|
static let altstoreBundleID = Bundle.Info.appbundleIdentifier
|
2023-03-28 23:48:24 -04:00
|
|
|
static let altstoreBundleIDOriginal = "AltStore"
|
|
|
|
|
static let storeBundleID = "SideStore"
|
|
|
|
|
static let widgetID = "Widget"
|
2020-11-11 17:25:16 -08:00
|
|
|
|
|
|
|
|
var isAltStoreApp: Bool {
|
2023-03-28 23:48:24 -04:00
|
|
|
let isAltStoreApp = ( self.bundleIdentifier.contains(ALTApplication.altstoreBundleID) || self.bundleIdentifier.contains(ALTApplication.altstoreBundleIDOriginal) || self.bundleIdentifier.contains(ALTApplication.storeBundleID) ) && !self.bundleIdentifier.contains(ALTApplication.widgetID)
|
2020-11-11 17:25:16 -08:00
|
|
|
return isAltStoreApp
|
|
|
|
|
}
|
|
|
|
|
}
|