Supports adding trusted sources from SourcesViewController

Previously, only the beta version of AltStore could add sources. Now, the public version supports adding explicitly “trusted” sources, while the beta version can continue to add any source.
This commit is contained in:
Riley Testut
2022-04-14 16:24:11 -07:00
parent f1f6852ab4
commit 1f7c089c70
7 changed files with 443 additions and 60 deletions

View File

@@ -37,6 +37,8 @@ public extension UserDefaults
@NSManaged var patchedApps: [String]?
@NSManaged var trustedSourceIDs: [String]?
var activeAppsLimit: Int? {
get {
return self._activeAppsLimit?.intValue

View File

@@ -33,10 +33,6 @@ public extension Source
#endif
#endif
static let exampleIdentifier = "io.altstore.example"
static let allowedIdentifiers: Set<String> = [exampleIdentifier]
}
@objc(Source)