Skip to content

Library for easy work with Google SignIn on Android

Notifications You must be signed in to change notification settings

RajatSingh/GoogleSignin

Repository files navigation

GoogleSignin

GoogleSignin is a library which makes working with Google signin easier. Library is still in development so more features will be added soon.

Features:

  • Google SignIn
  • Fetch Person Details(Complete user profile information)
  • Share on G+

Getting started:

  • First of all, you need to register you application with google(https://console.developers.google.com/project)
  • Add googlelibs libs to your project as module.
  • Add below line to the bottom of app.gradle of your project
    apply plugin: 'com.google.gms.google-services'
  • Add below line under dependencies{..} tag of app.gradle of your project
    compile project(path: ':googlelibs')
  • Implement GoogleSignCallback in your activity or fragment.
  • Intialize GoogleClient with line mentioned below
    GoogleSignInAI mGoogleSignInAI = GoogleSignInAI.getInstance(this,1001,this,GOOGLE_WEB_CLIENT_ID,GOOGLE_WEB_CLIENT_SECRET,GoogleSignInAI.LOGIN_PURPOSE.LOGIN_FETCH_CONTACT.ordinal());
    mGoogleSignInAI.doSignIn();// Call login method.
  • Add mGoogleSignInAI.onActivityResult(data); to onActivityResult method of your activity.

About

Library for easy work with Google SignIn on Android

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages