mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
23 lines
769 B
Swift
23 lines
769 B
Swift
//
|
|
// ALTApplication+AltStoreApp.swift
|
|
// AltStore
|
|
//
|
|
// Created by Riley Testut on 11/11/20.
|
|
// Copyright © 2020 Riley Testut. All rights reserved.
|
|
//
|
|
|
|
import AltSign
|
|
|
|
extension ALTApplication
|
|
{
|
|
static let altstoreBundleID = Bundle.Info.appbundleIdentifier
|
|
static let altstoreBundleIDOriginal = "AltStore"
|
|
static let storeBundleID = "SideStore"
|
|
static let widgetID = "Widget"
|
|
|
|
var isAltStoreApp: Bool {
|
|
let isAltStoreApp = ( self.bundleIdentifier.contains(ALTApplication.altstoreBundleID) || self.bundleIdentifier.contains(ALTApplication.altstoreBundleIDOriginal) || self.bundleIdentifier.contains(ALTApplication.storeBundleID) ) && !self.bundleIdentifier.contains(ALTApplication.widgetID)
|
|
return isAltStoreApp
|
|
}
|
|
}
|