mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Adds FetchTrustedSourcesOperation
This commit is contained in:
@@ -394,6 +394,16 @@ extension AppManager
|
||||
self.run([fetchAppIDsOperation], context: authenticationOperation.context)
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
func fetchTrustedSources(completionHandler: @escaping (Result<[FetchTrustedSourcesOperation.TrustedSource], Error>) -> Void) -> FetchTrustedSourcesOperation
|
||||
{
|
||||
let fetchTrustedSourcesOperation = FetchTrustedSourcesOperation()
|
||||
fetchTrustedSourcesOperation.resultHandler = completionHandler
|
||||
self.run([fetchTrustedSourcesOperation], context: nil)
|
||||
|
||||
return fetchTrustedSourcesOperation
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
func install<T: AppProtocol>(_ app: T, presentingViewController: UIViewController?, context: AuthenticatedOperationContext = AuthenticatedOperationContext(), completionHandler: @escaping (Result<InstalledApp, Error>) -> Void) -> RefreshGroup
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user