mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Tries to refresh apps that are about to expire first, and then always refreshes AltStore itself last, since refreshing AltStore means that the app will quit.
36 lines
737 B
Swift
36 lines
737 B
Swift
//
|
|
// Contexts.swift
|
|
// AltStore
|
|
//
|
|
// Created by Riley Testut on 6/20/19.
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import CoreData
|
|
import Network
|
|
|
|
class AppOperationContext
|
|
{
|
|
var appIdentifier: String
|
|
var group: OperationGroup
|
|
|
|
var installedApp: InstalledApp? {
|
|
didSet {
|
|
self.installedAppContext = self.installedApp?.managedObjectContext
|
|
}
|
|
}
|
|
private var installedAppContext: NSManagedObjectContext?
|
|
|
|
var resignedFileURL: URL?
|
|
var connection: NWConnection?
|
|
|
|
var error: Error?
|
|
|
|
init(appIdentifier: String, group: OperationGroup)
|
|
{
|
|
self.appIdentifier = appIdentifier
|
|
self.group = group
|
|
}
|
|
}
|