mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Supports blocking third-party sources
Blocked sources cannot be added by new users, or updated for existing users.
This commit is contained in:
@@ -498,13 +498,13 @@ extension AppManager
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
func fetchTrustedSources(completionHandler: @escaping (Result<[FetchTrustedSourcesOperation.TrustedSource], Error>) -> Void) -> FetchTrustedSourcesOperation
|
||||
func updateKnownSources(completionHandler: @escaping (Result<([UpdateKnownSourcesOperation.Source], [UpdateKnownSourcesOperation.Source]), Error>) -> Void) -> UpdateKnownSourcesOperation
|
||||
{
|
||||
let fetchTrustedSourcesOperation = FetchTrustedSourcesOperation()
|
||||
fetchTrustedSourcesOperation.resultHandler = completionHandler
|
||||
self.run([fetchTrustedSourcesOperation], context: nil)
|
||||
let updateKnownSourcesOperation = UpdateKnownSourcesOperation()
|
||||
updateKnownSourcesOperation.resultHandler = completionHandler
|
||||
self.run([updateKnownSourcesOperation], context: nil)
|
||||
|
||||
return fetchTrustedSourcesOperation
|
||||
return updateKnownSourcesOperation
|
||||
}
|
||||
|
||||
func updatePatronsIfNeeded()
|
||||
|
||||
Reference in New Issue
Block a user