mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
iOS 13.3.1 limits free developer accounts to 3 apps and app extensions. As a workaround, we now allow up to 3 “active” apps (apps with installed provisioning profiles), as well as additional “inactivate” apps which don’t have any profiles installed, causing them to not count towards the total. Inactive apps cannot be opened until they are activated.
47 lines
1.1 KiB
Swift
47 lines
1.1 KiB
Swift
//
|
|
// UserDefaults+AltStore.swift
|
|
// AltStore
|
|
//
|
|
// Created by Riley Testut on 6/4/19.
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
import Roxas
|
|
|
|
extension UserDefaults
|
|
{
|
|
@NSManaged var firstLaunch: Date?
|
|
|
|
@NSManaged var preferredServerID: String?
|
|
|
|
@NSManaged var isBackgroundRefreshEnabled: Bool
|
|
@NSManaged var isDebugModeEnabled: Bool
|
|
@NSManaged var presentedLaunchReminderNotification: Bool
|
|
|
|
@NSManaged var legacySideloadedApps: [String]?
|
|
|
|
var activeAppsLimit: Int? {
|
|
get {
|
|
return self._activeAppsLimit?.intValue
|
|
}
|
|
set {
|
|
if let value = newValue
|
|
{
|
|
self._activeAppsLimit = NSNumber(value: value)
|
|
}
|
|
else
|
|
{
|
|
self._activeAppsLimit = nil
|
|
}
|
|
}
|
|
}
|
|
@NSManaged @objc(activeAppsLimit) private var _activeAppsLimit: NSNumber?
|
|
|
|
func registerDefaults()
|
|
{
|
|
self.register(defaults: [#keyPath(UserDefaults.isBackgroundRefreshEnabled): true])
|
|
}
|
|
}
|