Skip to content

Commit

Permalink
Merge pull request #697 from cmittendorf/networkactivity-main-thread
Browse files Browse the repository at this point in the history
Remove showing the network activity status, deprecated sind iOS 13
  • Loading branch information
phimage committed Nov 10, 2022
2 parents 73f9787 + 11453e3 commit d10de2e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Sources/OAuthSwiftHTTPRequest.swift
Expand Up @@ -102,27 +102,11 @@ open class OAuthSwiftHTTPRequest: NSObject, OAuthSwiftRequestHandle {

self.task?.resume()
self.session.finishTasksAndInvalidate()

#if os(iOS)
#if !OAUTH_APP_EXTENSIONS
#if !targetEnvironment(macCatalyst)
UIApplication.shared.isNetworkActivityIndicatorVisible = self.config.sessionFactory.isNetworkActivityIndicatorVisible
#endif
#endif
#endif
}
}

/// Function called when receiving data from server.
public static func completionHandler(completionHandler completion: CompletionHandler?, request: URLRequest, data: Data?, resp: URLResponse?, error: Error?) {
#if os(iOS)
#if !OAUTH_APP_EXTENSIONS
#if !targetEnvironment(macCatalyst)
UIApplication.shared.isNetworkActivityIndicatorVisible = false
#endif
#endif
#endif

// MARK: failure error returned by server
if let error = error {
var oauthError: OAuthSwiftError = .requestError(error: error, request: request)
Expand Down

0 comments on commit d10de2e

Please sign in to comment.