Skip to content

Instantly share code, notes, and snippets.

@Xiryl
Created February 11, 2023 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xiryl/f5cf5f947d24b0f8c42f19572eb01ca4 to your computer and use it in GitHub Desktop.
Save Xiryl/f5cf5f947d24b0f8c42f19572eb01ca4 to your computer and use it in GitHub Desktop.
driveapimedium-github-2
fun getGoogleSignInClient(context: Context): GoogleSignInClient {
val signInOptions = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.requestScopes(Scope(DriveScopes.DRIVE_FILE), Scope(DriveScopes.DRIVE))
.build()
return GoogleSignIn.getClient(context, signInOptions)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment