@@ -22,7 +22,7 @@ import Foundation
22
22
#endif
23
23
24
24
@available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
25
- protocol AuthBackendRPCIssuer : NSObjectProtocol {
25
+ protocol AuthBackendRPCIssuer {
26
26
/// Asynchronously send a HTTP request.
27
27
/// - Parameter request: The request to be made.
28
28
/// - Parameter body: Request body.
@@ -35,10 +35,10 @@ protocol AuthBackendRPCIssuer: NSObjectProtocol {
35
35
}
36
36
37
37
@available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
38
- class AuthBackendRPCIssuerImplementation : NSObject , AuthBackendRPCIssuer {
38
+ class AuthBackendRPCIssuerImplementation : AuthBackendRPCIssuer {
39
39
let fetcherService : GTMSessionFetcherService
40
40
41
- override init ( ) {
41
+ init ( ) {
42
42
fetcherService = GTMSessionFetcherService ( )
43
43
fetcherService. userAgent = AuthBackend . authUserAgent ( )
44
44
fetcherService. callbackQueue = kAuthGlobalWorkQueue
@@ -71,7 +71,7 @@ class AuthBackendRPCIssuerImplementation: NSObject, AuthBackendRPCIssuer {
71
71
}
72
72
73
73
@available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
74
- class AuthBackend : NSObject {
74
+ class AuthBackend {
75
75
static func authUserAgent( ) -> String {
76
76
return " FirebaseAuth.iOS/ \( FirebaseVersion ( ) ) \( GTMFetcherStandardUserAgentString ( nil ) ) "
77
77
}
@@ -143,11 +143,8 @@ protocol AuthBackendImplementation {
143
143
}
144
144
145
145
@available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
146
- private class AuthBackendRPCImplementation : NSObject , AuthBackendImplementation {
147
- var rpcIssuer : AuthBackendRPCIssuer
148
- override init ( ) {
149
- rpcIssuer = AuthBackendRPCIssuerImplementation ( )
150
- }
146
+ private class AuthBackendRPCImplementation : AuthBackendImplementation {
147
+ var rpcIssuer : AuthBackendRPCIssuer = AuthBackendRPCIssuerImplementation ( )
151
148
152
149
/// Calls the RPC using HTTP request.
153
150
/// Possible error responses:
0 commit comments