Giter Club home page Giter Club logo

onetapcompose's Introduction

One-Tap Sign in with Google


License Profile


This library allow you to easily integrate One-Tap Sign in with Google(Credential Manager) to your project with Jetpack Compose. It hides all the boilerplate code away from you. You get an extracted Google User object that you can use to obtain a basic user information. And there's a new OneTapGoogleButton composable that you can use out of the box, with various customization options.


Download

License

Gradle

Add the dependency below to your module's build.gradle file:

dependencies {
    implementation("com.github.stevdza-san:OneTapCompose:1.0.12")
}

Add a repository in your settings.gradle file:

dependencyResolutionManagement {
    repositories {
        ...
        maven(url = "https://jitpack.io")
    }
}

Usage

Before you can use this library, you need to create a new project on a Google Cloud Platform. You need to create OAuth Client ID (ANDROID & WEB), because you will need that same Client ID (WEB), in order to implement One-Tap Sign in with Google.

After that, just call OneTapSignInWithGoogle() function, and pass that same information you've obtained through Google Cloud Platform. You will also pass OneTapSignInState, because that state is used later to trigger One-Tap dialog.

    val state = rememberOneTapSignInState()
    OneTapSignInWithGoogle(
        state = state,
        clientId = "YOUR_CLIENT_ID",
        onTokenIdReceived = { tokenId ->
            Log.d("LOG", tokenId)
        },
        onDialogDismissed = { message ->
            Log.d("LOG", message)
        }
    )

To trigger One-Tap dialog, just call open() function.

Button(onClick = { state.open() }) {
    Text(text = "Sign in")
}

Google User

And if you wish to extract a user information from a token id, that's now possible too! getUserFromTokenId() allows you to do exactly that. It returns a GoogleUser object, that contains lot's of different information related to that same user.

onTokenIdReceived = { tokenId ->
    Log.d("LOG", getUserFromTokenId(tokenId).toString())
}

Available GoogleUser information:

  • Sub
  • Email
  • EmailVerified
  • FullName
  • GivenName
  • FamilyName
  • Picture
  • IssuedAt
  • ExpirationTime
  • Locale

Sign in with Google Button

You can also use a drop-in opinionated button composable that works out of the box and encapsulates all the sign in logic and follows Google's Sign in with Google Branding Guidelines:

OneTapGoogleButton(
    clientId = "YOUR_CLIENT_ID"
)

According to the design guidelines, the button is available in 3 themes:

  1. Dark
  2. Light
  3. Neutral

You can customise the theme using the theme parameter in the composable:

OneTapGoogleButton(
    clientId = "YOUR_CLIENT_ID",
    theme = GoogleButtonTheme.Neutral
)

The buttons are also available in icon-only mode for all the themes:

It can be activated using the iconOnly parameter in the composable:

OneTapGoogleButton(
    clientId = "YOUR_CLIENT_ID",
    iconOnly = true
)

Button API

Name Type Description
clientId String CLIENT ID (Web) of your project, that you can obtain from a Google Cloud Platform.
state OneTapSignInState One-Tap Sign in State. Can be used to detect whether the sign in operation has already been triggered.
rememberAccount Boolean Remember a selected account to sign in with, for an easier and quicker sign in process.
nonce String? Optional nonce that can be used when generating a Google Token ID
onTokenIdReceived ((String) -> Unit)? Lambda that will be triggered after a successful authentication. Returns a Token ID.
onUserReceived ((String) -> Unit)? This function returns a GoogleUser object using the received tokenId.
onDialogDismissed ((String) -> Unit)? Lambda that will be triggered when One-Tap dialog disappears. Returns a message in a form of a string.
iconOnly Boolean Whether the button should only show the Google logo.
theme GoogleButtonTheme Sets the button style to either be Light, Dark, or Neutral which is in accordance with the official Google design guidelines.
colors ButtonColors ButtonColors that will be used to resolve the colors for this button in different states.
border BorderStroke? the border to draw around the container of this button
shape Shape defines the shape of this button's container, border (when border is not null)
onClick (() -> Unit)? called when this button is clicked

Release Build

If you are planning on publishing your app, be sure to generate a release SHA-1 fingerprint, and create a new oAuth credentials on your Google Cloud Platform project. Also when you upload your app on Play Console, you'll find there a section (Release > Setup > App signing) that will generate the release SHA-1 fingerprint. You take it and create another oAuth credential.

Troubleshoot

In some cases you may encounter "Google Account not Found." message inside onDialogDismiss lambda, even if you have already connected a Google account on your Android Emulator. Android emulators are prone to that issues (Not sure why and when that's gonna get fixed). My suggestion in that case is to try and add a Google account on some other Android Emulator. If that doesn't work either, then use a real device instead.

It's important to implement your own rate limiting of One Tap sign-in prompts. If you don't, and a user cancels several prompts in a row, the One Tap client will not prompt the user for the next 24 hours.

Also to debug your app better, check the logs and search for a OneTapCompose tag, it might contain additional information to help you out with your issue.

Like what you see? 💛

⭐ Give a star to this repository.
☕ Buy me a coffee: https://ko-fi.com/stevdza_san

License

Designed and developed by 2022 stevdza-san (Stefan Jovanović)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

onetapcompose's People

Contributors

shubhamsinghshubham777 avatar stevdza-san avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

onetapcompose's Issues

androidx.credentials.exceptions.Credential Exception:

When attempting to close the sign-in popup menu, I encountered the following error message.

androidx.credentials.exceptions.Credential Exception: During bigin sign in, failure response from one tap: 16: Caller has been temporarily blocked due to too many canceled sign-in prompts.

No credentials available

I placed valid client ID on this place:
clientId = "",
But after clicked the "Sign in" button all I see the errors in the Log:

2024-02-12 08:52:56.859 7937-8288 CredManProvService com.demoproject.forbeginners I GetCredentialResponse error returned from framework
2024-02-12 08:52:56.861 7937-7937 OneTapCompose com.demoproject.forbeginners E No credentials available

dismiss: Developer console is not set up correctly.

Is that safe to call OneTapSignInWithGoogle on BottomBar of scaffold?

I am getting this error : dismiss: Developer console is not set up correctly.

`val state = rememberOneTapSignInState()

Scaffold(
    topBar = {},
    content = { paddingValues ->
        AuthContent(
            paddingValues,
            signInState = state.opened,
            messageBarState = MessageBarState(),
            onClick = {state.open()}
        )
    },
    bottomBar = {
        OneTapSignInWithGoogle(
            state = state,
            clientId = CONSTANTS.CLIENT_ID,
            onTokenIdReceived = { tokenId ->
                Log.d("GoogleIO", "token: $tokenId")
            },
            onDialogDismissed = { message ->
                Log.d("GoogleIO", "dismiss: $message")
            }
        )
    }`

OneTapCompose not Working on App Release

When I tried OneTapCompose in debug mode it ran fine. But when I build with release it always goes to onDialogDismissed.

My Code

...
            OneTapSignInWithGoogle(
                state = oneTapSignInGoogleState,
                clientId = LocalContext.current.getString(R.string.google_client_id),
                rememberAccount = false,
                onTokenIdReceived = { tokenId ->
                    authViewModel.setStateLogin("google")

                    val user: GoogleUser? = getUserFromTokenId(tokenId)
                    if (user != null) {
                        authViewModel.googleLogin(code = "android_google_code", email = user.email, name = user.fullName)
                    } else {
                        authViewModel.resetState()
                        showSnackbar(message = "Autentikasi Google Gagal. User Null", scope, snackbarHostState)
                    }
                },
                onDialogDismissed = {
                    authViewModel.resetState()
                    showSnackbar(message = "Autentikasi Google Dibatalkan", scope, snackbarHostState)
                }
            )
...

Video
https://github.com/stevdza-san/OneTapCompose/assets/45684749/b5c78e0e-b753-48e0-8431-39d2f13073c4

Image Log Error
Screenshot from 2023-12-05 11-45-06

Troubles in release build

Is it possible to use this library with web clientid in release mode?
I don't understand why, but always when I try to use google authentication with web client id in the release mode, I can't get token. Working only in debug mode for me

Version 1.0.11 not work on Android 14

Version 1.0.11 does not work on Android 14. (Tested on Samsung S23)
When you make the request to google via googleLoginState.open() nothing is shown. (The account selection dropdown does not appear.) If you press the back button, the error message (system, not from library) access request canceled by appName appears.
With version 1.0.10 everything works perfectly!

"Google Account not Found" when you dismiss multiple times the modal

Hi, I encountered a problem when I dismiss the account selection modal more than once. It would seem that if you click outside the modal or on the X more than 3/4 times, Android blocks you and shows you the Google account not found dialog. Clearing the cache doesn't work, and neither does deleting the app and reinstalling it.

  • Android version 13
  • App is build signed with this 2 settings: isShrinkResources = true, isMinifyEnabled = true
  • App not works also with debug apk
  • This works in my case because I have multiple accounts on list
  • I set rememberAccount = false on OneTapSignInWithGoogle (Not works also with rememberAccount = true)

[BUG]: After I update the library, it throws me this error

FAILURE: Build completed with 8 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.github.stevdza-san:OneTapCompose:1.0.5.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/github/stevdza-san/OneTapCompose/1.0.5/OneTapCompose-1.0.5.pom
       - https://repo.maven.apache.org/maven2/com/github/stevdza-san/OneTapCompose/1.0.5/OneTapCompose-1.0.5.pom
       - https://jitpack.io/com/github/stevdza-san/OneTapCompose/1.0.5/OneTapCompose-1.0.5.pom
     Required by:
         project :app

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:checkDebugAarMetadata'.
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:38)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:69)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:327)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:314)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:307)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:293)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:417)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:339)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:1524)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$3700(DefaultConfiguration.java:159)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$DefaultResolutionHost.rethrowFailure(DefaultConfiguration.java:2174)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.visitContents(DefaultConfiguration.java:1496)
	at org.gradle.api.internal.file.AbstractFileCollection.visitStructure(AbstractFileCollection.java:375)
	at org.gradle.api.internal.file.CompositeFileCollection.lambda$visitContents$0(CompositeFileCollection.java:119)
	at org.gradle.api.internal.file.collections.UnpackingVisitor.add(UnpackingVisitor.java:64)
	at org.gradle.api.internal.file.collections.UnpackingVisitor.add(UnpackingVisitor.java:89)
	at org.gradle.api.internal.file.DefaultFileCollectionFactory$ResolvingFileCollection.visitChildren(DefaultFileCollectionFactory.java:333)
	at org.gradle.api.internal.file.CompositeFileCollection.visitContents(CompositeFileCollection.java:119)
	at org.gradle.api.internal.file.AbstractFileCollection.visitStructure(AbstractFileCollection.java:375)
	at org.gradle.api.internal.file.CompositeFileCollection.lambda$visitContents$0(CompositeFileCollection.java:119)
	at org.gradle.api.internal.tasks.PropertyFileCollection.visitChildren(PropertyFileCollection.java:48)
	at org.gradle.api.internal.file.CompositeFileCollection.visitContents(CompositeFileCollection.java:119)
	at org.gradle.api.internal.file.AbstractFileCollection.visitStructure(AbstractFileCollection.java:375)
	at org.gradle.internal.fingerprint.impl.DefaultFileCollectionSnapshotter.snapshot(DefaultFileCollectionSnapshotter.java:51)
	at org.gradle.internal.execution.fingerprint.impl.DefaultInputFingerprinter$InputCollectingVisitor.visitInputFileProperty(DefaultInputFingerprinter.java:131)
	at org.gradle.api.internal.tasks.execution.TaskExecution.visitRegularInputs(TaskExecution.java:322)
	at org.gradle.internal.execution.fingerprint.impl.DefaultInputFingerprinter.fingerprintInputProperties(DefaultInputFingerprinter.java:61)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.captureExecutionStateWithOutputs(CaptureStateBeforeExecutionStep.java:193)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.lambda$captureExecutionState$1(CaptureStateBeforeExecutionStep.java:141)
	at org.gradle.internal.execution.steps.BuildOperationStep$1.call(BuildOperationStep.java:37)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
	at org.gradle.internal.execution.steps.BuildOperationStep.operation(BuildOperationStep.java:34)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.captureExecutionState(CaptureStateBeforeExecutionStep.java:130)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.lambda$execute$0(CaptureStateBeforeExecutionStep.java:75)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:75)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:50)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNoEmptySources(SkipEmptyWorkStep.java:254)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:91)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:56)
	at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
	at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:43)
	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:31)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:40)
	at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:281)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:40)
	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:44)
	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:33)
	at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:76)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:139)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:69)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:327)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:314)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:307)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:293)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:417)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:339)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.github.stevdza-san:OneTapCompose:1.0.5.
Searched in the following locations:
  - https://dl.google.com/dl/android/maven2/com/github/stevdza-san/OneTapCompose/1.0.5/OneTapCompose-1.0.5.pom
  - https://repo.maven.apache.org/maven2/com/github/stevdza-san/OneTapCompose/1.0.5/OneTapCompose-1.0.5.pom
  - https://jitpack.io/com/github/stevdza-san/OneTapCompose/1.0.5/OneTapCompose-1.0.5.pom
Required by:
    project :app

==============================================================================

BUG

[BeginSignInOperation] Operation failed.

[BeginSignInOperation] Operation failed.
getting Google Account not Found,
First time it worked fine but after that i am not able to signin again, dialog not showing even if i am using on real device.

Date of Birth Property Missing.

What is the Issue
The user is not able to get a DOB using this solution.

What needs to be done?
We need to add new params i.e. val dateOfBirth

Why this is important?
In most of apps, we want to know the user's age and according to that, we need to perform certain actions. very important property.

logout

how to trigger logout after user is logged in?

Switching user accounts?

Once I logged in with an account it didn't show any other email lists, if I have 2 email IDs on my mobile initially it shows to select which account but after logging in with one email it always logins only with that email forever even reinstalling the app

SERVICE_DISABLED error when using the library

Hi!
I got an error message while trying out the lib. I have done the steps with app sha1 and web client id.
Do you by any chance know what could be wrong.

com.google.android.gms.persistent E [GoogleAccountDataServiceImpl] getToken() -> SERVICE_DISABLED. App: com.elab.testgoog, Service: oauth2:openid zpc: Service not whitelisted at ley.l(:com.google.android.gms@[email protected] (190400-509319212):57) at ovz.i(:com.google.android.gms@[email protected] (190400-509319212):2) at ovz.eo(:com.google.android.gms@[email protected] (190400-509319212):115) at gma.onTransact(:com.google.android.gms@[email protected] (190400-509319212):5) at android.os.Binder.transact(Binder.java:1200) at arzy.onTransact(:com.google.android.gms@[email protected] (190400-509319212):1) at android.os.Binder.transact(Binder.java:1200) at amdf.onTransact(:com.google.android.gms@[email protected] (190400-509319212):21) at android.os.Binder.execTransactInternal(Binder.java:1316) at android.os.Binder.execTransact(Binder.java:1280)

Could not find com.github.stevdza-san:OneTapCompose:1.0.9.

I encountered this error while trying to use OneTapCompose...

Configuration cache state could not be cached: field __librarySourceSets__ of task :app:mapDevDebugSourceSetPaths of type com.android.build.gradle.tasks.MapSourceSetPathsTask: error writing value of type 'org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection'

Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
Could not find com.github.stevdza-san:OneTapCompose:1.0.9.

Only "Dialog Closed" Debug Message Shown

I've connected it as directed (although probably still have something wrong somewhere).

I've moved to a real device because of the "Google Account Not Found"

But when I try to sign-in I get the prompt and click "Continue As " button I only get a "Dialog Closed" message.

Looking at your code is there someway to get more detailed information about why the "Dialog Closed" message is showing? Is there anymore information that could be surfaced for debugging?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.