 import SwiftyJSON
 import GoogleSignIn
 import GGLSignIn
+import NVActivityIndicatorView
 
 class GoogleLoginViewController: UIViewController, GIDSignInUIDelegate, GIDSignInDelegate {
     
     var loginButton: GIDSignInButton!
+    var loadingActivityIndicator: NVActivityIndicatorView!
     
     override func viewDidLoad() {
         super.viewDidLoad()

        GIDSignIn.sharedInstance().scopes.append(contentsOf: [profileScope, emailScope])
        
        loginButton = GIDSignInButton()
        loginButton.center = view.center
        view.addSubview(loginButton)
    }
    

            System.currentSession = session
            
            appDelegate.didFinishAuthenticatingUser()
            
            self.stopLoginAnimation()
        }
        
        authenticateGoogleUserEndpointRequest.failure = { (endpointRequest: EndpointRequest) in
            self.stopLoginAnimation()
        }
        
        System.endpointRequestQueue.addOperation(authenticateGoogleUserEndpointRequest)
