mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-11 07:43:28 +01:00
feat: MDC (and update generated localizations and project file)
This commit is contained in:
@@ -50,6 +50,10 @@ public extension UserDefaults
|
||||
@NSManaged var trustedServerURL: String?
|
||||
|
||||
@NSManaged var unstableFeatures: Data?
|
||||
#if MDC
|
||||
@NSManaged var hasPatchedInstalldEver: Bool
|
||||
@NSManaged var lastInstalldPatchBootTime: Date?
|
||||
#endif
|
||||
|
||||
var activeAppsLimit: Int? {
|
||||
get {
|
||||
@@ -82,6 +86,7 @@ public extension UserDefaults
|
||||
#keyPath(UserDefaults.isConsoleEnabled): false,
|
||||
#keyPath(UserDefaults.isDebugLoggingEnabled): false,
|
||||
#keyPath(UserDefaults.onboardingComplete): false,
|
||||
#keyPath(UserDefaults.hasPatchedInstalldEver): false,
|
||||
#keyPath(UserDefaults.isBackgroundRefreshEnabled): true,
|
||||
#keyPath(UserDefaults.isLegacyDeactivationSupported): isLegacyDeactivationSupported,
|
||||
#keyPath(UserDefaults.activeAppLimitIncludesExtensions): activeAppLimitIncludesExtensions,
|
||||
|
||||
@@ -12,8 +12,21 @@ import CoreData
|
||||
import AltSign
|
||||
import SemanticVersion
|
||||
|
||||
// Free developer accounts are limited to only 3 active sideloaded apps at a time as of iOS 13.3.1.
|
||||
public let ALTActiveAppsLimit = 3
|
||||
public extension InstalledApp
|
||||
{
|
||||
// Free developer accounts are limited to only 3 active sideloaded apps at a time as of iOS 13.3.1. However, the MDC exploit allows you to have 10 per Apple ID/SideStore instance.
|
||||
static var freeAccountActiveAppsLimit: Int {
|
||||
#if MDC
|
||||
if CowExploits.installdHasBeenPatched {
|
||||
return 10
|
||||
} else {
|
||||
return 3
|
||||
}
|
||||
#else
|
||||
return 3
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
public protocol InstalledAppProtocol: Fetchable
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ class InstalledAppToInstalledAppMigrationPolicy: NSEntityMigrationPolicy
|
||||
|
||||
// We can assume there is an active app limit,
|
||||
// but will confirm next time user authenticates.
|
||||
UserDefaults.standard.activeAppsLimit = ALTActiveAppsLimit
|
||||
UserDefaults.standard.activeAppsLimit = InstalledApp.freeAccountActiveAppsLimit
|
||||
}
|
||||
|
||||
return NSNumber(value: isActive)
|
||||
|
||||
Reference in New Issue
Block a user