Skip to content

Instantly share code, notes, and snippets.

View NLLAPPS's full-sized avatar

NLL APPS NLLAPPS

View GitHub Profile
@NLLAPPS
NLLAPPS / drive.kt
Created June 12, 2024 08:01
Migrating Android Google Drive authorization from Deprecated GoogleSignin API to authorization
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.IntentSender.SendIntentException
import androidx.core.app.ActivityCompat.startIntentSenderForResult
import com.google.android.gms.auth.api.identity.AuthorizationRequest
import com.google.android.gms.auth.api.identity.AuthorizationResult
import com.google.android.gms.auth.api.identity.Identity
import com.google.android.gms.common.api.Scope
import com.google.android.gms.tasks.Tasks