Skip to content
Snippets Groups Projects

Minor google drive fixes

Merged Felix Paul Kühne requested to merge fkuehne/vlc-ios:minor-google-drive-fixes into master
3 files
+ 3
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -21,7 +21,7 @@ class GoogleSignInAuthenticator: NSObject {
@objc class func signIn(_ signIn: GIDSignIn, presentingView: VLCGoogleDriveTableViewController) {
let configuration = GIDConfiguration(clientID: kVLCGoogleDriveClientID)
signIn.addScopes([kVLCGoogleDriveScope], presenting: presentingView, callback: nil)
signIn.addScopes([kGTLRAuthScopeDrive], presenting: presentingView, callback: nil)
signIn.signIn(with: configuration, presenting: presentingView, callback: { user, error in
if error != nil {
@@ -30,7 +30,7 @@ class GoogleSignInAuthenticator: NSObject {
if let user = user,
let grantedScopes = user.grantedScopes,
grantedScopes.contains(kVLCGoogleDriveScope) {
grantedScopes.contains(kGTLRAuthScopeDrive) {
presentingView.setAuthorizerAndUpdate()
}
})
Loading