Guide to Google - WindSekirun/RxSocialLogin GitHub Wiki

Precondition

Tutorial to implement Google Login with RxSocialLogin, English, Korean

  1. In AS 3.1, enter 'Firebase' and click 'Authentication' and click 'Connect to Firebase' and 'Add Firebase Authentication to your app'. in this step, you will save your 'google-services.json' in your app module directory.
  2. Enable Google as authentication provider in Firebase Console
  3. Find 'Web Client ID' in Firebase console. you can find this information in sub-section of authentication provider.
  4. Provide your 'Web Client ID' into GoogleConfig.setClientTokenId()

Steps to add module

add this dependency in app/build.gradle

implementation 'com.google.android.gms:play-services-auth:15.0.0'
implementation 'com.google.firebase:firebase-auth:15.0.0'

Config Objects

google(getString(R.string.google_api_key)) {
    requireEmail = true
}