View activity_login.xml
This file contains 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
<?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" |
View Login.kt
This file contains 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
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 | |