feat: MDC (and update generated localizations and project file)

This commit is contained in:
naturecodevoid
2023-06-01 07:38:26 -07:00
parent 40c6d60138
commit 465c87d442
23 changed files with 1746 additions and 31 deletions

View File

@@ -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
{

View File

@@ -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)