Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Login">
<com.google.android.gms.common.SignInButton
android:id="@+id/sign_in_button"
class Login : AppCompatActivity() {
//Google Login Request Code
private val RC_SIGN_IN = 7
//Google Sign In Client
private lateinit var mGoogleSignInClient: GoogleSignInClient
//Firebase Auth
private lateinit var mAuth: FirebaseAuth