Last active
September 18, 2018 20:05
-
-
Save adrianhall/e9c36c4d164813d2651b0fa2aaa05d8e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configure the Google Sign in requirements | |
val googleSignInOptions = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) | |
.requestIdToken(resources.getString(R.string.google_client)) | |
.requestEmail() | |
.build() | |
val googleSignInClient = GoogleSignIn.getClient(this, googleSignInOptions) | |
loginFormGoogleLoginButton.onClick { | |
startActivityForResult(googleSignInClient.signInIntent, GOOGLE_SIGN_IN) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment