Android Tutorial 2019 #9: Firebase Authentication w/ Google Sign In + Kotlin Coroutines, SHA-1 key

Опубликовано: 23 Октябрь 2024
на канале: Ryan Michael Kay
3,984
83

Source code:
https://github.com/BracketCove/Jetpac...

Master OOP languages with tutorials from someone who actually cares if you understand how to write beautiful code:
Java Desktop Programming w/ JavaFX (Intermediate) - https://skl.sh/31pzCa1
Complete Beginner Introduction To Java Programming (Beginner - Intermediate) - https://skl.sh/3fZbjos
Android Apps With Kotlin & Android Studio (Beginner) - https://skl.sh/2ZU6ZT9
Material Design Android Programming w/ Kotlin (Intermediate) - https://skl.sh/2OrwrYZ

All the above courses are available for 2.99 a month via a youtube subscription to this channel too!

  / rkay301  
  / wiseassblog  
  / wiseass301  
rkay301.medium.com/follow

In this part of my 2019 Android tutorial, we configure an Android project in Android Studio and Firebase, so that we can use Firebase Authentication (FirebaseAuth) with GoogleSignInProvider (Google Sign In).

The actual code required to put this together is not too bad, but there are a large number of steps required to configure your Android Project, and also the Firebase console. In this video, I show you how to properly configure Firebase with a SHA-1 key for debug builds, and how to get your Key after you upload your app to google play; assuming you use "App Signing By Google Play".

As a bonus, I show you how to use Coroutines and Kotlin Extensions to make Firebase requests work on a background thread, and also to synchronously wait for Task objects to complete.